I have a scenerio where I need to fetch the secret list from 'A' azure key vault and then create them in 'B' azure keyvault. But the values will have to changes/updated while creating secrets in 'B' azure keyvault. As I have many secrets so I am trying to perform it via a script.
I have tried to pull only secrets name from 'A' azure keyvault and store into a CSV file using the below AZ CLI command:
az keyvault secret list --vault-name <<vault-name>> -o table > src.csv
Now I want to use the same CSV file where I can update the new values for the secrets fetched and use it to create/update the secrets in the 'B' azure keyvault using any Powershell/AZ CLI/Bash script.
Has anyone faced this similar kind of scenerio? Is it do able? If yes, then please guide me.