Azure / Azure/azure-cli

i cant create a resource group using cli with my sandbox even a VM

Open
#30,800 2 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Auto-Assign Azure CLI Team customer-reported question Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

this is the error
brukate [ ~ ]$ az group create --name myResourceGroup --location eastus
(AuthorizationFailed) The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

### Related command

az group create --name myResourceGroup --location eastus

### Errors

this is the error
brukate [ ~ ]$ az group create --name myResourceGroup --location eastus
(AuthorizationFailed) The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

### Issue script & Debug output

this is the error
brukate [ ~ ]$ az group create --name myResourceGroup --location eastus
(AuthorizationFailed) The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

### Expected behavior

this is the error
brukate [ ~ ]$ az group create --name myResourceGroup --location eastus
(AuthorizationFailed) The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

### Environment Summary

this is the error
brukate [ ~ ]$ az group create --name myResourceGroup --location eastus
(AuthorizationFailed) The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

### Additional context

this is the error
brukate [ ~ ]$ az group create --name myResourceGroup --location eastus
(AuthorizationFailed) The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#brukate@gmail.com' with object id '8597a987-9608-4583-9082-5ee81471fc59' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/18974119-7a45-4077-9932-f95c83cee0e3/resourcegroups/myResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.