File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ metadata name = 'AVM Storage Account Module'
2+
3+ import {
4+ default_deployment_param_type as default_deployment_param_type
5+ } from './types.bicep'
6+
7+ param deployment_param default_deployment_param_type
8+
9+ import { roleAssignmentType } from 'br/public:avm/utl/types/avm-common-types:0.5.1'
10+ @description ('Optional. Array of role assignments to create.' )
11+ param roleAssignments roleAssignmentType []?
12+
13+ module avmStorageAccount 'br/public:avm/res/storage/storage-account:0.20.0' = {
14+ name : format (deployment_param .resource_name_format_string , deployment_param .naming_abbrs .storage .storageAccount )
15+ params : {
16+ name : '${deployment_param .naming_abbrs .storage .storageAccount }${replace (deployment_param .solution_prefix , '-' , '' )}'
17+ location : deployment_param .resource_group_location
18+ skuName : 'Standard_LRS'
19+ kind : 'StorageV2'
20+ managedIdentities : { systemAssigned : true }
21+ minimumTlsVersion : 'TLS1_2'
22+ roleAssignments : [
23+ {
24+ principalId : avmManagedIdentity .outputs .principalId
25+ roleDefinitionIdOrName : 'Storage Blob Data Contributor'
26+ }
27+ // {
28+ // principalId: avmContainerApp.outputs.?systemAssignedMIPrincipalId
29+ // roleDefinitionIdOrName: 'Storage Blob Data Contributor'
30+ // }
31+ // {
32+ // principalId: avmContainerApp.outputs.?systemAssignedMIPrincipalId
33+ // roleDefinitionIdOrName: 'Storage Queue Data Contributor'
34+ // }
35+ ]
36+ networkAcls : {
37+ bypass : 'AzureServices'
38+ defaultAction : 'Allow'
39+ ipRules : []
40+ }
41+ supportsHttpsTrafficOnly : true
42+ accessTier : 'Hot'
43+ }
44+ }
You can’t perform that action at this time.
0 commit comments