The following document will provide you the step by step guide to create a Windows Server operating system and install the docker in it. To proceed with this, you need to login to your Microsoft Azure portal.

Step 1 Windows Server VM Creation

Create a new Windows Server VM by going to New->Compute->Windows Server 2016 Data Center.

Windows Server

Enter some username and password by creating a new resource group and choosing some location.

Windows Server

Choose F8S Standard sized virtual machine in the next step.

Windows Server

In the Settings blade, choose the disk type to SSD and Boot diagnostics to NO. Then, create the VM.

Windows Server

Windows Server

Once the VM gets created, log into the VM. Now, the next step is installing the docker.

Step 2 Installing Docker using PowerShell

Step 3 Starting Docker

Windows Server

Thus, we have successfully installed the docker inside Windows Server VM.