Skip to content

Instantly share code, notes, and snippets.

@ltpitt
Created September 1, 2021 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ltpitt/d8c48949662f628e5888180ba3ce97f3 to your computer and use it in GitHub Desktop.
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
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