serverless-azure-functions icon indicating copy to clipboard operation
serverless-azure-functions copied to clipboard

Deployment of ARM template failing when using "prefix" on serverless.yml

Open marcoslimagon opened this issue 4 years ago • 0 comments

  • What went wrong?

When I do specify the prefix attribute in the serverless.yml, the deploy fails

  • What did you expect should have happened? It was expected that the deployment be successful

  • What was the config you used? Framework Core: 2.15.0 Plugin: 4.2.0 SDK: 2.3.2 Components: 3.4.3 "serverless-azure-functions": "2.1.0"

  • What stacktrace or error message from your provider did you see?

/

(...)
Serverless: Listing deployments for resource group 'myappprefix-bras-dev-my-app-2-rg':
 
  Error --------------------------------------------------
 
  Error: DeploymentFailed - At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.------------------------
  DEPLOYMENT ERROR DETAILS
  ------------------------
  
  BadRequest - {
    "error": {
      "message": "The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. CorrelationId: ...",
      "code": "BadRequest"
    }
  }
(...)

When I do not specify the prefix the deployment succeeds

Details: It doesn't create the resources in the resource group when the prefix attribute is specified

marcoslimagon avatar Dec 14 '20 14:12 marcoslimagon