agentleFS
MicrosoftKnown publishermicrosoft/azure-dev-tools/canvases/azure-functions/skills/azure-functions-deploy/SKILL.md

azure-functions-deploy

Skill11 starsChanged 14 days agoMITView on GitHub

Not for Azure Functions Hosted Skills. Proxy standard Azure Functions deployment requests to the Azure Skills prepare, validate, and deploy workflow while preserving Azure Functions-specific guidance. Do not use when the conversation is creating, running, or deploying a Hosted Skill, or the selected Functions app has agents.config.yaml, depends on azurefunctions-agents-runtime, or imports create_function_app() from that runtime. App-local *.agent.md files count only when they belong to that runtime app; ignore repository-level .github/agents/*.agent.md coding-agent configuration. This also applies to follow-up requests that only say deploy, azd up, or redeploy; use azure-functions-hosted-skills instead. azure-functions-hosted-skills can still load references/deployment-result.md for identity and links.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

27 rules. About 0 are common, 15 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before checking prerequisites or delegating, check the conversation and project context.

    line 16
  2. Distinctive:

    If any prerequisite is missing, suggest running azure-functions-setup first.

    line 35
  3. Distinctive:

    Before handing execution to Azure Skills or an approved fallback, read the verified deployment result contract.

    line 39
  4. Distinctive:

    Do not invoke deployment before that target is verified.

    line 42
  5. Distinctive:

    Use Azure Skills as the deployment engine:

    line 45
  6. Very specific:

    If .azure/deployment-plan.md is missing, invoke azure-prepare first — unless the shortcut path below applies.

    line 47
  7. Very specific:

    If .azure/deployment-plan.md exists but is not Validated, invoke azure-validate before any deployment attempt.

    line 48
  8. Very specific:

    If .azure/deployment-plan.md exists and status is Validated, invoke azure-deploy directly.

    line 49
  9. Very specific:

    Never mark the plan as Validated from this skill.

    line 50
  10. Very specific:

    Do not run azd up, azd deploy, terraform apply, az deployment, or func azure functionapp publish directly from this skill unless Azure …

    line 51
  11. Very specific:

    When a project was scaffolded from an Azure MCP template (e.g., via azure-functions-create Path A), it already contains complete …

    line 55
  12. Very specific:

    If all conditions are met, skip azure-prepare and proceed directly:

    line 62
  13. Distinctive:

    When a validated plan already exists:

    line 76
  14. Distinctive:

    Before handing off, collect and pass the following Azure Functions-specific guidance to Azure Skills:

    line 84
  15. Very specific:

    Use Azure Functions deployment best-practices MCP guidance (get_azure_bestpractices with resource: azurefunctions and action: deployment) …

    line 86
  16. Distinctive:

    Prefer Flex Consumption / FC1 for new serverless Function Apps.

    line 87
  17. Distinctive:

    Use Linux for Python Function Apps.

    line 89
  18. Distinctive:

    Consider private networking and one Function App per independently scaling workload when appropriate.

    line 92
  19. Very specific:

    Use Azure Functions endpoint verification after deploy.

    line 93
  20. Distinctive:

    If a Go deployment succeeds but the app never becomes healthy, check the plan and OS first, then whether the package was built by Core …

    line 123
  21. Distinctive:

    If Azure Skills is unavailable, stop and ask the user to install it for their host:

    line 129
  22. Distinctive:

    Prefer Azure Skills for all deployment execution.

    line 141
  23. Very specific:

    Before using a fallback, explain what will be skipped compared with azure-prepare → azure-validate → azure-deploy, and ask for confirmation.

    line 147
  24. Distinctive:

    Use the frozen destination and verified deployment result contract to return a

    line 151
  25. Distinctive:

    If identity lookup is unavailable, preserve the actual deployment outcome and explain why its resource link is unverified.

    line 154
  26. Distinctive:

    Test HTTP trigger endpoints with GET, not HEAD.

    line 161
  27. Very specific:

    Do not kill and restart the azd up process based solely on lack of terminal output.

    line 184

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Language: Always respond in the same language the user is using.

azure-functions-deploy — Deploy Azure Functions

Deploy your Azure Functions app to Azure by proxying to the Azure Skills deployment workflow.

This skill is the Azure Functions-facing entry point. It should not run deployment commands directly. It prepares Azure Functions-specific context, then delegates execution to azure-prepare, azure-validate, and azure-deploy from the Azure Skills plugin.

Hosted Skills exclusion

Before checking prerequisites or delegating, check the conversation and project context. If the app is an Azure Functions Hosted Skills app, invoke azure-functions-hosted-skills instead and stop this workflow. Treat it as a Hosted Skills app when any of these apply:

  • The conversation is creating, extending, running, testing, or deploying a Hosted Skill.
  • The selected Functions app contains agents.config.yaml (commonly src/agents.config.yaml).
  • Its requirements.txt depends on azurefunctions-agents-runtime, or its function_app.py imports create_function_app() from that runtime.
  • App-local *.agent.md files count only when they belong to that runtime app. Do not treat repository-level .github/agents/*.agent.md coding-agent configuration as a Hosted Skills marker.

Hosted Skills deployment needs its own model, connector, and runtime guidance, even when the user only says to deploy, run azd up, or redeploy after a fix. Do not invoke azure-prepare, azure-validate, or azure-deploy from this skill for a Hosted Skills app, and do not suggest azure-functions-diagnostics for its deployment failures.

This exclusion does not apply to the verified deployment result contract. When azure-functions-hosted-skills tells you to load it, read deployment-result.md for identity and links only. Keep the Hosted Skills deployment steps of that skill.

Prerequisites

  • Azure CLI installed and logged in (az login)
  • Azure Developer CLI installed and logged in (azd auth login) for AZD-based deployments
  • An Azure subscription (az account show)
  • A Functions project with host.json in the current directory
  • Azure Skills plugin installed with azure-prepare, azure-validate, and azure-deploy available

If any prerequisite is missing, suggest running azure-functions-setup first.

Required delegation model

Before handing execution to Azure Skills or an approved fallback, read the verified deployment result contract. Collect and freeze the approved subscription, tenant and cloud during planning. Do not invoke deployment before that target is verified. Pass the frozen target and resource-link requirements to the deployment engine; retain them for its result.

Use Azure Skills as the deployment engine:

  1. If .azure/deployment-plan.md is missing, invoke azure-prepare first — unless the shortcut path below applies.
  2. If .azure/deployment-plan.md exists but is not Validated, invoke azure-validate before any deployment attempt.
  3. If .azure/deployment-plan.md exists and status is Validated, invoke azure-deploy directly.
  4. Never mark the plan as Validated from this skill. Only azure-validate may do that.
  5. Do not run azd up, azd deploy, terraform apply, az deployment, or func azure functionapp publish directly from this skill unless Azure Skills cannot handle the scenario and the user explicitly approves a fallback.

Shortcut path for MCP-template projects

When a project was scaffolded from an Azure MCP template (e.g., via azure-functions-create Path A), it already contains complete infrastructure. Detect this by checking all of these conditions:

  1. azure.yaml exists in the project root
  2. infra/main.bicep or infra/*.tf exists
  3. host.json exists
  4. azure.yaml contains a metadata.template field (indicates MCP template origin)

If all conditions are met, skip azure-prepare and proceed directly:

  1. Generate a lightweight .azure/plan.md noting the pre-existing infrastructure
  2. Invoke azure-validate (provisions preview, environment setup)
  3. Invoke azure-deploy (runs azd up)

This avoids the redundant 5–10 minute analysis and planning phase for projects that already have production-ready infrastructure.

The normal workflow is:

azure-functions-deploy → azure-prepare → azure-validate → azure-deploy

When a validated plan already exists:

azure-functions-deploy → azure-deploy

Azure Functions context to inject

Before handing off, collect and pass the following Azure Functions-specific guidance to Azure Skills:

  • Use Azure Functions deployment best-practices MCP guidance (get_azure_bestpractices with resource: azurefunctions and action: deployment) when available.
  • Prefer Flex Consumption / FC1 for new serverless Function Apps.
  • Include functionAppConfig with deployment storage for FC1 Function Apps.
  • Use Linux for Python Function Apps.
  • Configure Function authentication or stronger mechanisms; avoid anonymous access unless intentional.
  • Enable Application Insights for monitoring, exception tracking, and dependency monitoring.
  • Consider private networking and one Function App per independently scaling workload when appropriate.
  • Use Azure Functions endpoint verification after deploy; do not use curl -I for HTTP trigger verification because HEAD can return false negatives.

Go-specific deployment context

The Go worker is generally available (GA) on Linux Flex Consumption. It is not GA on other hosting plans. Core Tools 4.12 or later owns the Go build and packaging. Lead with the supported commands rather than a hand-rolled package.

Two hosting constraints are hard limits, so check them before planning anything else.

  • Go function apps are supported only on the Flex Consumption plan.
  • Go function apps run on Linux only in Azure. Do not select or attempt a Windows-hosted plan.

Supported deployment paths:

CommandWhat it does
func azure functionapp publish <APP_NAME>Builds, packages, and deploys to an existing function app. Simplest path.
func packBuilds for Linux x64 and produces a deployable zip with the binary at the package root as app. Deploy it with az functionapp deployment source config-zip.

A package produced by func pack is ready to run, so do not request a remote build when deploying it.

Other Go context to pass to Azure Skills:

ConcernGuidance
Cross-compilationOnly needed with func pack --no-build. In that case build first with CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/app .. Otherwise Core Tools targets the right platform for you.
Executable permissionCore Tools sets this correctly. It only becomes a problem with a hand-rolled archive, because some tools such as Windows Compress-Archive do not preserve Unix permissions, which leaves the platform unable to start the binary. Prefer func pack.
Worker runtime settingFUNCTIONS_WORKER_RUNTIME must be native.
Azure CLI version2.87.0 or later is required to create Azure resources or deploy packages for Go.
Hosting planGo is GA only on Linux Flex Consumption. Do not plan a production deployment on another plan.

If a Go deployment succeeds but the app never becomes healthy, check the plan and OS first, then whether the package was built by Core Tools or assembled by hand.

Reference: https://learn.microsoft.com/azure/azure-functions/functions-reference-go

Azure Skills plugin installation guidance

If Azure Skills is unavailable, stop and ask the user to install it for their host:

HostInstall guidance
GitHub Copilot CLI/plugin marketplace add microsoft/azure-skills, then /plugin install azure@azure-skills
Claude Code/plugin install azure@claude-plugins-official
Codex CLIcodex plugin marketplace add microsoft/azure-skills, then install azure from /plugins
VS CodeInstall the Azure MCP extension and companion Azure Skills integration, then reload VS Code
GitHub Copilot fallbacknpx skills add https://github.com/microsoft/azure-skills/tree/main/.github/plugins/azure-skills/skills -a github-copilot -g -y

Fallback policy

Prefer Azure Skills for all deployment execution. Use a Functions-specific fallback only when:

  • Azure Skills cannot be installed or invoked in the current host,
  • the user explicitly asks for a quick publish to an existing Function App, or
  • a scenario is not covered by Azure Skills and must be handled by Azure Functions Core Tools.

Before using a fallback, explain what will be skipped compared with azure-prepare → azure-validate → azure-deploy, and ask for confirmation.

Post-deploy verification

Use the frozen destination and verified deployment result contract to return a Function App in Azure Portal link separately from the app endpoint URL. An endpoint URL or optional provisioning deployment link is not a substitute. If identity lookup is unavailable, preserve the actual deployment outcome and explain why its resource link is unverified; do not retry deployment to fix a link. Canvas result reporting applies only when the request supplied an active run.

Let azure-deploy own post-deploy verification. Add Azure Functions-specific reminders when relevant:

  • List deployed functions and verify the app is running.
  • Test HTTP trigger endpoints with GET, not HEAD.
  • Suggest azure-functions-health-status for runtime health, metrics, and Application Insights checks.
  • Suggest azure-functions-best-practices for production readiness after successful deployment.

Monitoring azd up progress

The azd up command uses animated progress bars that may not render correctly in agent terminal capture. If the output appears stuck on a spinner (e.g., repeated "Initialize bicep provider"), the deployment is likely still progressing normally in the background.

To monitor deployment progress independently:

# Check resource group creation
az group show --name rg-<env-name> -o json

# Check deployment status
az deployment group list --resource-group rg-<env-name> \
  --query "[].{name:name, state:properties.provisioningState}" -o table

# Check Function App status
az functionapp list --resource-group rg-<env-name> \
  --query "[].{name:name, state:state}" -o table

Do not kill and restart the azd up process based solely on lack of terminal output. Instead, use the commands above to verify whether the deployment is progressing.

After Deployment

✅ Your app is deployed through Azure Skills. Consider running azure-functions-best-practices for a production readiness review.

Next steps

  • On missing Azure Skills, suggest azure-functions-setup to install or configure the Azure Skills plugin.
  • On missing or unvalidated plan, invoke azure-prepare and azure-validate before azure-deploy.
  • On successful deployment, suggest azure-functions-best-practices for production readiness.
  • On deployment failure, suggest azure-functions-diagnostics after azure-deploy error recovery is exhausted.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.