Raised from #2077
Usage
aad app role set [options]
Description
Updates the specified Azure AD app registration role
Options
| Option |
Description |
--appId [appId] |
ID of the Azure AD app registration for which to update the role. Specify appId, appObjectId or appName |
--appName [appName] |
Name of the Azure AD app registration for which to update the role. Specify appId, appObjectId or appName |
--appObjectId [appObjectId] |
Object ID of the Azure AD app registration for which to update the role. Specify appId, appObjectId or appName |
-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 |
--newName [newName] |
New name for the role |
--newDescription [newDescription] |
New description for the role |
--newClaim [newClaim] |
New claim for the role |
--enabled [enabled] |
Set to true to enable the role and to false to disable it |
Additional Information
If the appName option was specified, and multiple Azure AD app registrations with the specified name were found, updating 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, updating the role will fail and CLI will prompt for specifying the role using its claim, showing the discovered claims.
Raised from #2077
Usage
aad app role set [options]Description
Updates the specified Azure AD app registration role
Options
--appId [appId]appId,appObjectIdorappName--appName [appName]appId,appObjectIdorappName--appObjectId [appObjectId]appId,appObjectIdorappName-n, --name [name]name,idorclaim-i, --id [id]name,idorclaim-c, --claim [claim]name,id, orclaim--newName [newName]--newDescription [newDescription]--newClaim [newClaim]--enabled [enabled]trueto enable the role and tofalseto disable itAdditional Information
If the
appNameoption was specified, and multiple Azure AD app registrations with the specified name were found, updating 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, updating the role will fail and CLI will prompt for specifying the role using its claim, showing the discovered claims.