description | page_type | products | urlFragment | languages | ||||
---|---|---|---|---|---|---|---|---|
This template creates a Storage Account with Storage Service Encryption and a blob deletion retention policy |
sample |
|
storage-blob-encryption-and-retention |
|
This template creates an Azure Storage account with Storage Service Encryption and a blob deletion retention policy.
param deploymentName string = 'storage${utcNow()}'
module storage './main.bicep' = {
name: deploymentName
params: {
storageAccountName: 'mystorageaccount'
storageSku: 'Standard_LRS'
storageKind: 'StorageV2'
storageTier: 'Hot'
deleteRetentionPolicy: 7
}
}
param deploymentName string = 'storage${utcNow()}'
module storage './main.bicep' = {
name: deploymentName
params: {
storageAccountName: 'mystorageaccount'
storageSku: 'Standard_LRS'
storageKind: 'StorageV2'
storageTier: 'Hot'
deleteRetentionPolicy: 7
blobEncryptionEnabled: false
}
}
Tags: bicep, storage, blob, Microsoft.Storage/storageAccounts, Microsoft.Storage/storageAccounts/blobServices