Azure / azure-quickstart-templates

Azure Quickstart Templates
https://aka.ms/azqst
MIT License
13.97k stars 16.09k forks source link

Service bus deployment validation error #2907

Open brandongodby78 opened 7 years ago

brandongodby78 commented 7 years ago

301-servicebus-create-authrule-namespace-and-queue (https://github.com/Azure/azure-quickstart-templates/tree/master/301-servicebus-create-authrule-namespace-and-queue)

Issue Details

When using this quickstart template for deploying service bus, with no modifications it produces the following validation error message:

Deployment template validation failed: 'The template variable 'nsAuthorizationRuleResourceId' is not valid: Unable to evaluate template language function 'resourceId': function requires exactly one multi-segmented argument which must be resource type including resource provider namespace. Current function arguments 'Microsoft.ServiceBus/namespaces/authorizationRules,lab16servicebus001-sb,lab16servicebus001-sb/SharedAccessPolicy001'. Please see https://aka.ms/arm-template-expressions/#resourceid for usage details.. Please see https://aka.ms/arm-template-expressions for usage details.'. (Code: InvalidTemplate)

brandongodby78 commented 7 years ago

If you remove the variables that are throwing the error above, and the associated Output that calls the variables and try to run it without those you get the following error:

Deployment template validation failed: 'The template resource 'redacted/redacted' for type 'Queues' at line '1' and column '1561' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-template/#resources for usage details.'. (Code: InvalidTemplate)

brandongodby78 commented 7 years ago

@sazeesha I believe you committed the last changes to this file, do you have any suggestions on the fix?

mstechies-zz commented 7 years ago

I am able to deploy this template (https://github.com/Azure/azure-quickstart-templates/tree/master/301-servicebus-create-authrule-namespace-and-queue) without any errors.