Created
October 17, 2012 12:51
-
-
Save chgeuer/3905353 to your computer and use it in GitHub Desktop.
PTV1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $vmname = "ptvlinux1" | |
| $linuxUser = "ptvadmin" | |
| $adminPassword = "!!test123" | |
| $imagename = "ptv-itb-test1-linux-galleryimage" | |
| $subnet = "azure2b" | |
| $affinitygroup = "ptvtest" | |
| $vnetname = "azure253" | |
| $media = "https://portalvhdszxpyfbp32jw28.blob.core.windows.net/vhds/ptv-itb-1.vhd" | |
| $cloudSvcName = "ptvlinux1" | |
| #Get-AzureSubscription | select SubscriptionId, SubscriptionName | |
| #Set-AzureSubscription -SubscriptionName PTV -SubscriptionId 30dcfc8a-56e5-4f20-a788-6e221e722b14 -CurrentStorageAccount portalvhdszxpyfbp32jw28 | |
| $vm = New-AzureVMConfig -Name $vmname -Label $vmname -InstanceSize Small -ImageName $imagename -MediaLocation $media | Add-AzureProvisioningConfig -Linux –LinuxUser $linuxUser -Password $adminPassword | Set-AzureSubnet -SubnetNames $subnet | |
| New-AzureVM -ServiceName $cloudSvcName -VNetName $vnetname -VMs $vm -AffinityGroup $affinitygroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment