Last active
June 9, 2016 06:55
-
-
Save ivanbuzyka/071df69e4a4818d880f1da76c8df7b21 to your computer and use it in GitHub Desktop.
This file contains 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
# Creates VM Disk from existing disk image and then creates Azure VM# | |
Add-AzureDisk -DiskName "Traincore2-15-4" ` | |
-OS Windows ` | |
-MediaLocation "https://wndscstor5.blob.core.windows.net/vmvhds/3zl34ubhfb.m2ss20781603051726390086.vhd" ` | |
-Verbose | |
#In case of using another subscription should be specified | |
Set-AzureSubscription -SubscriptionName "Nutzungsbasierte Bezahlung" -CurrentStorageAccountName "wndscstor5" | |
New-AzureVMConfig -Name "Traincore2-15-4" -InstanceSize Large -DiskName "Traincore2-15-4" | Add-AzureEndpoint -Name "Remote Desktop" -Protocol "tcp" -PublicPort 3389 -LocalPort 3389 | Add-AzureEndpoint -Name "WinRM" -Protocol "tcp" -PublicPort 5986 -LocalPort 5986 | New-AzureVM -ServiceName "Traincore2-15-4" -Location "West Europe" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment