az ad app permission add
command to grant the required permissions to the Azure Active Directory (AAD) application.--id
parameter with the AAD application ID.--api
parameter to specify the API permissions required.--scope
parameter to specify the scope of the permissions.az role assignment create
command to assign the AAD application to the desired role.--assignee
parameter with the AAD application ID.--role
parameter to specify the role to be assigned.--scope
parameter with the appropriate scope for the role assignment.az role assignment list
command to verify that the AAD application has been successfully assigned to the role.--assignee
parameter with the AAD application ID.--scope
parameter to specify the scope of the role assignment.azure-mgmt-authorization
package to manage Azure AD Conditional Access Policies.PolicyDefinitionsOperations
and PolicyAssignmentsOperations
classes to define and assign policies respectively.displayName
, conditions
, grantControls
, and sessionControls
for the policies.azure-mgmt-authorization
package to manage RBAC in Azure.RoleDefinitionsOperations
and RoleAssignmentsOperations
classes to define and assign roles respectively.roleName
, description
, permissions
, and assignableScopes
for the roles.azure-mgmt-authorization
package to manage Azure AD PIM.PimRoleAssignmentsOperations
class to manage PIM role assignments.principalId
, resourceId
, roleDefinitionId
, and assignmentState
for the role assignments.