{
  "schemaVersion": "1.0",
  "item": {
    "slug": "azd-deployment",
    "name": "Azd Deployment for Azure",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/thegovind/azd-deployment",
    "canonicalUrl": "https://clawhub.ai/thegovind/azd-deployment",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/azd-deployment",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=azd-deployment",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/acceptance-criteria.md",
      "references/azure-yaml-schema.md",
      "references/bicep-patterns.md",
      "references/troubleshooting.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/azd-deployment"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/azd-deployment",
    "agentPageUrl": "https://openagent3.xyz/skills/azd-deployment/agent",
    "manifestUrl": "https://openagent3.xyz/skills/azd-deployment/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/azd-deployment/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Azure Developer CLI (azd) Container Apps Deployment",
        "body": "Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure."
      },
      {
        "title": "Quick Start",
        "body": "# Initialize and deploy\nazd auth login\nazd init                    # Creates azure.yaml and .azure/ folder\nazd env new <env-name>      # Create environment (dev, staging, prod)\nazd up                      # Provision infra + build + deploy"
      },
      {
        "title": "Core File Structure",
        "body": "project/\n├── azure.yaml              # azd service definitions + hooks\n├── infra/\n│   ├── main.bicep          # Root infrastructure module\n│   ├── main.parameters.json # Parameter injection from env vars\n│   └── modules/\n│       ├── container-apps-environment.bicep\n│       └── container-app.bicep\n├── .azure/\n│   ├── config.json         # Default environment pointer\n│   └── <env-name>/\n│       ├── .env            # Environment-specific values (azd-managed)\n│       └── config.json     # Environment metadata\n└── src/\n    ├── frontend/Dockerfile\n    └── backend/Dockerfile"
      },
      {
        "title": "Minimal Configuration",
        "body": "name: azd-deployment\nservices:\n  backend:\n    project: ./src/backend\n    language: python\n    host: containerapp\n    docker:\n      path: ./Dockerfile\n      remoteBuild: true"
      },
      {
        "title": "Full Configuration with Hooks",
        "body": "name: azd-deployment\nmetadata:\n  template: my-project@1.0.0\n\ninfra:\n  provider: bicep\n  path: ./infra\n\nazure:\n  location: eastus2\n\nservices:\n  frontend:\n    project: ./src/frontend\n    language: ts\n    host: containerapp\n    docker:\n      path: ./Dockerfile\n      context: .\n      remoteBuild: true\n\n  backend:\n    project: ./src/backend\n    language: python\n    host: containerapp\n    docker:\n      path: ./Dockerfile\n      context: .\n      remoteBuild: true\n\nhooks:\n  preprovision:\n    shell: sh\n    run: |\n      echo \"Before provisioning...\"\n      \n  postprovision:\n    shell: sh\n    run: |\n      echo \"After provisioning - set up RBAC, etc.\"\n      \n  postdeploy:\n    shell: sh\n    run: |\n      echo \"Frontend: ${SERVICE_FRONTEND_URI}\"\n      echo \"Backend: ${SERVICE_BACKEND_URI}\""
      },
      {
        "title": "Key azure.yaml Options",
        "body": "OptionDescriptionremoteBuild: trueBuild images in Azure Container Registry (recommended)context: .Docker build context relative to project pathhost: containerappDeploy to Azure Container Appsinfra.provider: bicepUse Bicep for infrastructure"
      },
      {
        "title": "Three-Level Configuration",
        "body": "Local .env - For local development only\n.azure/<env>/.env - azd-managed, auto-populated from Bicep outputs\nmain.parameters.json - Maps env vars to Bicep parameters"
      },
      {
        "title": "Parameter Injection Pattern",
        "body": "// infra/main.parameters.json\n{\n  \"parameters\": {\n    \"environmentName\": { \"value\": \"${AZURE_ENV_NAME}\" },\n    \"location\": { \"value\": \"${AZURE_LOCATION=eastus2}\" },\n    \"azureOpenAiEndpoint\": { \"value\": \"${AZURE_OPENAI_ENDPOINT}\" }\n  }\n}\n\nSyntax: ${VAR_NAME} or ${VAR_NAME=default_value}"
      },
      {
        "title": "Setting Environment Variables",
        "body": "# Set for current environment\nazd env set AZURE_OPENAI_ENDPOINT \"https://my-openai.openai.azure.com\"\nazd env set AZURE_SEARCH_ENDPOINT \"https://my-search.search.windows.net\"\n\n# Set during init\nazd env new prod\nazd env set AZURE_OPENAI_ENDPOINT \"...\""
      },
      {
        "title": "Bicep Output → Environment Variable",
        "body": "// In main.bicep - outputs auto-populate .azure/<env>/.env\noutput SERVICE_FRONTEND_URI string = frontend.outputs.uri\noutput SERVICE_BACKEND_URI string = backend.outputs.uri\noutput BACKEND_PRINCIPAL_ID string = backend.outputs.principalId"
      },
      {
        "title": "Why azd up is Idempotent",
        "body": "Bicep is declarative - Resources reconcile to desired state\nRemote builds tag uniquely - Image tags include deployment timestamp\nACR reuses layers - Only changed layers upload"
      },
      {
        "title": "Preserving Manual Changes",
        "body": "Custom domains added via Portal can be lost on redeploy. Preserve with hooks:\n\nhooks:\n  preprovision:\n    shell: sh\n    run: |\n      # Save custom domains before provision\n      if az containerapp show --name \"$FRONTEND_NAME\" -g \"$RG\" &>/dev/null; then\n        az containerapp show --name \"$FRONTEND_NAME\" -g \"$RG\" \\\n          --query \"properties.configuration.ingress.customDomains\" \\\n          -o json > /tmp/domains.json\n      fi\n\n  postprovision:\n    shell: sh\n    run: |\n      # Verify/restore custom domains\n      if [ -f /tmp/domains.json ]; then\n        echo \"Saved domains: $(cat /tmp/domains.json)\"\n      fi"
      },
      {
        "title": "Handling Existing Resources",
        "body": "// Reference existing ACR (don't recreate)\nresource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-07-01' existing = {\n  name: containerRegistryName\n}\n\n// Set customDomains to null to preserve Portal-added domains\ncustomDomains: empty(customDomainsParam) ? null : customDomainsParam"
      },
      {
        "title": "Container App Service Discovery",
        "body": "Internal HTTP routing between Container Apps in same environment:\n\n// Backend reference in frontend env vars\nenv: [\n  {\n    name: 'BACKEND_URL'\n    value: 'http://ca-backend-${resourceToken}'  // Internal DNS\n  }\n]\n\nFrontend nginx proxies to internal URL:\n\nlocation /api {\n    proxy_pass $BACKEND_URL;\n}"
      },
      {
        "title": "Enable System-Assigned Identity",
        "body": "resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {\n  identity: {\n    type: 'SystemAssigned'\n  }\n}\n\noutput principalId string = containerApp.identity.principalId"
      },
      {
        "title": "Post-Provision RBAC Assignment",
        "body": "hooks:\n  postprovision:\n    shell: sh\n    run: |\n      PRINCIPAL_ID=\"${BACKEND_PRINCIPAL_ID}\"\n      \n      # Azure OpenAI access\n      az role assignment create \\\n        --assignee-object-id \"$PRINCIPAL_ID\" \\\n        --assignee-principal-type ServicePrincipal \\\n        --role \"Cognitive Services OpenAI User\" \\\n        --scope \"$OPENAI_RESOURCE_ID\" 2>/dev/null || true\n      \n      # Azure AI Search access\n      az role assignment create \\\n        --assignee-object-id \"$PRINCIPAL_ID\" \\\n        --role \"Search Index Data Reader\" \\\n        --scope \"$SEARCH_RESOURCE_ID\" 2>/dev/null || true"
      },
      {
        "title": "Common Commands",
        "body": "# Environment management\nazd env list                        # List environments\nazd env select <name>               # Switch environment\nazd env get-values                  # Show all env vars\nazd env set KEY value               # Set variable\n\n# Deployment\nazd up                              # Full provision + deploy\nazd provision                       # Infrastructure only\nazd deploy                          # Code deployment only\nazd deploy --service backend        # Deploy single service\n\n# Debugging\nazd show                            # Show project status\naz containerapp logs show -n <app> -g <rg> --follow  # Stream logs"
      },
      {
        "title": "Reference Files",
        "body": "Bicep patterns: See references/bicep-patterns.md for Container Apps modules\nTroubleshooting: See references/troubleshooting.md for common issues\nazure.yaml schema: See references/azure-yaml-schema.md for full options"
      },
      {
        "title": "Critical Reminders",
        "body": "Always use remoteBuild: true - Local builds fail on M1/ARM Macs deploying to AMD64\nBicep outputs auto-populate .azure/<env>/.env - Don't manually edit\nUse azd env set for secrets - Not main.parameters.json defaults\nService tags (azd-service-name) - Required for azd to find Container Apps\n|| true in hooks - Prevent RBAC \"already exists\" errors from failing deploy"
      }
    ],
    "body": "Azure Developer CLI (azd) Container Apps Deployment\n\nDeploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.\n\nQuick Start\n# Initialize and deploy\nazd auth login\nazd init                    # Creates azure.yaml and .azure/ folder\nazd env new <env-name>      # Create environment (dev, staging, prod)\nazd up                      # Provision infra + build + deploy\n\nCore File Structure\nproject/\n├── azure.yaml              # azd service definitions + hooks\n├── infra/\n│   ├── main.bicep          # Root infrastructure module\n│   ├── main.parameters.json # Parameter injection from env vars\n│   └── modules/\n│       ├── container-apps-environment.bicep\n│       └── container-app.bicep\n├── .azure/\n│   ├── config.json         # Default environment pointer\n│   └── <env-name>/\n│       ├── .env            # Environment-specific values (azd-managed)\n│       └── config.json     # Environment metadata\n└── src/\n    ├── frontend/Dockerfile\n    └── backend/Dockerfile\n\nazure.yaml Configuration\nMinimal Configuration\nname: azd-deployment\nservices:\n  backend:\n    project: ./src/backend\n    language: python\n    host: containerapp\n    docker:\n      path: ./Dockerfile\n      remoteBuild: true\n\nFull Configuration with Hooks\nname: azd-deployment\nmetadata:\n  template: my-project@1.0.0\n\ninfra:\n  provider: bicep\n  path: ./infra\n\nazure:\n  location: eastus2\n\nservices:\n  frontend:\n    project: ./src/frontend\n    language: ts\n    host: containerapp\n    docker:\n      path: ./Dockerfile\n      context: .\n      remoteBuild: true\n\n  backend:\n    project: ./src/backend\n    language: python\n    host: containerapp\n    docker:\n      path: ./Dockerfile\n      context: .\n      remoteBuild: true\n\nhooks:\n  preprovision:\n    shell: sh\n    run: |\n      echo \"Before provisioning...\"\n      \n  postprovision:\n    shell: sh\n    run: |\n      echo \"After provisioning - set up RBAC, etc.\"\n      \n  postdeploy:\n    shell: sh\n    run: |\n      echo \"Frontend: ${SERVICE_FRONTEND_URI}\"\n      echo \"Backend: ${SERVICE_BACKEND_URI}\"\n\nKey azure.yaml Options\nOption\tDescription\nremoteBuild: true\tBuild images in Azure Container Registry (recommended)\ncontext: .\tDocker build context relative to project path\nhost: containerapp\tDeploy to Azure Container Apps\ninfra.provider: bicep\tUse Bicep for infrastructure\nEnvironment Variables Flow\nThree-Level Configuration\nLocal .env - For local development only\n.azure/<env>/.env - azd-managed, auto-populated from Bicep outputs\nmain.parameters.json - Maps env vars to Bicep parameters\nParameter Injection Pattern\n// infra/main.parameters.json\n{\n  \"parameters\": {\n    \"environmentName\": { \"value\": \"${AZURE_ENV_NAME}\" },\n    \"location\": { \"value\": \"${AZURE_LOCATION=eastus2}\" },\n    \"azureOpenAiEndpoint\": { \"value\": \"${AZURE_OPENAI_ENDPOINT}\" }\n  }\n}\n\n\nSyntax: ${VAR_NAME} or ${VAR_NAME=default_value}\n\nSetting Environment Variables\n# Set for current environment\nazd env set AZURE_OPENAI_ENDPOINT \"https://my-openai.openai.azure.com\"\nazd env set AZURE_SEARCH_ENDPOINT \"https://my-search.search.windows.net\"\n\n# Set during init\nazd env new prod\nazd env set AZURE_OPENAI_ENDPOINT \"...\" \n\nBicep Output → Environment Variable\n// In main.bicep - outputs auto-populate .azure/<env>/.env\noutput SERVICE_FRONTEND_URI string = frontend.outputs.uri\noutput SERVICE_BACKEND_URI string = backend.outputs.uri\noutput BACKEND_PRINCIPAL_ID string = backend.outputs.principalId\n\nIdempotent Deployments\nWhy azd up is Idempotent\nBicep is declarative - Resources reconcile to desired state\nRemote builds tag uniquely - Image tags include deployment timestamp\nACR reuses layers - Only changed layers upload\nPreserving Manual Changes\n\nCustom domains added via Portal can be lost on redeploy. Preserve with hooks:\n\nhooks:\n  preprovision:\n    shell: sh\n    run: |\n      # Save custom domains before provision\n      if az containerapp show --name \"$FRONTEND_NAME\" -g \"$RG\" &>/dev/null; then\n        az containerapp show --name \"$FRONTEND_NAME\" -g \"$RG\" \\\n          --query \"properties.configuration.ingress.customDomains\" \\\n          -o json > /tmp/domains.json\n      fi\n\n  postprovision:\n    shell: sh\n    run: |\n      # Verify/restore custom domains\n      if [ -f /tmp/domains.json ]; then\n        echo \"Saved domains: $(cat /tmp/domains.json)\"\n      fi\n\nHandling Existing Resources\n// Reference existing ACR (don't recreate)\nresource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-07-01' existing = {\n  name: containerRegistryName\n}\n\n// Set customDomains to null to preserve Portal-added domains\ncustomDomains: empty(customDomainsParam) ? null : customDomainsParam\n\nContainer App Service Discovery\n\nInternal HTTP routing between Container Apps in same environment:\n\n// Backend reference in frontend env vars\nenv: [\n  {\n    name: 'BACKEND_URL'\n    value: 'http://ca-backend-${resourceToken}'  // Internal DNS\n  }\n]\n\n\nFrontend nginx proxies to internal URL:\n\nlocation /api {\n    proxy_pass $BACKEND_URL;\n}\n\nManaged Identity & RBAC\nEnable System-Assigned Identity\nresource containerApp 'Microsoft.App/containerApps@2024-03-01' = {\n  identity: {\n    type: 'SystemAssigned'\n  }\n}\n\noutput principalId string = containerApp.identity.principalId\n\nPost-Provision RBAC Assignment\nhooks:\n  postprovision:\n    shell: sh\n    run: |\n      PRINCIPAL_ID=\"${BACKEND_PRINCIPAL_ID}\"\n      \n      # Azure OpenAI access\n      az role assignment create \\\n        --assignee-object-id \"$PRINCIPAL_ID\" \\\n        --assignee-principal-type ServicePrincipal \\\n        --role \"Cognitive Services OpenAI User\" \\\n        --scope \"$OPENAI_RESOURCE_ID\" 2>/dev/null || true\n      \n      # Azure AI Search access\n      az role assignment create \\\n        --assignee-object-id \"$PRINCIPAL_ID\" \\\n        --role \"Search Index Data Reader\" \\\n        --scope \"$SEARCH_RESOURCE_ID\" 2>/dev/null || true\n\nCommon Commands\n# Environment management\nazd env list                        # List environments\nazd env select <name>               # Switch environment\nazd env get-values                  # Show all env vars\nazd env set KEY value               # Set variable\n\n# Deployment\nazd up                              # Full provision + deploy\nazd provision                       # Infrastructure only\nazd deploy                          # Code deployment only\nazd deploy --service backend        # Deploy single service\n\n# Debugging\nazd show                            # Show project status\naz containerapp logs show -n <app> -g <rg> --follow  # Stream logs\n\nReference Files\nBicep patterns: See references/bicep-patterns.md for Container Apps modules\nTroubleshooting: See references/troubleshooting.md for common issues\nazure.yaml schema: See references/azure-yaml-schema.md for full options\nCritical Reminders\nAlways use remoteBuild: true - Local builds fail on M1/ARM Macs deploying to AMD64\nBicep outputs auto-populate .azure/<env>/.env - Don't manually edit\nUse azd env set for secrets - Not main.parameters.json defaults\nService tags (azd-service-name) - Required for azd to find Container Apps\n|| true in hooks - Prevent RBAC \"already exists\" errors from failing deploy"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/thegovind/azd-deployment",
    "publisherUrl": "https://clawhub.ai/thegovind/azd-deployment",
    "owner": "thegovind",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/azd-deployment",
    "downloadUrl": "https://openagent3.xyz/downloads/azd-deployment",
    "agentUrl": "https://openagent3.xyz/skills/azd-deployment/agent",
    "manifestUrl": "https://openagent3.xyz/skills/azd-deployment/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/azd-deployment/agent.md"
  }
}