The error message you are encountering, Resource 'amazonvm0143' was disallowed by policy. (Code: RequestDisallowedByPolicy), indicates that the creation of the virtual machine (VM) is being blocked by an Azure policy that has been set in your environment. This typically occurs when certain resource types are not explicitly allowed under the policy assigned to your subscription.
To resolve this issue, you can follow these steps:
- Identify the specific policy that is blocking the creation of the VM. This information is usually included in the error message.
- If you have the necessary permissions, you can either update your deployment to comply with the policy restrictions or modify the policy to allow the creation of the VM.
- If you are unable to change the policy, you may need to contact your Azure administrator for assistance in adjusting the policy settings.
Once the policy is updated to allow the creation of the VM, you should be able to proceed with your deployment.