Skip to content

Permission Denied When Deploying the Template #1

@xhefritoro

Description

@xhefritoro

While attempting to deploy directly once the Shell was initialized, I encountered the following error.
az deployment group create --resource-group omdsmod4 --template-file template.json --parameters parameters.json {"code": "AuthorizationFailed", "message": "The client 'xtoro@bu.edu' with object id '3283940a-7013-424f-8a77-484251c4d81c' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/3cc11a1b-6ad4-4aad-93e8-732310e30f87/resourcegroups/omdsmod4/providers/Microsoft.Resources/deployments/template' or the scope is invalid. If access was recently granted, please refresh your credentials."}

After doing some research, I was pointing to the wrong subscription so by running:

az account set --subscription 'Azure for Students'

I was able to deploy the template successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions