mRhNs13
mRhNs13

Reputation: 479

Cannot use Get commands in Azure RM portal using powershell

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

Answers (2)

Gaurav Mantri
Gaurav Mantri

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

user189198
user189198

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

Related Questions