Create Vm with Azure CLI
First install Azure cli https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-install/
azure config mode asm azure login -u username@domain If you have multiple subscriptions run the following command azure account list Then set the subscription you want to use with the following command azure account set azure account download azure account import
Set the Azure type to Azure Resource Manager
azure config mode arm
now we can create a virtual machine azure vm image list westeurope MicrosoftWindowsServer WindowsServer or get the sku azure vm image list-skus --location westeurope --publisher MicrosoftWindowsServer --offer WindowsServer or get the Uri what you need for the creation azure vm image list --location westeurope --publisher MicrosoftWindowsServer --offer WindowsServer | awk '{print $8}' to get the resource groups that you already have create a vm with quick create with azure vm quick-create <type(windows/linux)> this will create a Standard D1 azure vm quick-create VSW1000T0001 westeurope Windows MicrosoftWindowsServer:WindowsServer:2016-Nano-Server-Technical-Preview:2016.0.20151219