Skip to content

Instantly share code, notes, and snippets.

@lukemurraynz
Last active December 27, 2021 08:26
Show Gist options
  • Save lukemurraynz/e2e087010c73167fdb2ce4a44ad660e9 to your computer and use it in GitHub Desktop.
Save lukemurraynz/e2e087010c73167fdb2ce4a44ad660e9 to your computer and use it in GitHub Desktop.
storageaccount.bicep
param storageaccprefix string = ''
var location = resourceGroup().location
resource storageacc 'Microsoft.Storage/storageAccounts@2021-06-01' = {
name: '${storageaccprefix}${uniqueString(resourceGroup().id)}'
location: location
sku: {
name: 'Standard_ZRS'
}
kind: 'StorageV2'
properties: {
defaultToOAuthAuthentication: false
allowCrossTenantReplication: false
minimumTlsVersion: 'TLS1_2'
allowBlobPublicAccess: true
allowSharedKeyAccess: true
isHnsEnabled: true
supportsHttpsTrafficOnly: true
encryption: {
services: {
blob: {
keyType: 'Account'
enabled: true
}
}
keySource: 'Microsoft.Storage'
}
accessTier: 'Hot'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment