Skip to content
Docs Try Aspire
Docs Try

withStorageRoleAssignments

Method
📦 Aspire.Hosting.Azure.Storage v13.4.0
interface ContainerResource {
// ... omitted for brevity
withStorageRoleAssignments(
target: AzureStorageResource,
roles: AzureStorageRole[]): IResource;
}

Signature

method withStorageRoleAssignments builder
Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Storage account. This replaces the default role assignments for the resource.
withStorageRoleAssignments(
target: AzureStorageResource,
roles: AzureStorageRole[]): IResource
target AzureStorageResource
roles AzureStorageRole[]
IResource

Applies to

This method applies to the following types: