Skip to content

Commit fa6b8b1

Browse files
authored
Merge pull request #1 from diogofrj/patch-1
Update CopySecretsToAnotherVault.ps1
2 parents cb47276 + 96d56d4 commit fa6b8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyvaultbackup/CopySecretsToAnotherVault.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $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

0 commit comments

Comments
 (0)