Claude-skill-registry azure-infra-bicep
Create or update Azure infrastructure Bicep under infra/ for this project (Cosmos DB account/database/containers, Managed Identity, Container Apps for backend_api) using region japaneast, env dev, and Free Tier enabled. Use when asked to provision Azure infra or write Bicep templates.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/azure-infra-bicep" ~/.claude/skills/majiayu000-claude-skill-registry-azure-infra-bicep && rm -rf "$T"
manifest:
skills/data/azure-infra-bicep/SKILL.mdsource content
Azure Infra Bicep (Cosmos DB + Container Apps)
Goal
Provision Azure resources with Bicep for this repo:
- Cosmos DB account (NoSQL) + database + containers
- Managed Identity (user-assigned) for API
- Container Apps environment + Container App for backend_api
- RBAC role assignment: Cosmos DB Built-in Data Contributor
Defaults for this project
- Environment:
dev - Location:
japaneast - Cosmos DB Free Tier: enabled
Workflow
- Create
if missing.infra/ - Add
andinfra/main.bicep
.infra/params/dev.bicepparam - Define parameters:
,env
,location
,containerImage
,containerCpu
,containerMemory
.containerPort - Create resources:
- Cosmos DB account (SQL API) with
.enableFreeTier: true - SQL database (name:
orreal_estate
).${env}-real-estate - Containers:
,property_types
,buildings
,units
,parking_lots
,payment_histories
.attachments- Partition key:
./id
- Partition key:
- Log Analytics workspace.
- Container Apps environment.
- User-assigned Managed Identity.
- Container App for backend_api.
- Cosmos DB account (SQL API) with
- Configure Container App env vars:
= Cosmos DB account endpointCOSMOS_ENDPOINT
= database nameCOSMOS_DATABASE
=COSMOS_CONTAINER_PREFIX${env}
- Add RBAC role assignment:
- Role:
Cosmos DB Built-in Data Contributor - Scope: Cosmos DB account
- Principal: user-assigned managed identity
- Role:
- Keep the Bicep minimal and deployable at resource group scope.
Output files
infra/main.bicepinfra/params/dev.bicepparam
Notes
- Do not add README or extra docs for the skill.
- Prefer concise comments only when a block is complex.