Skip to content

az policy assignment delete should support deletion by id #27501

Description

@erose96

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

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions