Import-Module 'C:Program Files (x86)Microsoft SDKsWindows AzurePowerShellAzureAzure.psd1'
$idsub = '[subscriptionIDNumber]'
$cert = Get-Item Cert:CurrentUserMyYOURCERTTHUMBPRINT
Set-AzureSubscription -SubscriptionName 'testsub1' -SubscriptionId $idsub -Certificate $cert
New-AzureStorageAccount -StorageAccountName 'mystorage' -Location 'East
Set-AzureSubscription -SubscriptionName 'mytest' -CurrentStorageAccount 'mystorage'
$vmname = 'mytestvm1'New-AzureQuickVM -Windows -ServiceName “TestServer1″ -Name “TestServer1″ -ImageName “MSFT__Windows-Server-2012-Datacenter-201210.01-en.us-30GB.vhd” -Password "your password"
No comments:
Post a Comment