I am having a problem listing (outing) VM's from my Azure portal. I think I know what the problem is, but need a solution around it.

Issue: When trying to output a list of VM's using "Get-AzureRmVM" nothing outputs.

Why: This is "Probably" due to the fact that these VM's I am trying to output are "Classic" VM's in Azure RM. So in reality, I should be listing them out from classic commands (Get-AzureVM) versus (Get-AzureRmVM).

Has anyone a solution I can use here? I've tried to connect via SubscriptionName, SubscriptionID, TenantID & ResourceGroupName without success.Cheers

3 Replies

f you have multiple Azure subscriptions under your Azure account, you will first need to select the right subscription where your Azure Resource Manager (RM) VM resides .Has anyone a solution I can use here? I've tried to connect via SubscriptionName, SubscriptionID, TenantID & ResourceGroupName without success.
have you?