Skip to content

Commit a884d83

Browse files
authored
Update CopySecretsToAnotherVault.ps1
1 parent 053a3ae commit a884d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keyvaultbackup/CopySecretsToAnotherVault.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ $originSecretKeys = az keyvault secret list --vault-name $originVault -o json -
1717
# 1.3 Loop the secrets, and push the value to the destination vault without instantiating new variables.
1818
$originSecretKeys | ForEach-Object {
1919
$secretName = $_
20-
Write-Host " - Getting '$($secretName)' from origin, and setting in destination..."
20+
Write-Host " - Getting '$($secretName)' from origin, and setting in destination Vault... '$($destinationVault)'"
2121
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")
2222
}
2323

24-
Write-Host "Finished."
24+
Write-Host "Finished."

0 commit comments

Comments
 (0)