Azure / Azure/azure-quickstart-templates

Service bus deployment validation error

Open
#2,907 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the 301-servicebus-create-authrule-namespace-and-queue quickstart linked in the issue and find the nsAuthorizationRuleResourceId variable. First reproduce the deployment validation error, then compare the resourceId usage with the ARM template expression documentation. Done means the unmodified quickstart passes template validation and deploys successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.