Script to provision Virtual machine on MS Azure: Login to your Azure account with powershell. Execute the command: Get-AzureVMImage Select the Image name Which you want to provision. Run the Following script which will create One storage account for your VM. The Same script also Open HTTP Port 80. # create Azure VM from images clear-Host $cloudServiceName = "sagar300" $location = "Southeast asia" $size = "Small" $vmName = "sagarvm" $adminUser = "sagar" $password = "********" $storename = "store123" New-AzureStorageAccount -StorageAccountName $storename -Location $location -ErrorAction SilentlyContinue $subsname = (Get-AzureSubscription).SubscriptionName Set-AzureSubscription -SubscriptionId "$subsname" -CurrentStorageAccountName $storename $imageFamily = "windows Server 2012 R2 Datacenter" $imageName = "ad072bd3082149369c449ba5832401ae__Windows...
Posts
Showing posts with the label Script to provision Virtual machine on MS Azure: