Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PublishWithAppRoleAssignment

Method
📦 Aspire.Hosting.Azure.EntraId v17.0.0-preview.1.26565.2
func (EntraIdApplicationResource) PublishWithAppRoleAssignment(
identity any,
roleValues []string,
) EntraIdApplicationResource

Signature

methodPublishWithAppRoleAssignmentbuilder
Publishes explicit application-role assignments to a managed identity or a compute resource's managed identity.
PublishWithAppRoleAssignment(
identity any,
roleValues []string,
) EntraIdApplicationResource
identityanyThe user-assigned identity or compute resource receiving the roles.
roleValues[]stringEnabled role values declared on this API that allow Application members.
EntraIdApplicationResource

The API registration builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: