Skip to content

az group create fails with AuthorizationFailed error on new subscription #33091

@rootd4ddy

Description

@rootd4ddy

Describe the bug

When running az group create --name test-rg --location eastus on a fresh subscription, I get:

ERROR: (AuthorizationFailed) The client does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write'

Environment

  • Azure CLI version: 2.67.0
  • OS: Ubuntu 22.04
  • Python: 3.10.12

Steps to reproduce

  1. Create a new Azure subscription
  2. Run az login
  3. Run az group create --name test-rg --location eastus
  4. Observe AuthorizationFailed error

Expected behavior

Resource group should be created successfully.

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAccountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions