Created
March 8, 2020 18:09
-
-
Save mikepfeiffer/cc3c886758e1f560990a73dcbd888e61 to your computer and use it in GitHub Desktop.
Quick Azure CLI script to create a Windows VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
az group create --name WebServers --location westus2 | |
az vm create \ | |
--resource-group WebServers \ | |
--name WEB1 \ | |
--image win2016datacenter \ | |
--admin-username sysadmin \ | |
--size Standard_DS2_v2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment