How to fix authorization failed error when trying to create a VM through CLI

Chirag 0 Reputation points
2024-07-02T16:05:59.6766667+00:00

The Error code shows the following message

If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

This question is related to the following Learning Module

Azure | Azure Training
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2024-07-02T17:38:19.3333333+00:00

    Hi,

    It seems like a permission issue for your account to create the resources

    Ensure that, the user has been assigned the appropriate Role-Based Access Control (RBAC) permissions to create the resource.  

    Navigate to your Subscription and select the Access Control (IAM) button and check this

    You can also select "My Permissions" in the left pane to view your current user's permissions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.