azure-cli: "Invalid value was provided for 'accessPolicies'" when no value was provided

I’d expect an error from Azure or Azure CLI client. Instead, I get this error that doesn’t tell me what went wrong.

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az keyvault set-policy

Errors:

An invalid value was provided for 'accessPolicies'.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az keyvault set-policy --name {} --object-id {} --secret-permissions list --debug

Expected Behavior

Environment Summary

Linux-4.18.0-16-generic-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.66 *

Extensions:
azure-devops 0.8.0

Additional Context

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 5
  • Comments: 17 (6 by maintainers)

Most upvoted comments

Please reopen, as it seems to be not fixed cmd: az keyvault set-policy -n mykvt --secret-permissions get --object-id e2c1c414-a9c3-11eb-bcbc-0242ac130002 --resource-group mygrp

Error: (BadRequest) An invalid value was provided for 'accessPolicies'.

This was a product bug and has been fixed.