Hello Abdulazeez Ayobami Alabi
That sounds like you might be running into a policy issue. Azure policies are used to enforce compliance with security and other requirements. If there is a policy that is preventing you from creating a virtual machine in a particular resource group, you will see an error message that says "Blocked by policy."
To troubleshoot this issue, you can follow these steps:
- Go to the Azure Policy blade in the Azure portal.
- Click on the "Subscriptions" tab.
- Select the subscription that you are having trouble with.
- Click on the "Resource groups" tab.
- Find the resource group that you are trying to create a virtual machine in.
- Click on the "Policies" tab.
- Look for any policies that are assigned to the resource group.
- If you find a policy that is blocking you from creating a virtual machine, you can either:
- Unassign the policy from the resource group.
- Modify the policy to allow you to create the virtual machine.
For more information on troubleshooting Azure policy issues, you can refer to the following resources:
- Troubleshoot errors with using Azure Policy: https://docs.microsoft.com/en-us/azure/governance/policy/troubleshoot/general
I hope this helps! Let me know if you have any other questions.