EntraIdAppRole
Classsealednet10.0
Describes an application role declared on a Microsoft Entra ID application registration created by Aspire.
namespace Aspire.Hosting.Azure;
public sealed class EntraIdAppRole{ // ...}7 members
Remarks
Section titled Remarks Application roles are separate from delegated scopes and from Azure RBAC roles. Declaring a role does not assign it to any principal.
Constructors1
Section titled Constructors Initializes a new instance of the
EntraIdAppRole class. Properties6
Section titled PropertiesIReadOnlyList<string> Gets the member types the role can be assigned to, passed through to Microsoft Graph (for example
User or Application). IdgetGuid? Gets the explicitly configured role ID, or
null when the ID is derived from the application name and role value. IsEnabled getbool Gets whether the role can be assigned to new principals. A disabled role is still issued in tokens for existing assignments, so this is not access revocation. Microsoft Graph requires a role to be disabled before it is removed.