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.
Raised from #2077
Usage
aad app role delete [options]Description
Deletes the specified Azure AD app registration role
Options
--appId [appId]appIdorappNamebut not both--appName [appName]appIdorappNamebut not both-n, --name [name]name,idorclaim-i, --id [id]name,idorclaim-c, --claim [claim]name,id, orclaim--confirmAdditional Information
If the
appNameoption 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
nameoption 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.