Let's perform the following steps:
- Connect to your Azure Stack VM and open the Azure portal. Navigate to the Marketplace management and download the Windows Server 2016 Datacenter Pay-as-you-use item:
- Next, download the DSC item from the same page.
- As soon as the marketplace items are downloaded, you can create your first VM. To do it, create a resource group and make use of the quick create functionality of New-AzureRmVm:
New-AzureRmResourceGroup -Name VM -Location local$adminCredential = [pscredential]::new('VmAdmin', ('M3g4Secure!' | ConvertTo-SecureString -AsPlainText -Force))New-AzureRmVM -ResourceGroupName VM -Location ...