withFoundryRoleAssignments

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
interface ContainerResource {
// ... omitted for brevity
withFoundryRoleAssignments(
target: FoundryResource,
roles: FoundryRole[]): IResource;
}

Signature

methodwithFoundryRoleAssignmentsbuilder
Assigns the specified roles to the given resource, granting it the necessary permissions on the target Microsoft Foundry resource. This replaces the default role assignments for the resource.
withFoundryRoleAssignments(
target: FoundryResource,
roles: FoundryRole[]): IResource
targetFoundryResourceThe target Microsoft Foundry resource.
rolesFoundryRole[]The Microsoft Foundry roles to be assigned (for example, `CognitiveServicesOpenAIUser`).
IResource

Applies to

This method applies to the following types: