Open danikuci1 opened 3 months ago
Hi, can you please cross-file a bug with https://github.com/Azure/azure-powershell? They maintain https://www.powershellgallery.com/packages/Az.KeyVault/2.0.0 which is the implementing module you're getting an error from.
opened https://github.com/Azure/azure-powershell/issues/25975 as requested, though im not sure the az.keyvault module is to blame here. consider the verbose output from Set-Secret
:
VERBOSE: Performing the operation "Write secret to vault and override any existing secret of the same name" on target "asdf".
VERBOSE: Invoking command Set-Secret on module Az.KeyVault.Extension
VERBOSE: Invoking command Set-SecretInfo on module Az.KeyVault.Extension
Set-Secret: Cannot add secret metadata '624881344' to vault 'asdf: The vault does not support the Set-SecretInfo function.
VERBOSE: Invoking command Remove-Secret on module Az.KeyVault.Extension
VERBOSE: Secret 624881344 was successfully removed from vault asdf.
looking through the tests it seems maybe the module isnt intended to support metadata at all?
contrary to this comment, Set-SecretInfo
also does not set metadata in AKV, although it doesn't delete the secret at least 🤷
Prerequisites
Steps to reproduce
I am trying to leverage the secrets management module to manage secrets in Azure KeyVault and want to update some metadata when a password is updated. This works fine in the AKV but fails when doing it with the module.
Expected behavior
Actual behavior
Error details
Environment data
Version
im not using cresendo
Visuals
No response