-
Notifications
You must be signed in to change notification settings - Fork 811
Open
Labels
Description
Bicep version
Used within Azure DevOps ubuntu-latest agent. 0.38.33 (6bb5d5f)
Describe the bug
When redisEnterpise & database is specified in bicep file, deployment to the Azure fails.
However, manual resource creation via Marketplace works successfully.
To Reproduce
- Add following resources to bicep file:
resource redisEnterprise 'Microsoft.Cache/redisEnterprise@2025-08-01-preview' = {
name: 'redis-${prefix}-${environment}-${locationShort}'
location: location
sku: {
name: 'Balanced_B0'
}
properties: {
highAvailability: 'Enabled'
publicNetworkAccess: 'Enabled'
}
tags: {}
}
resource redisEnterpriseDatabase 'Microsoft.Cache/redisEnterprise/databases@2025-08-01-preview' = {
name: 'default'
parent: redisEnterprise
properties: {
clientProtocol: 'Encrypted'
evictionPolicy: 'NoEviction'
clusteringPolicy: 'OSSCluster'
deferUpgrade: 'NotDeferred'
persistence: {
aofEnabled: false
rdbEnabled: false
}
accessKeysAuthentication: 'Enabled'
}
}- Deploy infrastructure to Azure
ARM Template:
{
"type": "Microsoft.Cache/redisEnterprise",
"apiVersion": "2025-08-01-preview",
"name": "[format('redis-{0}-{1}-{2}', parameters('prefix'), parameters('environment'), parameters('locationShort'))]",
"location": "[parameters('location')]",
"tags": {},
"sku": {
"name": "Balanced_B0"
},
"properties": {
"highAvailability": "Enabled",
"publicNetworkAccess": "Enabled"
}
},
{
"type": "Microsoft.Cache/redisEnterprise/databases",
"apiVersion": "2025-08-01-preview",
"name": "[format('{0}/{1}', format('redis-{0}-{1}-{2}', parameters('prefix'), parameters('environment'), parameters('locationShort')), 'default')]",
"dependsOn": [
"[resourceId('Microsoft.Cache/redisEnterprise', format('redis-{0}-{1}-{2}', parameters('prefix'), parameters('environment'), parameters('locationShort')))]"
],
"properties": {
"clientProtocol": "Encrypted",
"evictionPolicy": "NoEviction",
"clusteringPolicy": "OSSCluster",
"deferUpgrade": "NotDeferred",
"persistence": {
"aofEnabled": false,
"rdbEnabled": false
},
"accessKeysAuthentication": "Enabled"
}
},
Additional context
location: WestEurope
Version downgrade of the resource does not mitigate the issue.

Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo