ERROR on VM

2022-01-23T10:13:37.027+00:00

167476-screenshot-61.png

facing error while creating resource group in VM. Please let me know where I'm doing mistakes.??

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

1 answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,546 Reputation points Microsoft Employee
    2022-01-24T12:49:03.703+00:00

    Hello @Irshad Ahmad (APMEA - iCORE-CIS) ,

    Thank you for reaching out to Microsoft QnA Platform.

    Looking at the above screenshot, it looks like you are trying to create the VM inside the already existing resource group compute-rg. I can see there is some Policy applied which is disallowing the request. You can check the Policy definition by clicking on 'Policy details' and check which Policy is prohibiting you to create the VM in the resource group of 'compute-rg' and what is the effect and scope of the policy.

    Usually Policies can be applied to any scope of resources that Azure support, such as management groups, subscriptions, resource groups, or individual resources.
    Please refer to the link for more understanding : Azure Policy

    You can edit the Policy definition as per your own requirement or create Exemptions as shown below.

    167935-2022-01-24-18-05-16-clipboard.png

    167875-2022-01-24-18-07-20-clipboard.png

    167846-2022-01-24-18-13-51-clipboard.png

    Here, as you can see I am adding an exemption to my 'custom-policy' which is applied at subscription level, and I am exempting the resource group 'sreejalab' from the policy.

    I hope this helps you.

    Please 'Accept as answer' if the provided information is helpful to help others in the community.

    0 comments No comments