Azure / Azure/azure-quickstart-templates

ARM Template fails with "AuthorizationFailed"

Open
#8,920 0 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

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

Sorry to hear you had a bad experience with one of the templates :worried: But, in case you're just asking a question, we're happy to help. You can also check if the question might already have been asked here https://github.com/Azure/azure-quickstart-templates/issues?utf8=%E2%9C%93&q=is%3Aissue

We've created an outline of recommended sections to fill out that will help make this Pull Request awesome!

--------------------MESSAGE FROM ADMIN, DELETE BEFORE SUBMITTING----------------------

[Template Name goes here](Template link goes here)

### Issue Details

I can create MG from AZ portal with same user (which is Global Admin) but when I try to use ARM Template, I get following error:

{"code":"AuthorizationFailed","message":"The client 'xxxx@xxx.com' with object id 'a92b1c4a-921c-4009-bfbc-ddc3a9507c4b' **does not have authorization** to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/providers/Microsoft.Resources/deployments/Microsoft.Template-20210322105058' or the scope is invalid. If access was recently granted, please refresh your credentials."}
### Repro steps (*if necessary, delete otherwise*)
1.
2.
3.
4.
5.

Contributor guide

No contributing guide indexed for this repository

Research direction

No template, file, or reproducible steps are provided. Start by identifying the ARM template and deployment context that trigger the Microsoft.Resources/deployments/validate/action authorization error, then compare the template deployment with the successful portal operation; done means the deployment validates successfully for the stated user and scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.