withStorageRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withStorageRoleAssignments( target: AzureStorageResource, roles: AzureStorageRole[]): IResource;}Signature
method
withStorageRoleAssignmentsbuilderAssigns 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[]): IResourceParameters
targetAzureStorageResourcerolesAzureStorageRole[]Returns
IResourceApplies to
This method applies to the following types:
type
ContainerResourcetype
ExecutableResourcetype
ProjectResourcetype
ParameterResourcetype
ContainerRegistryResourcetype
DotnetToolResourcetype
ExternalServiceResourcetype
CSharpAppResourcetype
AzureStorageResourcetype
AzureStorageEmulatorResourcetype
AzureBlobStorageResourcetype
AzureDataLakeStorageResourcetype
AzureBlobStorageContainerResourcetype
AzureDataLakeStorageFileSystemResourcetype
AzureTableStorageResourcetype
AzureQueueStorageResourcetype
AzureQueueStorageQueueResourcetype
AzureBicepResourcetype
AzureProvisioningResourcetype
AzureEnvironmentResourcetype
AzureUserAssignedIdentityResource