Creating your first Nano Server in Azure

After 4 months of pause, this is going to be some interesting topic for me “How to provision your first Nano Server in Azure”. To provision Nano server it required to first know Azure Resource Manager as you can’t provision Nano Server as classic VM because it need Resource Group. So here we first do some PowerShell hands on to start our deployment.

Nano Server in Windows Server 2016 is a headless way to deploy Windows Server 2016 to ensure

  • Minimum number of reboot (less than 5 in an year)
  • Light operating system to get more flexibility to move the image during recovery
  • No need to waste resources because my Operating system is resource hungry.

Here we now show how finally you can boot your first Nano Server in Azure

  1. Login to Azure Resource Manager: Login-AzureRmAccount
  2. Create a new Azure resource group: New-AzureRmResourceGroup
    -Name
    “NANO-Server-Resource-Group”
    -Location
    “East Asia”
  3. Next to create an Azure vault key:

New-AzureRmKeyVault
-VaultName
“NANOServerVaultKey”
-ResourceGroupName
“NANO-Server-Resource-Group”
-Location
“East Asia” `

         -EnabledForDeployment

  1. Then download the “NanoServerAzureHelper.psm1” (http://blogs.technet.com/b/nanoserver/archive/2015/11/25/nano-server-iaas-image-in-the-azure-gallery.aspx)
  2. Import the module on your PowerShell Import-Module
    .\AzureRMScripts\NanoServerAzure\NanoServerAzureHelper.psm1
    -Verbose
  3. Then create a new storage account using resource manager,

New-AzureRmStorageAccount
-ResourceGroupName
” NANO-Server-Resource-Group “
-Name

nanostorageacc “
-Type
Standard_LRS
-Location
“East Asia”

  1. And last run the below command to create your first Nano Server in azure

New-NanoServerAzureVM
-Location
“East Asia” `


-VMName
“NANO-Server-01” `

             -AdminUsername
“azureadmin” `

         -VaultName
“NANOServerVaultKey” `


-StorageAccountName
“nanostorageacc” `


-ResourceGroupName
“NANO-Server-Resource-Group”
-Verbose


 

  1. Now as you can’t login or RDP to Nano server so the alternatives are remote management and one of the way of remote management is to using PowerShell
  2. Open PowerShell ISE from another system and type the below command to connect

Enter-PSSession
-ConnectionUri
“https://NANO-Server-01.EastAsia.cloudapp.azure.com:5986/WSMAN”
-Credential
“azureadmin”

 

  1. Now provide your credential to connect the PSSession


  2. Once you provide the credential you can login to Nano server you just built.


  3. Now just type host name and you will see the logged in server in Nano server.


Will soon post my next topic how to manage Nano server more effectively.