Skip to content

RedisEnterprise resource deployment fails subsequently #18604

@Rasmus715

Description

@Rasmus715

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

  1. 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'
  }
}
  1. 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.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions