Skip to content
Docs Try Aspire
Docs Try

withFoundryRoleAssignments

Method
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
interface ContainerResource {
// ... omitted for brevity
withFoundryRoleAssignments(
target: FoundryResource,
roles: FoundryRole[]): IResource;
}

Signature

method withFoundryRoleAssignments builder
Assigns 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[]): IResource
target FoundryResource
roles FoundryRole[]
IResource

Applies to

This method applies to the following types:

type ContainerResource
type ExecutableResource
type ProjectResource
type ParameterResource
type ContainerRegistryResource
type DotnetToolResource
type ExternalServiceResource
type CSharpAppResource
type FoundryDeploymentResource
type FoundryResource
type BingGroundingConnectionResource
type AzurePromptAgentResource
type AzureAISearchToolResource
type AzureFunctionToolResource
type BingGroundingToolResource
type CodeInterpreterToolResource
type FileSearchToolResource
type WebSearchToolResource
type ImageGenerationToolResource
type ComputerToolResource
type SharePointToolResource
type FabricToolResource
type FoundryToolResource
type FunctionToolResource
type AzureCognitiveServicesProjectResource
type AzureCosmosDBResource
type AzureCognitiveServicesProjectConnectionResource
type AzureStorageResource
type AzureContainerRegistryResource
type AzureSearchResource
type AzureKeyVaultResource
type AzureApplicationInsightsResource
type AzureBicepResource
type AzureProvisioningResource
type AzureEnvironmentResource
type AzureUserAssignedIdentityResource
type AzureLogAnalyticsWorkspaceResource
type AzureCosmosDBEmulatorResource
type AzureCosmosDBDatabaseResource
type AzureCosmosDBContainerResource
type AzureKeyVaultSecretResource
type AzureStorageEmulatorResource
type AzureBlobStorageResource
type AzureDataLakeStorageResource
type AzureBlobStorageContainerResource
type AzureDataLakeStorageFileSystemResource
type AzureTableStorageResource
type AzureQueueStorageResource
type AzureQueueStorageQueueResource