WithFoundryRoleAssignments
Method
func (Resource) WithFoundryRoleAssignments( target FoundryResource, roles []FoundryRole,) ResourceSignature
method
WithFoundryRoleAssignments builderAssigns 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,) ResourceParameters
targetFoundryResource The target Microsoft Foundry resource.roles[]FoundryRole The Microsoft Foundry 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
AzureAISearchToolResourcetype
AzureApplicationInsightsResourcetype
AzureBicepResourcetype
AzureBlobStorageContainerResourcetype
AzureBlobStorageResourcetype
AzureCognitiveServicesProjectConnectionResourcetype
AzureCognitiveServicesProjectResourcetype
AzureContainerRegistryResourcetype
AzureCosmosDBContainerResourcetype
AzureCosmosDBDatabaseResourcetype
AzureCosmosDBEmulatorResourcetype
AzureCosmosDBResourcetype
AzureDataLakeStorageFileSystemResourcetype
AzureDataLakeStorageResourcetype
AzureEnvironmentResourcetype
AzureFunctionToolResourcetype
AzureKeyVaultResourcetype
AzureKeyVaultSecretResourcetype
AzureLogAnalyticsWorkspaceResourcetype
AzurePromptAgentResourcetype
AzureProvisioningResourcetype
AzureQueueStorageQueueResourcetype
AzureQueueStorageResourcetype
AzureSearchResourcetype
AzureStorageEmulatorResourcetype
AzureStorageResourcetype
AzureTableStorageResourcetype
AzureUserAssignedIdentityResourcetype
BingGroundingConnectionResourcetype
BingGroundingToolResourcetype
CSharpAppResourcetype
CodeInterpreterToolResourcetype
ComputerToolResourcetype
ContainerRegistryResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
ExternalServiceResourcetype
FabricToolResourcetype
FileSearchToolResourcetype
FoundryDeploymentResourcetype
FoundryResourcetype
FoundryToolResourcetype
FoundryToolboxResourcetype
FunctionToolResourcetype
ImageGenerationToolResourcetype
ParameterResourcetype
ProjectResourcetype
SharePointToolResourcetype
WebSearchToolResource