You administer an Azure subscription with an existing cloud service named contosocloudservice.
Contosocloudservice contains a set of related virtual machines (VMs) named ContosoDC, ContosoSQL and
ContosoWeb1.
You want to provision a new VM within contosocloudservice.
You need to use the latest gallery image to create a new Windows Server 2012 R2 VM that has a target
IOPS of 500 for any provisioned disks.
Which PowerShell command should you use?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
This example creates a new Windows virtual machine configuration with operating system disk, data disk
and provisioning configuration. This configuration is then used to create a new virtual machine.
C:\\PS> $image = (Get-AzureVMImage).ImageName
C:\\PS>New-AzureVMConfig -Name “MyVM1” -InstanceSize ExtraSmall -ImageName $image ` | AddAzureProvisioningConfig -Windows -Password $adminPassword ` | Add-AzureDataDisk -CreateNew –
DiskSizeInGB 50 -DiskLabel ‘datadisk1’ -LUN 0 ` | New-AzureVM –ServiceName “MySvc1”New-AzureVMConfig
URL: http://msdn.microsoft.com/en-us/library/dn495159.aspx