I'm unable to run Azure Powershell commands, as of now I'm trying to assign a static local IP to my VM by doing so:
Get-AzureVM -ServiceName XenApp-Azure -Name XenApp-Azure | Set-AzureStaticVNetIP -IPAddress 10.0.0.4 | Update-AzureVM
This command tells me
No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription.
To which I've tried both below
Select-AzureSubscription -SubscriptionName Pay-As-You-Go
Select-AzureSubscription -Default Pay-As-You-Go
Both command tell me that subscription doesn't not exist, even though this:
Login-AzureRmAccount
Returns this after a successful login:
Account : [email protected]
SubscriptionName : Pay-As-You-Go
SubscriptionId : guid
TenantId : guid
Environment : AzureCloud
To which I've tried:
Add-AzureAccount
Which returns:
No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Login-AzureRmAccount?
Which is non sense because I created the VM through the Azure portal and I have enough access to be remoted in through RDP. I am owner of this "non-existing" subscription.
What is happening here ?
Get-Module -ListAvailable -Name Azure -Refresh
. – Jason Ye