Skip to content
Docs Try Aspire
Docs Try

withCognitiveServicesRoleAssignments

Method
📦 Aspire.Hosting.Azure.CognitiveServices v13.4.0
interface ContainerResource {
// ... omitted for brevity
withCognitiveServicesRoleAssignments(
target: AzureOpenAIResource,
roles: AzureOpenAIRole[]): IResource;
}

Signature

method withCognitiveServicesRoleAssignments builder
Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure OpenAI resource. This replaces the default role assignments for the resource.
withCognitiveServicesRoleAssignments(
target: AzureOpenAIResource,
roles: AzureOpenAIRole[]): IResource
target AzureOpenAIResource
roles AzureOpenAIRole[]
IResource

Applies to

This method applies to the following types: