serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 162 forks source link

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

Open marcoslimagon opened 3 years ago

marcoslimagon commented 3 years ago

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

/

(...)
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