Skip to content

[Feature]: New-AzRoleAssignment cmdlet should support SupportsShouldProcess #26150

Open

Description

Description of the new feature

New-AzRoleAssignment cmdlet should support -Confirm and -WhatIf to maintain parity with Set-AzRoleAssignment and Remove-AzRoleAssignment.

I was writing a script and wanted to use -Confirm for or RBAC write but noticed that New-AzRoleAssignment does not support it even Set-AzRoleAssignment does. This makes scripting really weird.

  • Looks like SetAzureRoleAssignmentCommand was added with confirmation support but it was never added into New-AzRoleAssignment
  • Not sure about history of Remove-AzRoleAssignment

Proposed implementation details (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Resource AuthorizationAzRole* in Az.ResourcesService AttentionThis issue is responsible by Azure service team.customer-reportedfeature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions