Skip to content

New command: delete Azure AD app registration role #2150

@waldekmastykarz

Description

@waldekmastykarz

Raised from #2077

Usage

aad app role delete [options]

Description

Deletes the specified Azure AD app registration role

Options

Option Description
--appId [appId] ID of the Azure AD app registration for which to remove the role. Specify appId or appName but not both
--appName [appName] Name of the Azure AD app registration for which to remove the role. Specify appId or appName but not both
-n, --name [name] Name of the role to remove. Specify name, id or claim
-i, --id [id] ID of the role to remove. Specify name, id or claim
-c, --claim [claim] Claim value of the role to remove. Specify name, id, or claim
--confirm Don't prompt for confirming removing the role

Additional Information

If the appName option was specified, and multiple Azure AD app registrations with the specified name were found, removing the role will fail and CLI will prompt for specifying the app using its ID, showing the discovered IDs.

If the name option was specified, and multiple roles with the specified name were found, removing the role will fail and CLI will prompt for specifying the role using its claim, showing the discovered claims.

If the role to be removed is enabled, it needs to be disabled first. This should be done automatically by CLI.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions