We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb47276 + 96d56d4 commit fa6b8b1Copy full SHA for fa6b8b1
keyvaultbackup/CopySecretsToAnotherVault.ps1
@@ -17,7 +17,7 @@ $originSecretKeys = az keyvault secret list --vault-name $originVault -o json -
17
# 1.3 Loop the secrets, and push the value to the destination vault without instantiating new variables.
18
$originSecretKeys | ForEach-Object {
19
$secretName = $_
20
- Write-Host " - Getting '$($secretName)' from origin, and setting in destination..."
+ Write-Host " - Getting '$($secretName)' from origin, and setting in destination Vault... '$($destinationVault)'"
21
az keyvault secret set --name $secretName --vault-name $destinationVault -o none --value(az keyvault secret show --name $secretName --vault-name $originVault -o json --query value)
22
}
23
0 commit comments