From which CLI version below mentioned CLI command is supported
az keyvault key rotation-policy update
As mentioned in MsDoc, Azure CLI version 2.42.0 or above is needed to update az key vault rotation key policy.
az key vault rotation key policy
To upgrade azure CLI use:
az upgrade --yes
If you are already up to date, the output is as seen above.
After checking the prerequisites, I ran below command with retention policy taken in json file and able to update the key vault rotation successfully.
json
Copyright © 2021 Jogjafile Inc.
As mentioned in MsDoc, Azure CLI version 2.42.0 or above is needed to update
az key vault rotation key policy.To upgrade azure CLI use:
If you are already up to date, the output is as seen above.
After checking the prerequisites, I ran below command with retention policy taken in
jsonfile and able to update the key vault rotation successfully.