withFoundryRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withFoundryRoleAssignments( target: FoundryResource, roles: FoundryRole[]): IResource;}Signature
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[]): IResourceParameters
targetFoundryResource rolesFoundryRole[] Returns
IResource Applies to
This method applies to the following types:
type
ContainerResourcetype
ExecutableResourcetype
ProjectResourcetype
ParameterResourcetype
ContainerRegistryResourcetype
DotnetToolResourcetype
ExternalServiceResourcetype
CSharpAppResourcetype
FoundryDeploymentResourcetype
FoundryResourcetype
BingGroundingConnectionResourcetype
AzurePromptAgentResourcetype
FoundryToolboxResourcetype
AzureAISearchToolResourcetype
AzureFunctionToolResourcetype
BingGroundingToolResourcetype
CodeInterpreterToolResourcetype
FileSearchToolResourcetype
WebSearchToolResourcetype
ImageGenerationToolResourcetype
ComputerToolResourcetype
SharePointToolResourcetype
FabricToolResourcetype
FoundryToolResourcetype
FunctionToolResourcetype
AzureCognitiveServicesProjectResourcetype
AzureCosmosDBResourcetype
AzureCognitiveServicesProjectConnectionResourcetype
AzureStorageResourcetype
AzureContainerRegistryResourcetype
AzureSearchResourcetype
AzureKeyVaultResourcetype
AzureApplicationInsightsResourcetype
AzureBicepResourcetype
AzureProvisioningResourcetype
AzureEnvironmentResourcetype
AzureUserAssignedIdentityResourcetype
AzureLogAnalyticsWorkspaceResourcetype
AzureCosmosDBEmulatorResourcetype
AzureCosmosDBDatabaseResourcetype
AzureCosmosDBContainerResourcetype
AzureKeyVaultSecretResourcetype
AzureStorageEmulatorResourcetype
AzureBlobStorageResourcetype
AzureDataLakeStorageResourcetype
AzureBlobStorageContainerResourcetype
AzureDataLakeStorageFileSystemResourcetype
AzureTableStorageResourcetype
AzureQueueStorageResourcetype
AzureQueueStorageQueueResource