Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Last active May 24, 2018 15:43
Show Gist options
  • Save jwkidd3/d3d40b3c67ae26d5c39cb0903ba03954 to your computer and use it in GitHub Desktop.
Save jwkidd3/d3d40b3c67ae26d5c39cb0903ba03954 to your computer and use it in GitHub Desktop.
sensible-editor cloud-init-jenkins.txt
az vm create --resource-group table0jkjenkinsRG --name table0jkjenkins --image UbuntuLTS --admin-user azureuser --generate-ssh-keys --custom-data cloud-init-jenkins.txt
az vm open-port --resource-group table0jkjenkinsRG --name table0jkjenkins --port 8080 --priority 1001
az vm show --resource-group table0jkjenkinsRG --name table0jkjenkins -d --query [publicIps] --o tsv
az vm list-ip-addresses -g jenkinsrg -n jkjenkins
ssh azureuser@<ip address>
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment