Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Azure Bicep Cloud Run

ASecurity

Deploy containerized workloads, Azure Container Apps, Azure Kubernetes Service (AKS), and App Services using Azure Bicep and Azure CLI. Triggers when writing Bicep modules, configuring Azure Managed Identities, Key Vault integration, Private Endpoints, Virtual Networks (VNet), GitHub Actions/Azure DevOps CI/CD pipelines, or enterprise Azure governance policies.

8 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgoshellbashkubernetesawsazuregitapidevopsci/cd

Works with

cliapi

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add hamzabellouch/agent-skills --skill azure-bicep-cloud-run --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Azure Bicep Cloud Run?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Azure Bicep Cloud Run
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hamzabellouch-azure-bicep-cloud-run/badge)](https://www.skillsdirectory.com/skills/hamzabellouch-azure-bicep-cloud-run)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: azure-bicep-cloud-run
metadata:
  category: Multi-Cloud Architecture (AWS and Azure)
description: >-
  Deploy containerized workloads, Azure Container Apps, Azure Kubernetes Service (AKS), and App Services using Azure Bicep and Azure CLI.
  Triggers when writing Bicep modules, configuring Azure Managed Identities, Key Vault integration, Private Endpoints,
  Virtual Networks (VNet), GitHub Actions/Azure DevOps CI/CD pipelines, or enterprise Azure governance policies.
compatibility: Azure CLI (>= 2.50.0), Bicep CLI (>= 0.20.0), Azure Container Apps / AKS, PowerShell 7+ or Bash
---

# Azure Bicep & Container App Deployments

Enterprise infrastructure declaration and container hosting patterns using Azure Bicep modules, Managed Identities, and Azure Container Apps (ACA).

---

## 1. Directory & Modular Bicep Layout

```text
infrastructure/
├── main.bicep                  # Root deployment module orchestrating resources
├── main.bicepparam             # Production parameter configuration
├── modules/
│   ├── network/
│   │   └── vnet.bicep          # VNet, Subnets, Network Security Groups
│   ├── identity/
│   │   └── uami.bicep          # User-Assigned Managed Identity & RBAC
│   ├── security/
│   │   └── keyvault.bicep      # Key Vault & Secret Access Rules
│   ├── registry/
│   │   └── acr.bicep           # Azure Container Registry with Private Endpoint
│   └── compute/
│       ├── container-env.bicep # ACA Environment & Log Analytics
│       └── container-app.bicep # ACA App deployment with Dapr & Ingress
└── .github/workflows/
    └── deploy-bicep.yml        # CI/CD deployment pipeline
```

---

## 2. Production Bicep Module Declarations

### Virtual Network & Security (`modules/network/vnet.bicep`)

```bicep
@description('Azure Region')
param location string

@description('Environment Name')
param environment string

@description('VNet CIDR prefix')
param vnetCidr string = '10.200.0.0/16'

resource nsg 'Microsoft.Network/networkSecurityGroups@2023-05-01' = {
  name: 'nsg-aca-${environment}-${location}'
  location: location
  properties: {
    securityRules: [
      {
        name: 'AllowHTTPS'
        properties: {
          priority: 100
          direction: 'Inbound'
          access: 'Allow'
          protocol: 'Tcp'
          sourcePortRange: '*'
          destinationPortRange: '443'
          sourceAddressPrefix: 'Internet'
          destinationAddressPrefix: '*'
        }
      }
    ]
  }
}

resource vnet 'Microsoft.Network/virtualNetworks@2023-05-01' = {
  name: 'vnet-${environment}-${location}'
  location: location
  properties: {
    addressSpace: {
      addressPrefixes: [
        vnetCidr
      ]
    }
    subnets: [
      {
        name: 'snet-aca-infrastructure'
        properties: {
          addressPrefix: '10.200.0.0/23'
          delegations: [
            {
              name: 'aca-delegation'
              properties: {
                serviceName: 'Microsoft.App/environments'
              }
            }
          ]
          networkSecurityGroup: {
            id: nsg.id
          }
        }
      }
      {
        name: 'snet-private-endpoints'
        properties: {
          addressPrefix: '10.200.2.0/24'
          privateEndpointNetworkPolicies: 'Disabled'
        }
      }
    ]
  }
}

output vnetId string = vnet.id
output acaSubnetId string = vnet.properties.subnets[0].id
output privateEndpointSubnetId string = vnet.properties.subnets[1].id
```

---

### Key Vault & Managed Identity (`modules/security/keyvault.bicep`)

```bicep
param location string
param environment string
param managedIdentityPrincipalId string

resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' = {
  name: 'kv-${environment}-${uniqueString(resourceGroup().id)}'
  location: location
  properties: {
    tenantId: subscription().tenantId
    sku: {
      family: 'A'
      name: 'standard'
    }
    enableRbacAuthorization: true
    enableSoftDelete: true
    softDeleteRetentionInDays: 90
    networkAcls: {
      defaultAction: 'Deny'
      bypass: 'AzureServices'
    }
  }
}

// Grant Key Vault Secrets User role to User-Assigned Managed Identity
resource secretsUserRole 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(keyVault.id, managedIdentityPrincipalId, '46330053-8b77-449d-ab14-76c242b87460')
  scope: keyVault
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '46330053-8b77-449d-ab14-76c242b87460') // Key Vault Secrets User
    principalId: managedIdentityPrincipalId
    principalType: 'ServicePrincipal'
  }
}

output keyVaultName string = keyVault.name
output keyVaultUri string = keyVault.properties.vaultUri
```

---

### Azure Container Apps Environment & Application (`modules/compute/container-app.bicep`)

```bicep
param location string
param environment string
param infrastructureSubnetId string
param containerImage string
param userAssignedIdentityId string
param userAssignedClientId string

resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
  name: 'log-${environment}-${location}'
  location: location
  properties: {
    sku: {
      name: 'PerGB2018'
    }
    retentionInDays: 30
  }
}

resource acaEnv 'Microsoft.App/managedEnvironments@2023-05-01' = {
  name: 'cae-${environment}-${location}'
  location: location
  properties: {
    vnetConfiguration: {
      infrastructureSubnetId: infrastructureSubnetId
      internal: false
    }
    appLogsConfiguration: {
      destination: 'log-analytics'
      logAnalyticsConfiguration: {
        customerId: logAnalytics.properties.customerId
        sharedKey: logAnalytics.listKeys().primarySharedKey
      }
    }
  }
}

resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
  name: 'app-${environment}-api'
  location: location
  identity: {
    type: 'UserAssigned'
    userAssignedIdentities: {
      '${userAssignedIdentityId}': {}
    }
  }
  properties: {
    managedEnvironmentId: acaEnv.id
    configuration: {
      ingress: {
        external: true
        targetPort: 8080
        transport: 'auto'
        allowInsecure: false
        traffic: [
          {
            latestRevision: true
            weight: 100
          }
        ]
      }
      registries: [
        {
          server: 'myregistry.azurecr.io'
          identity: userAssignedIdentityId
        }
      ]
    }
    template: {
      containers: [
        {
          name: 'api-server'
          image: containerImage
          resources: {
            cpu: json('0.5')
            memory: '1.0Gi'
          }
          env: [
            {
              name: 'AZURE_CLIENT_ID'
              value: userAssignedClientId
            }
          ]
          probes: [
            {
              type: 'Liveness'
              httpGet: {
                path: '/healthz'
                port: 8080
              }
              initialDelaySeconds: 15
              periodSeconds: 10
            }
          ]
        }
      ]
      scale: {
        minReplicas: 2
        maxReplicas: 10
        rules: [
          {
            name: 'http-scaling-rule'
            custom: {
              type: 'http'
              metadata: {
                concurrentRequests: '50'
              }
            }
          }
        ]
      }
    }
  }
}

output fqdn string = containerApp.properties.configuration.ingress.fqdn
```

---

## 3. GitHub Actions Continuous Deployment Workflow

```yaml
# .github/workflows/deploy-bicep.yml
name: Deploy Azure Bicep Infrastructure

on:
  push:
    branches: [ main ]
    paths:
      - 'infrastructure/**'

jobs:
  validate-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Azure Login
        uses: azure/login@v1
        with:
          creds: ${{ secrets.AZURE_CREDENTIALS }}

      - name: Bicep Lint
        run: az bicep build --file infrastructure/main.bicep

      - name: What-If Analysis
        run: |
          az deployment group what-if \
            --resource-group rg-prod-eastus \
            --template-file infrastructure/main.bicep \
            --parameters infrastructure/main.bicepparam

      - name: Deploy Bicep Stacks
        run: |
          az deployment group create \
            --resource-group rg-prod-eastus \
            --template-file infrastructure/main.bicep \
            --parameters infrastructure/main.bicepparam
```

---

## 4. Best Practices & Production Guidelines

1. **User-Assigned Managed Identity**: Prefer User-Assigned Managed Identity over System-Assigned for containerized microservices to allow pre-provisioned RBAC permissions in Bicep before deployment.
2. **What-If Validation**: Always run `az deployment group what-if` in CI/CD pipeline PRs to detect accidental resource deletions before execution.
3. **No Hardcoded Credentials**: Pass secrets solely via Key Vault references (`@description('Secret') param dbPassword string`) in parameter files.
4. **Bicep Parameter Files**: Standardize on `.bicepparam` files for strongly typed parameter bindings rather than legacy JSON parameter files.

Attribution

hamzabellouchhamzabellouch
View sourceSee grades on GitHubMore from hamzabellouch →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →