Skip to content
DocsTry Aspire
DocsTry

withStorageRoleAssignments

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

Signature

methodwithStorageRoleAssignmentsbuilder
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
targetAzureStorageResource
rolesAzureStorageRole[]
IResource

Applies to

This method applies to the following types: