withSignalRRoleAssignments

Method
📦 Aspire.Hosting.Azure.SignalR v17.0.0
interface ContainerResource {
// ... omitted for brevity
withSignalRRoleAssignments(
target: AzureSignalRResource,
roles: AzureSignalRRole[]): IResource;
}

Signature

methodwithSignalRRoleAssignmentsbuilder
Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure SignalR resource. This replaces the default role assignments for the resource.
withSignalRRoleAssignments(
target: AzureSignalRResource,
roles: AzureSignalRRole[]): IResource
targetAzureSignalRResourceThe target Azure SignalR resource.
rolesAzureSignalRRole[]The Azure SignalR roles to be assigned (for example, `SignalRContributor`).
IResource

Applies to

This method applies to the following types: