Skip to content
DocsTry Aspire
DocsTry

withFoundryRoleAssignments

Method
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
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
targetFoundryResource
rolesFoundryRole[]
IResource

Applies to

This method applies to the following types: