Last active
July 8, 2020 09:31
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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