Skip to content
DocsTry Aspire
DocsTry

withWebPubSubRoleAssignments

Method
📦 Aspire.Hosting.Azure.WebPubSub v13.4.0
interface ContainerResource {
// ... omitted for brevity
withWebPubSubRoleAssignments(
target: AzureWebPubSubResource,
roles: AzureWebPubSubRole[]): IResource;
}

Signature

methodwithWebPubSubRoleAssignmentsbuilder
Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Web PubSub resource. This replaces the default role assignments for the resource.
withWebPubSubRoleAssignments(
target: AzureWebPubSubResource,
roles: AzureWebPubSubRole[]): IResource
targetAzureWebPubSubResource
rolesAzureWebPubSubRole[]
IResource

Applies to

This method applies to the following types: