Authorization Failed When Creating Virtual Machine

Vivian Glen 20 Reputation points
2025-03-11T15:54:37.3233333+00:00

Having the contributor role for a specific resource group, an attempt to create a virtual machine results in an "Authorization failed" error. What steps can be taken to resolve this issue?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,512 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 20,101 Reputation points MVP
    2025-03-11T16:06:02.22+00:00

    Hi Vivian Glen

    Even though you have Contributor role, it could be failing due to the permission needed for creating the network components like VNET, Network Security Group, public IP etc. You could add the 'Network Contributor role', if you want to create the network items when creating the VM. Try creating the VM after adding the role and see if it works!

    Hope this helps.


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.