az keyvault key rotation-policy update - CLI supported version

123 Views Asked by At

From which CLI version below mentioned CLI command is supported

az keyvault key rotation-policy update

1

There are 1 best solutions below

2
Jahnavi On

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:

az upgrade --yes

enter image description here

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.

enter image description here