Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
###########################################################################
# Prepare the session #
###########################################################################
# Reference https://msdn.microsoft.com/en-us/library/windowsazure/jj152841.aspx
# Get Subscription GUID & Certificate hash from the Management portal.
# Management Portal > Settings > Subscriptions > Subscription ID
# Management Portal > Settings > Management certificates > Thumbprint ( This should match the publish file used in the earler command )
$subid = "xxxxxxxxxxxxxxxxxxxxxx"
$cert = Get-Item Cert:\CurrentUser\My\xxxxxxxxxxxxxxxxxx
Set-AzureSubscription -SubscriptionName "contosotestlab" -SubscriptionId $subid -Certificate $cert
Select-AzureSubscription -SubscriptionName contosotestlab