You do not have permission to perform this action

When you try to create resourse in Azure CLI and you get this error message:

You does not have authorization to perform action. ‘Microsoft.Storage/register/action’ over scope.

This error happened because your account is not set as default.

Solution:

Get a list of your subscriptions with the az account list command:

az account list –output table

Use az account set with the subscription ID or name you want to set as default account:

az account set –subscription

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s