Monday, October 5, 2015

Powershell command for Creating a VM instance from VM Image:

For Windows



New-AzureQuickVM -Windows

                 -Location "<LocationName>"


                 -ServiceName "<CloudServiceName>"


                 -Name "<VMName>"


                 -InstanceSize "<InstanceSize>"


                 -ImageName "<ImageName>"


                 -AdminUserName "<UserName>"


                 -Password "<Password>"


                 -WaitForBoot
 



FOR Linux



New-AzureQuickVM -Linux

                 -Location "<LocationName>"


                 -ServiceName "<CloudServiceName>"


                 -Name "<VMName>"


                 -InstanceSize "<InstanceSize>"


                 -ImageName "<ImageName>"


                 -LinuxUser"<UserName>"


                 -Password "<Password>"


                 -WaitForBoot

No comments:

Post a Comment