Skip to content

Instantly share code, notes, and snippets.

@raykao
Last active October 24, 2019 02:44
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 raykao/886e44ba1d99020a82620f9230764a70 to your computer and use it in GitHub Desktop.
Save raykao/886e44ba1d99020a82620f9230764a70 to your computer and use it in GitHub Desktop.
trigger:
- master
variables:
- group: akv-credentials
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
az login --service-principal -u "$CLIENT_ID" -p $CLIENT_SECRET --tenant "$TENANT_ID" --allow-no-subscriptions
az keyvault secret show -n $SECRET_NAME --vault-name $AKV_NAME | jq -r '.value' | base64 --decode >> results.pem
displayName: 'Retrieve PEM File'
failOnStderr: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment