WithAppRole
Method
func (EntraIdApplicationResource) WithAppRole( value string, displayName string, description string, options ...*WithAppRoleOptions,) EntraIdApplicationResourceSignature
method
WithAppRole builderDeclares an application role on a registration created by Aspire.
WithAppRole( value string, displayName string, description string, options ...*WithAppRoleOptions,) EntraIdApplicationResourceParameters
valuestringThe value emitted in the roles claim, for example Admin. It must be unique for the application, at most 120 characters, must not start with a period, and may contain only ASCII letters, digits and the punctuation that Microsoft Graph allows.displayName stringThe display name shown in the Microsoft Entra admin center.descriptionstringThe description shown in assignment and consent experiences.options...*WithAppRoleOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithAppRoleOptions argument.
AllowedMemberTypes []string The member types the role can be assigned to, passed through to Microsoft Graph (for example User or Application). Defaults to User.Id*stringAn optional role GUID. When omitted, a stable ID is derived from the registration's resource name and value.IsEnabled *boolWhether the role is enabled. Defaults to true. To retire a role, deploy it with false and leave it declared; disabling is not access revocation because existing assignments still receive the role in tokens.Returns
EntraIdApplicationResource The registration builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: