Skip to content

Instantly share code, notes, and snippets.

@RutgerAlbers
Last active July 8, 2020 09:31
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 RutgerAlbers/789839ac0d9e54ab2ac0e9554d0d9baf to your computer and use it in GitHub Desktop.
Save RutgerAlbers/789839ac0d9e54ab2ac0e9554d0d9baf to your computer and use it in GitHub Desktop.
Sets placeholder secrets on an AzureKeyvault. set the keyVaultName, subscriptionId and placeholders before use.
$keyVaultName = "IntegrationSecrets"
$subscriptionId = "xxx"
$placeholders = @(
'secret1'
'secret2'
'secret3'
'secret4'
)
az login
az account set --subscription $subscriptionId
$placeholders.foreach({
az keyvault secret set --vault-name $keyVaultName --name $PSItem --value "placeholderValue"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment