Getting Request disallowed by policy error code while trying to resize azure VM

Vellaikambadi, Anjali 20 Reputation points
2023-08-05T22:53:03.2866667+00:00

Getting Request disallowed by policy error while trying to resize existing VM in azure

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

Accepted answer
  1. TP 124.7K Reputation points Volunteer Moderator
    2023-08-05T22:59:16.6966667+00:00

    Hi,

    Normally if look at the full error message it will have the specific policy name that is blocking the request. Do you have the full error message?

    Your administrator may have used Azure Policy to restrict which VM sizes are allowed.

    Please click Accept Answer if the above was useful. If you still need assistance or something is unclear please add a comment.

    Thanks.

    -TP


1 additional answer

Sort by: Most helpful
  1. vipullag-MSFT 26,487 Reputation points Moderator
    2023-08-08T06:20:08.8233333+00:00

    Hello Vellaikambadi, Anjali

    Thanks for responding back and sharing more details.

    If the policy is set to only allow particular virtual machine images on the VM, you can find the allowed images by checking the policy definition.

    If the policy is set to non-compliant, it means that the VM is not compliant with the policy. In this case, you will need to either modify the VM to comply with the policy or request an exemption from the policy.

    To modify the VM to comply with the policy, you will need to change the virtual machine image to one that is allowed by the policy. You can do this by creating a new VM with the allowed image and migrating your data to the new VM. Alternatively, you can try to modify the existing VM to use an allowed image, but this may not be possible depending on the current image and configuration of the VM.

    If you need an exemption from the policy, you will need to contact your Azure administrator or policy owner to request an exemption. They will be able to provide you with more information on the exemption process and requirements.

    Hope this helps.

    0 comments No comments

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.