Azure Managed Redis Cache
This workflow turns an agent cache or memory requirement into an Azure Managed Redis design, including SKU profile, private networking, managed identity access, key isolation, TTL policy, and optional Bicep deployment. It produces a Redis design note and deployment checklist.
[!NOTE]
This skill may shell out to Azure CLI for Bicep deployment using bundled scripts/redis-managed.bicep. Resolve bundled paths relative to this SKILL.md. Verify current Azure Managed Redis SKUs, API versions, module support, and pricing on Microsoft Learn before provisioning.
When to invoke
- "Design a Redis semantic cache for our agent gateway."
- "Provision Azure Managed Redis for vector memory."
- "Add session state for agent runs using Redis."
- "Choose the Redis SKU for cache, memory, and tenant isolation."
Prerequisites and context
- Cache or memory role is known: key-value cache, semantic cache, vector memory, or session store.
- Target region, environment, network posture, and data sensitivity are known.
- Azure CLI is authenticated if deploying.
- Bicep file exists at
scripts/redis-managed.bicep.
- Reference files exist under
references/.
Procedure
Step 1: Classify the Redis role
| Need |
Redis role |
Reference |
| Reuse repeated prompts or intents |
Semantic cache |
references/semantic-cache.md |
| Store durable agent facts or embeddings |
Vector memory |
references/vector-memory.md |
| Hold conversation or run state |
Session store |
references/session-store.md |
| Secure access and network path |
Identity and network |
references/access-and-network.md |
Step 2: Select SKU and controls
Step 3: Confirm before provisioning
Redis deployment summary:
- Name:
- Resource group:
- Location:
- SKU:
- Public network access:
- Data roles:
Proceed with Azure Managed Redis deployment or update? (y/n)
[!IMPORTANT]
Only proceed with Redis deployment, SKU changes, or paid resource updates if the user gives an explicit affirmative. On a negative, ambiguous, or missing response, output the design and stop.
Step 4: Deploy from the repository Bicep when approved
az deployment group create \
--resource-group <resource-group> \
--template-file scripts/redis-managed.bicep \
--parameters name=<redis-name> location=<location> sku=Balanced_B1 publicNetworkAccess=Disabled
Step 5: Validate integration decisions
Risk classification
| Severity |
Meaning |
| Critical |
Cross-tenant key leakage, public access for sensitive memory, or secrets committed to code. |
| High |
No TTL/invalidation for semantic cache, no managed identity plan, or undersized production SKU. |
| Medium |
Missing private DNS, unclear vector schema, or no cache observability. |
| Low |
Naming, tagging, or documentation gaps. |
Limits
- Do not use this skill for: general agent architecture (use agentic-architecture-patterns), Foundry agent runtime design (use foundry-agent-blueprint), or general Azure infrastructure (use azure-infrastructure).
- Keep exclusions and handoffs as by-name references to installed skills or agents, not relative links to other primitives.
- Stop before mutating infrastructure, clusters, repositories, or generated artifacts unless the procedure's confirmation gate is satisfied.
Troubleshooting
| Situation |
Action |
| SKU is unavailable |
Verify current regional SKU availability and choose an approved alternative. |
| Bicep deployment fails |
Report the Azure error, resource group, and parameters; do not retry with different settings without approval. |
| Managed identity is unsupported by client path |
Use Key Vault for secrets and document the migration path to identity. |
| Public access is required temporarily |
Add an expiration, network restriction, and risk note. |
Output template
Return exactly this structure:
# Azure Managed Redis Design
## Scope
- Role:
- Environment:
- Region:
## SKU And Network
| Decision | Value | Rationale |
|---|---|---|
## Key Design
- Namespace:
- TTL:
- Invalidation:
## Deployment
```bash
az deployment group create --resource-group <resource-group> --template-file scripts/redis-managed.bicep --parameters name=<redis-name>
Risks
| Severity |
Finding |
Mitigation |
## Quality gate
- [ ] Redis role, SKU, network posture, and identity model are documented.
- [ ] Paid deployment or SKU changes have explicit confirmation.
- [ ] Tenant isolation and TTL policy are defined.
- [ ] Bicep path and all references exist in the repository.
- [ ] Frontmatter contains a valid `name` matching the directory and a `description` with positive activation language.
- [ ] The response follows `## Output template` and includes evidence for checks actually performed.
- [ ] Tool, command, and file usage stays within this skill's procedure and confirmation gates.
- [ ] Referenced repository paths and bundled resources exist before use.
- [ ] This `SKILL.md` remains under 500 lines and contains no emojis.
1---2name: azure-managed-redis-cache3description: Use when designing or provisioning Azure Managed Redis for cache, semantic cache, vector memory, session store, or agent memory in AI-native systems; produces SKU guidance, network and identity controls, Bicep deployment steps, and integration recommendations. DO NOT USE FOR: general agent architecture (use agentic-architecture-patterns), Foundry agent runtime design (use foundry-agent-blueprint), or general Azure infrastructure (use azure-infrastructure). Triggers include "design Redis semantic cache", "provision Azure Managed Redis", "add vector memory".4---56<!-- Generated from harness/github-copilot/skills/azure-managed-redis-cache/SKILL.md by harness/claude-code/scripts/convert_from_copilot.py. Edit the source, not this file. -->78# Azure Managed Redis Cache910This workflow turns an agent cache or memory requirement into an Azure Managed Redis design, including SKU profile, private networking, managed identity access, key isolation, TTL policy, and optional Bicep deployment. It produces a Redis design note and deployment checklist.1112> [!NOTE]13> This skill may shell out to Azure CLI for Bicep deployment using bundled `scripts/redis-managed.bicep`. Resolve bundled paths relative to this `SKILL.md`. Verify current Azure Managed Redis SKUs, API versions, module support, and pricing on Microsoft Learn before provisioning.1415## When to invoke16- "Design a Redis semantic cache for our agent gateway."17- "Provision Azure Managed Redis for vector memory."18- "Add session state for agent runs using Redis."19- "Choose the Redis SKU for cache, memory, and tenant isolation."2021## Prerequisites and context22- Cache or memory role is known: key-value cache, semantic cache, vector memory, or session store.23- Target region, environment, network posture, and data sensitivity are known.24- Azure CLI is authenticated if deploying.25- Bicep file exists at `scripts/redis-managed.bicep`.26- Reference files exist under `references/`.2728## Procedure2930### Step 1: Classify the Redis role31| Need | Redis role | Reference |32|---|---|---|33| Reuse repeated prompts or intents | Semantic cache | `references/semantic-cache.md` |34| Store durable agent facts or embeddings | Vector memory | `references/vector-memory.md` |35| Hold conversation or run state | Session store | `references/session-store.md` |36| Secure access and network path | Identity and network | `references/access-and-network.md` |3738### Step 2: Select SKU and controls39- [ ] Choose Balanced for general cache and small vector sets.40- [ ] Choose MemoryOptimized for larger working sets.41- [ ] Choose ComputeOptimized for high-throughput or vector-heavy workloads.42- [ ] Choose FlashOptimized only when very large datasets justify tiered storage.43- [ ] Use tenant and user key namespaces such as `t:<tenant>:u:<user>:<purpose>`.44- [ ] Require TLS and managed identity where supported.45- [ ] Prefer private endpoint and disabled public network access for sensitive workloads.4647### Step 3: Confirm before provisioning48```text49Redis deployment summary:50- Name:51- Resource group:52- Location:53- SKU:54- Public network access:55- Data roles:56Proceed with Azure Managed Redis deployment or update? (y/n)57```5859> [!IMPORTANT]60> Only proceed with Redis deployment, SKU changes, or paid resource updates if the user gives an explicit affirmative. On a negative, ambiguous, or missing response, output the design and stop.6162### Step 4: Deploy from the repository Bicep when approved63```bash64az deployment group create \65 --resource-group <resource-group> \66 --template-file scripts/redis-managed.bicep \67 --parameters name=<redis-name> location=<location> sku=Balanced_B1 publicNetworkAccess=Disabled68```6970### Step 5: Validate integration decisions71- [ ] Application uses managed identity or Key Vault-managed connection secrets.72- [ ] Semantic cache threshold, TTL, invalidation, and embedding model are documented.73- [ ] Vector memory read/write policy prevents cross-tenant leakage.74- [ ] Session keys have expiration and bounded payload size.7576## Risk classification77| Severity | Meaning |78|---|---|79| Critical | Cross-tenant key leakage, public access for sensitive memory, or secrets committed to code. |80| High | No TTL/invalidation for semantic cache, no managed identity plan, or undersized production SKU. |81| Medium | Missing private DNS, unclear vector schema, or no cache observability. |82| Low | Naming, tagging, or documentation gaps. |8384## Limits8586- Do not use this skill for: general agent architecture (use agentic-architecture-patterns), Foundry agent runtime design (use foundry-agent-blueprint), or general Azure infrastructure (use azure-infrastructure).87- Keep exclusions and handoffs as by-name references to installed skills or agents, not relative links to other primitives.88- Stop before mutating infrastructure, clusters, repositories, or generated artifacts unless the procedure's confirmation gate is satisfied.8990## Troubleshooting91| Situation | Action |92|---|---|93| SKU is unavailable | Verify current regional SKU availability and choose an approved alternative. |94| Bicep deployment fails | Report the Azure error, resource group, and parameters; do not retry with different settings without approval. |95| Managed identity is unsupported by client path | Use Key Vault for secrets and document the migration path to identity. |96| Public access is required temporarily | Add an expiration, network restriction, and risk note. |9798## Output template99100Return exactly this structure:101```markdown102# Azure Managed Redis Design103104## Scope105- Role:106- Environment:107- Region:108109## SKU And Network110| Decision | Value | Rationale |111|---|---|---|112113## Key Design114- Namespace:115- TTL:116- Invalidation:117118## Deployment119```bash120az deployment group create --resource-group <resource-group> --template-file scripts/redis-managed.bicep --parameters name=<redis-name>121```122123## Risks124| Severity | Finding | Mitigation |125|---|---|---|126```127128## Quality gate129- [ ] Redis role, SKU, network posture, and identity model are documented.130- [ ] Paid deployment or SKU changes have explicit confirmation.131- [ ] Tenant isolation and TTL policy are defined.132- [ ] Bicep path and all references exist in the repository.133- [ ] Frontmatter contains a valid `name` matching the directory and a `description` with positive activation language.134- [ ] The response follows `## Output template` and includes evidence for checks actually performed.135- [ ] Tool, command, and file usage stays within this skill's procedure and confirmation gates.136- [ ] Referenced repository paths and bundled resources exist before use.137- [ ] This `SKILL.md` remains under 500 lines and contains no emojis.