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
+ CategoryInfo : CloseError: (:) [New-AzVM], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.NewAzureVMCommand