It’s not like we can deploy only WordPress or Ubuntu on top of our ASDK – we can do so much more! And now I’ll show you how to add Windows 2016 image to your Azure Stack (ASDK) environment.
First, you’ll need to connect to your ASDK environment by using the Login-AzureRmAccount command. Then you’ll need the Windows Server 2016 ISO, and with an easy New-AzsServer2016VMImage command, you’ll import the Windows Server 2016 bits and create Windows Server 2016 image/template for your Azure Stack environment.
1 2 3 4 5 6 7 8 9 10 11 |
cd C:\AzureStack-Tools-master Import-Module .\Connect\AzureStack.Connect.psm1 Add-AzureRmEnvironment -Name "AzureStackAdmin" -ARMEndpoint "https://adminmanagement.local.azurestack.external" Login-AzureRmAccount -Environment "AzureStackAdmin" # enter your CloudAdmin credentials # actually importing the Windows Server 2016 image Import-Module .\ComputeAdmin\AzureStack.ComputeAdmin.psm1 $TenantId = Get-AzsDirectoryTenantId -ADFS -EnvironmentName "AzureStackAdmin" $ISOPath = "C:\Install\14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO" New-AzsServer2016VMImage -ISOPath $ISOPath -IncludeLatestCU |
There is also a video showing you all the steps and note that you can also add the latest Cumulative Update (CU) to the template with a simple switch called -IncludeLatestCU (how cool is that?!):
After that, you can easily create a new virtual machine based on Windows Server 2016 template you’ve just created, like in the following video:
Cheers!