WithCognitiveServicesRoleAssignments
Method
func (Resource) WithCognitiveServicesRoleAssignments( target AzureOpenAIResource, roles []AzureOpenAIRole,) ResourceSignature
method
WithCognitiveServicesRoleAssignments builderAssigns 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,) ResourceParameters
targetAzureOpenAIResource The target Azure OpenAI resource.roles[]AzureOpenAIRole The Azure OpenAI roles to be assigned (for example, CognitiveServicesOpenAIUser ).Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
AzureBicepResourcetype
AzureEnvironmentResourcetype
AzureOpenAIDeploymentResourcetype
AzureOpenAIResourcetype
AzureProvisioningResourcetype
AzureUserAssignedIdentityResourcetype
CSharpAppResourcetype
ContainerRegistryResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
ExternalServiceResourcetype
ParameterResourcetype
ProjectResource