Reputation: 479
I am trying to create VM in resource manager portal using powershell. Get-AzureRmLocation,Get-AzureRmVirtualNetwork,Get-AzureRmAvailabilitySet these commands cannot be used.It shows an error as "The term 'Get-AzureRmLocation' is not recognized as the name of a cmdlet, function". Please let me know how to resolve this. Thanks in advance.
Upvotes: 1
Views: 1109
Reputation: 136196
It seems this Cmdlet has been removed! Please see the detailed discussion here: https://github.com/Azure/azure-powershell/issues/1299.
Based on this, it is recommended to use Get-AzureRmResourceProvider
. As a fallback, you can also use Get-AzureLocation
but I suspect that it makes use of Service Management module instead of Resource Manager.
Upvotes: 1
Reputation:
They got rid of this command, despite my desperate attempts to get them to add it back. Use Get-AzureRmResourceProvider to find the supported Azure regions for each Resource Provider.
Upvotes: 1