Az Linux CLI Tool
1) Authentication
az login2) Dump Azure Key Vaults
List out any key vault resources the current account can view
az keyvault list –query '[].name' --output tsvWith contributor level access you can give yourself the right permissions to obtain secrets.
az keyvault set-policy --name KEY_VAULT_NAME --upn YOUR_CONTRIBUTOR_USERNAME --secretpermissions get list --key-permissions get list --storage-permissions get list --certificate-permissions get listGet URI for Key Vault
az keyvault secret list --vault-name KEY_VAULT_NAME --query '[].id' --output tsvGet cleartext secret from keyvault
az keyvault secret show --id URI_FROM_LAST_COMMAND | ConvertFrom-JsonDownload the secret from keyvault in a .pem file for better formatting
az keyvault secret download --id URI_ID --file KEY.pemGet Public IP of a VM instance we want to SSH in
az vm show -d -g RESOURCE_GROUP -n VM_NAME --query publicIps -o tsvLast updated