Skip to content

Fix Azure Redis generated Bicep and customize infrastructure api#1264

Open
Waleed-KH wants to merge 2 commits into
microsoft:mainfrom
Waleed-KH:patch-redis
Open

Fix Azure Redis generated Bicep and customize infrastructure api#1264
Waleed-KH wants to merge 2 commits into
microsoft:mainfrom
Waleed-KH:patch-redis

Conversation

@Waleed-KH

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 16, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Azure Cache for Redis (hosted) integration docs to use Azure Cache for Redis Enterprise (cluster + database) resources and corresponding infrastructure customization examples.

Changes:

  • Switches the Bicep sample from Microsoft.Cache/redis to Microsoft.Cache/redisEnterprise and adds a databases child resource.
  • Updates the access policy assignment example to target the Redis Enterprise database scope.
  • Updates the .NET and JS infrastructure customization snippets to use Redis Enterprise types/SKU naming.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +342 to 346
redisCache.Sku = new RedisEnterpriseSku
{
Name = RedisSkuName.Standard,
Family = RedisSkuFamily.C,
Name = RedisEnterpriseSkuName.BalancedB1,
Capacity = 1,
};
}

output connectionString string = '${cache.properties.hostName},ssl=true'
output connectionString string = '${cache.properties.hostName}:10000,ssl=true'
Comment on lines +312 to 321
resource cache_default_contributor 'Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments@2025-07-01' = {
name: guid(cache_default.id, principalId, 'default')
properties: {
accessPolicyName: 'Data Contributor'
objectId: principalId
objectIdAlias: principalName
accessPolicyName: 'default'
user: {
objectId: principalId
}
}
parent: cache
parent: cache_default
}
output hostName string = cache.properties.hostName
```

In addition, role assignments are created for the Azure resource in a separate module:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants