Hello.
Please consider this Bicep template:
param deploymentName string = ''
resource storageAccountsRedis 'Microsoft.Storage/storageAccounts@2021-04-01' = {
name: '${deploymentName}redis'
location: resourceGroup().location
sku: {
name: 'Standard_GRS'
}
kind: 'BlobStorage'
properties: {
accessTier: 'Cool'
allowSharedKeyAccess: true
}
}
resource redisDatabase 'Microsoft.Cache/redis@2020-12-01' = {
dependsOn: [
storageAccountsRedis
]
name: '${deploymentName}Redis'
location: resourceGroup().location
properties: {
enableNonSslPort: true
redisConfiguration: {
'rdb-backup-enabled': 'true'
'rdb-backup-frequency': '15'
'rdb-backup-max-snapshot-count': '1'
'rdb-storage-connection-string': 'DefaultEndpointsProtocol=https;BlobEndpoint=https://${storageAccountsRedis.name}.blob.${environment().suffixes.storage};AccountName=${storageAccountsRedis.name};AccountKey=${storageAccountsRedis.listKeys().keys[0].value}'
}
redisVersion: '6'
sku: {
capacity: 1
family: 'P'
name: 'Premium'
}
}
}
This is a very simple template that deploys Redis, with a backup to Storage Account every 15 minutes. When I deploy it a container -persistence is created in the Storage Account, but no backups ever appear in it. I can't find any errors/warnings regarding backups.
I don't know how should I proceed from here.
is not supported, The Redis cache persist file is "Page blob" The account type "BlobStorage" does not support page blob.