Reputation: 12279
I am using Version 1.0.1 Azure PowerShell module and it seems there is some breaking changes I cannot figure out.
I have logged into Azure and the Get-AzureSubscription cmdlet returns my two accounts. However, executing Get-AzureVM's returns nothing even though the Azure Portal is properly reporting about a dozen.
What am I doing wrong?
Thanks
Upvotes: 10
Views: 3595
Reputation: 167
If you are attempting to fetch ARM resources, please use “Get-AzureRmVM” cmdlet.
Get-AzureVM - To fetch classic instances
Get-AzureRmVM - To fetch ARM instances.
Upvotes: 0
Reputation: 24410
Run Add-AzureAccount
; this will load the Azure login dialogue, allowing you to sign in.
Once done, running Get-AzureSubscription
should work as you'd expect.
Sadly no helpful error's displayed to say "you're not logged in; run Add-AzureAccount
to login" if the command's run without you being logged in.
Upvotes: 10