Hi, I solved the same issue adding "--resource-group" in the command.
getting the API error while running azure vault commands in azure cloud shell -bash
Getting api error which is rare we are using azure key vault and running the commands in azure cloud still not supported api version who has to upgrade azure or me...getting stuck seriously with this please provide the suggestions to move forward.
cmd I used: az keyvault set-policy --name $kvname --object-id $spobjid --secret-permissions backup delete get list recover restore set
Note: I have provided $kvname and $spobjid values properly
3 answers
Sort by: Most helpful
-
-
Sabari Manikandan 5 Reputation points
2023-08-26T08:01:05.0633333+00:00 Hi, I have faced the same issue even after
az upgrade
, It is resolved after adding--resource-group
. -
Ramoudi, Ines 0 Reputation points
2023-10-06T13:45:30.5766667+00:00 Hello, i'm facing a similar issue and when i add the --resource-group , i get an error stating <ERROR: unrecognized arguments: --resource-group>, any idea why ?