Raised from #2077
Usage
aad app role add [options]
Description
Adds roles to the specified Azure AD app registration
Options
| Option |
Description |
--appId [appId] |
ID of the Azure AD app registration for which to retrieve roles. Specify appId or appName but not both |
--appName [appName] |
Name of the Azure AD app registration for which to retrieve roles. Specify appId or appName but not both |
-n, --name <name> |
Name of the role to add |
-d, --description <description> |
Description of the role to add |
-m, --allowedMembers <allowedMembers> |
Allowed members of the role. Allowed values usersGroups,applications,both |
-c, --claim <claim> |
Value which will be included in the "roles" claim of a token identifying a user or app which has been granted this app role |
Additional Information
When appName was specified and multiple apps with the same name were found, command will fail prompting for disambiguation showing the IDs of the matching apps.
Raised from #2077
Usage
aad app role add [options]Description
Adds roles to the specified Azure AD app registration
Options
--appId [appId]appIdorappNamebut not both--appName [appName]appIdorappNamebut not both-n, --name <name>-d, --description <description>-m, --allowedMembers <allowedMembers>usersGroups,applications,both-c, --claim <claim>Additional Information
When
appNamewas specified and multiple apps with the same name were found, command will fail prompting for disambiguation showing the IDs of the matching apps.