Created
September 1, 2021 20:53
-
-
Save ltpitt/d8c48949662f628e5888180ba3ce97f3 to your computer and use it in GitHub Desktop.
Create a VM in Microsoft Azure via az and access it via SSH
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
az group create --location eastus2 --name MyResourceGroup | |
az vm create -n myVM -g MyResourceGroup --image UbuntuLTS --generate-ssh-keys | |
# Then search for myVM in Azure, get its ip and connect via ssh. | |
# Once done you can destroy the resource group using: | |
az group delete -n MyResourceGroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment