azure-deploy

Execute Azure deployments for prepared applications using azd, Bicep, Terraform, or Azure CLI.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/AlahmadiQ8/sre-agent-demo --skill azure-deploy-alahmadiq8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-deploy
Source: https://github.com/AlahmadiQ8/sre-agent-demo/tree/main/.claude/skills/azure-deploy
Command: npx skills add https://github.com/AlahmadiQ8/sre-agent-demo --skill azure-deploy-alahmadiq8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Deploying an application to Azure involves many failure-prone steps: confirming the right subscription and region, avoiding resource group and tag conflicts, running provisioning commands correctly, and recovering from common errors. This Skill executes deployments for applications that have already been prepared and validated, with built-in error recovery and verification. ## Core Features & Use Cases - Guided Deployment Execution: Runs azd up, azd deploy, terraform apply, and az deployment commands through a structured pipeline with a mandatory pre-deploy checklist covering subscription, location, and resource group conflict checks. - Recipe-Based Workflows: Supports AZD, Azure CLI, Bicep, Terraform, and CI/CD (GitHub Actions, Azure DevOps) deployment recipes, each with dedicated verification and error-handling guides. - Post-Deployment Configuration: Automates SQL managed identity grants and Entity Framework Core migrations for ASP.NET Core apps using Azure SQL with Entra authentication. - Use Case: After preparing and validating a .NET Container Apps project, ask the agent to deploy it — the Skill confirms your subscription and region, runs azd up, grants the managed identity SQL access, applies EF migrations, and reports the live endpoint URLs. ## Quick Start Deploy my prepared and validated application to Azure and show me the live endpoint URLs when it finishes.

Frequently Asked Questions about azure-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an application to Azure with azd?

Run azd up --no-prompt after creating an environment with azd env new and setting AZURE_SUBSCRIPTION_ID and AZURE_LOCATION via azd env set. This Skill enforces that sequence and verifies the plan status is Validated before executing.

What is the difference between azd up, azd provision, and azd deploy?

azd up provisions infrastructure and deploys the application in one step. azd provision creates only the Azure resources, while azd deploy pushes application code to already-provisioned infrastructure.

Can I use Terraform or Bicep instead of azd for Azure deployment?

Yes. The Skill includes dedicated recipes for Terraform (terraform apply with plan files), Bicep (az deployment sub create), Azure CLI, and CI/CD pipelines using GitHub Actions or Azure DevOps, each with verification and error-handling steps.

Why does azd deploy fail with missing AZURE_CONTAINER_REGISTRY_ENDPOINT errors?

This occurs with .NET Aspire projects using azd limited mode, where azd provision does not populate container registry and managed identity environment variables. Set AZURE_CONTAINER_REGISTRY_ENDPOINT, AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID, and MANAGED_IDENTITY_CLIENT_ID manually, then retry azd deploy.

When should I not use this deployment skill?

Do not use it to create a new application or generate infrastructure code — that belongs to the azure-prepare skill. This Skill only executes deployments for projects that already have azure.yaml, infrastructure files, and a Validated plan status.

How do I grant a managed identity access to Azure SQL after deployment?

Use az sql db query with ActiveDirectoryDefault auth to run CREATE USER [app-name] FROM EXTERNAL PROVIDER and add the identity to db_datareader, db_datawriter, and db_ddladmin roles. The Skill provides idempotent scripts and azd postprovision hooks to automate this.