WithStorageRoleAssignments
Method
func (Resource) WithStorageRoleAssignments( target AzureStorageResource, roles []AzureStorageRole,) ResourceSignature
method
WithStorageRoleAssignments builderAssigns 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,) ResourceParameters
targetAzureStorageResource The target Azure Storage account.roles[]AzureStorageRole The storage roles to be assigned.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
AzureBicepResourcetype
AzureBlobStorageContainerResourcetype
AzureBlobStorageResourcetype
AzureDataLakeStorageFileSystemResourcetype
AzureDataLakeStorageResourcetype
AzureEnvironmentResourcetype
AzureProvisioningResourcetype
AzureQueueStorageQueueResourcetype
AzureQueueStorageResourcetype
AzureStorageEmulatorResourcetype
AzureStorageResourcetype
AzureTableStorageResourcetype
AzureUserAssignedIdentityResourcetype
CSharpAppResourcetype
ContainerRegistryResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
ExternalServiceResourcetype
ParameterResourcetype
ProjectResource