There is some policy defined on RG or maybe subscription in which, you are not allowed to create VM. Check for the policies or contact admin.
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am facing some issues while creating VM using Azure PowerShell where i could create and play around directly through portal. Below is the error i am getting. Comments are most welcome to rectify this and Thanks in Advance!
cmdlet New-AzVM at command pipeline position 1 Supply values for the following parameters: Name: test New-AzVM : Resource 'test' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Not allowed resource types","id":"/subscriptions/XXXXXXXXXXX/providers/Microsoft.Authorization/policyAssignment s/XXXXXXXXXX"},"policyDefinition":{"name":"Not allowed resource types","id":"/providers/Microsoft.Authorization/policyDefinitions/XXXXXXXX"}}]'. At line:1 char:1
New-AzVM
There is some policy defined on RG or maybe subscription in which, you are not allowed to create VM. Check for the policies or contact admin.
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
Hi @srinath sarman ,
the error messages shows the following detail:
It looks like resources with name "test" are not allowed by an Azure Policy of your organization.
If the name "test" is not allowed by your Azure Policies you should just try a different name for the resource.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten