Skip to content

Instantly share code, notes, and snippets.

@deangrant
Created August 15, 2022 20:04
Show Gist options
  • Save deangrant/80e6627a9aef8915ca032ca61c72122a to your computer and use it in GitHub Desktop.
Save deangrant/80e6627a9aef8915ca032ca61c72122a to your computer and use it in GitHub Desktop.
Azure CLI to store a multi-line secret such as a JSON file or RSA private key using the file parameter.
VAULT_NAME = {{ vault_name }}
SECRET_NAME = {{ secret_name }}
FILENAME = {{ filename }}
az keyvault secret set --vault-name $VAULT_NAME --name $SECRET_NAME --file $FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment