November 2017
Intermediate to advanced
276 pages
7h 6m
English
Now, let's build up the main configuration for the VM, such as VM size, OS, computer name, the image, and so on, as shown in the following cmdlets:
$VMConfiguration = New-AzureRmVMConfig -VMName PacktPubVMPS -VMSize Standard_D1_v2 | Set-AzureRmVMOperatingSystem -Windows -Credential (Get-Credential) -ComputerName PackPubVMPS | Set-AzureRmVMSourceImage -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2016-Datacenter -Version latest | Add-AzureRMVMNetworkInterface -Id $NIC.ID