new-machine

#!/bin/bash location=eastus2 groupName=rg-azure-vms vmName=azure-vm-01 image=MicrosoftWindowsServer:WindowsServer:2019-Datacenter:latest admin=azure_admin pass='password' subscription=xxxxxxxxxxxxxxxxxxx az group create -n $groupName --location $location az vm create --subscription $subscription -n $vmName --resource-group $groupName --location $location --image $image --admin-username $admin --admin-password $pass
Bash script to create an Azure VM using Azure CLI

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.