Udostępnij za pośrednictwem


Hosting Virtual Machines in Azure IaaS - Part 2 Prepare the session

###########################################################################

# 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