Related command
az policy assignment delete
Is your feature request related to a problem? Please describe.
Most other az cli commands allow you to delete by name or id (example). It's unintuitive for this one command to require deletion by name. Policy assignment names are also different from the displayName so it's an extra layer of translation that is different than other resources.
Describe the solution you'd like
Add a --id option to the command that has the command use the Policy Assignments - Delete By Id endpoint in the API.
Describe alternatives you've considered
Maybe a separate command if refactoring is not simple for some reason.
Additional context
Related command
az policy assignment deleteIs your feature request related to a problem? Please describe.
Most other az cli commands allow you to delete by name or id (example). It's unintuitive for this one command to require deletion by name. Policy assignment names are also different from the displayName so it's an extra layer of translation that is different than other resources.
Describe the solution you'd like
Add a
--idoption to the command that has the command use the Policy Assignments - Delete By Id endpoint in the API.Describe alternatives you've considered
Maybe a separate command if refactoring is not simple for some reason.
Additional context