withCognitiveServicesRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withCognitiveServicesRoleAssignments( target: AzureOpenAIResource, roles: AzureOpenAIRole[]): IResource;}Signature
method
withCognitiveServicesRoleAssignmentsbuilderAssigns 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[]): IResourceParameters
targetAzureOpenAIResourcerolesAzureOpenAIRole[]Returns
IResourceApplies to
This method applies to the following types:
type
ContainerResourcetype
ExecutableResourcetype
ProjectResourcetype
ParameterResourcetype
ContainerRegistryResourcetype
DotnetToolResourcetype
ExternalServiceResourcetype
CSharpAppResourcetype
AzureOpenAIDeploymentResourcetype
AzureOpenAIResourcetype
AzureBicepResourcetype
AzureProvisioningResourcetype
AzureEnvironmentResourcetype
AzureUserAssignedIdentityResource