Azdevify eshopOnWeb
This commit is contained in:
29
infra/core/storage/storage-account.bicep
Normal file
29
infra/core/storage/storage-account.bicep
Normal file
@@ -0,0 +1,29 @@
|
||||
param environmentName string
|
||||
param location string = resourceGroup().location
|
||||
|
||||
param allowBlobPublicAccess bool = false
|
||||
param kind string = 'StorageV2'
|
||||
param minimumTlsVersion string = 'TLS1_2'
|
||||
param sku object = { name: 'Standard_LRS' }
|
||||
|
||||
var abbrs = loadJsonContent('../../abbreviations.json')
|
||||
var resourceToken = toLower(uniqueString(subscription().id, environmentName, location))
|
||||
var tags = { 'azd-env-name': environmentName }
|
||||
|
||||
resource storage 'Microsoft.Storage/storageAccounts@2021-09-01' = {
|
||||
name: '${abbrs.storageStorageAccounts}${resourceToken}'
|
||||
location: location
|
||||
tags: tags
|
||||
kind: kind
|
||||
sku: sku
|
||||
properties: {
|
||||
minimumTlsVersion: minimumTlsVersion
|
||||
allowBlobPublicAccess: allowBlobPublicAccess
|
||||
networkAcls: {
|
||||
bypass: 'AzureServices'
|
||||
defaultAction: 'Allow'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output name string = storage.name
|
||||
Reference in New Issue
Block a user