azure-functions-deploy
Skill22 starsChanged 11 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.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- microsoft/azure-dev-toolsedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- microsoft/azure-dev-tools★ 1170% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- evals/azure-functions-update/fixtures/AGENTS.mdAGENTS.md
- starter/hosted-skills/agent-files/AGENTS.mdAGENTS.md
- templates/agents/AGENTS.mdAGENTS.md
- templates/starter/agent-files/hosted-skills/AGENTS.mdAGENTS.md
- tests/fixtures/starter/agent-files/AGENTS.mdAGENTS.md
- tests/fixtures/starter/agent-files-unknown/AGENTS.mdAGENTS.md
- starter/hosted-skills/agent-files/CLAUDE.mdCLAUDE.md
- templates/starter/agent-files/hosted-skills/CLAUDE.mdCLAUDE.md
- tests/fixtures/starter/agent-files/CLAUDE.mdCLAUDE.md
- tests/fixtures/starter/agent-files-unknown/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- starter/hosted-skills/agent-files/copilot-instructions.mdCopilot instructions
- templates/starter/agent-files/hosted-skills/copilot-instructions.mdCopilot instructions
- tests/fixtures/starter/agent-files/copilot-instructions.mdCopilot instructions
- tests/fixtures/starter/agent-files-unknown/copilot-instructions.mdCopilot instructions
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-hosted-skills-migrateSkill
- azure-functions-hosted-skillsSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- frdSkill
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-createSkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-hosted-skills-migrateSkill
- azure-functions-hosted-skillsSkill
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 14 are distinctive, and 17 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Before checking prerequisites or delegating, check the conversation and project context.
- Distinctive: line 34
If any prerequisite is missing, suggest running azure-functions-setup first.
- Distinctive: line 38
Use Azure Skills as the deployment engine:
- Very specific: line 40
If .azure/deployment-plan.md is missing, invoke azure-prepare first.
- Very specific: line 41
If .azure/deployment-plan.md exists but is not Validated, invoke azure-validate before any deployment attempt.
- Very specific: line 42
If .azure/deployment-plan.md exists and status is Validated, invoke azure-deploy directly.
- Very specific: line 43
Never mark the plan as Validated from this skill.
- Very specific: line 44
Do not run azd up, azd deploy, terraform apply, az deployment, or func azure functionapp publish directly from this skill unless Azure …
- Distinctive: line 59
When a validated plan already exists:
- Distinctive: line 67
Before handing off, collect and pass the following Azure Functions-specific guidance to Azure Skills:
- Very specific: line 69
Use Azure Functions deployment best-practices MCP guidance (get_azure_bestpractices with resource: azurefunctions and action: deployment) …
- Distinctive: line 70
Prefer Flex Consumption / FC1 for new serverless Function Apps.
- Distinctive: line 72
Use Linux for Python Function Apps.
- Distinctive: line 75
Consider private networking and one Function App per independently scaling workload when appropriate.
- Very specific: line 76
Use Azure Functions endpoint verification after deploy.
- Distinctive: line 94
Check target compatibility before planning deployment.
- Distinctive: line 97
Do not force an existing Premium/Dedicated app to Flex without an approved hosting-plan change.
- Distinctive: line 120
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 …
- Distinctive: line 126
If Azure Skills is unavailable, stop and ask the user to install it for their host:
- Distinctive: line 138
Prefer Azure Skills for all deployment execution.
- Very specific: line 144
Before using a fallback, explain what will be skipped compared with azure-prepare → azure-validate → azure-deploy, and ask for confirmation.
- Distinctive: line 151
Test HTTP trigger endpoints with GET, not HEAD.
- Very specific: line 174
Do not kill and restart the azd up process based solely on lack of terminal output.
- Very specific: line 182
After azure-deploy reports success for a complete azd up or a standalone azd provision, run the local deployment-observation collector …
- Very specific: line 187
Do not collect after a failed, cancelled, preview, or validation-only command.
- Very specific: line 188
Do not collect after azd deploy, Terraform, direct Azure CLI, or Core Tools publish.
- Very specific: line 191
Use deploy for azd up, or provision for standalone azd provision.
- Very specific: line 192
Use the current host name for <agent> (copilot-cli, claude-code, codex, or Visual Studio Code).
- Very specific: line 195
If you recorded a UTC start time before deployment, include it as startedAt.
- Very specific: line 202
Use only the payload that belongs to this installed skill.
- Distinctive: line 215
If Node or the local payload is absent, skip collection.
≈ “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.
Files
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(commonlysrc/agents.config.yaml). - Its
requirements.txtdepends onazurefunctions-agents-runtime, or itsfunction_app.pyimportscreate_function_app()from that runtime. - App-local
*.agent.mdfiles count only when they belong to that runtime app. Do not treat repository-level.github/agents/*.agent.mdcoding-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.
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.jsonin the current directory - Azure Skills plugin installed with
azure-prepare,azure-validate, andazure-deployavailable
If any prerequisite is missing, suggest running azure-functions-setup first.
Required delegation model
Use Azure Skills as the deployment engine:
- If
.azure/deployment-plan.mdis missing, invokeazure-preparefirst. - If
.azure/deployment-plan.mdexists but is notValidated, invokeazure-validatebefore any deployment attempt. - If
.azure/deployment-plan.mdexists and status isValidated, invokeazure-deploydirectly. - Never mark the plan as
Validatedfrom this skill. Onlyazure-validatemay do that. - Do not run
azd up,azd deploy,terraform apply,az deployment, orfunc azure functionapp publishdirectly from this skill unless Azure Skills cannot handle the scenario and the user explicitly approves a fallback.
Invoke azure-prepare even when azure.yaml and infrastructure already exist, including
projects scaffolded from an Azure MCP template. Pass the existing template metadata and
IaC as context to preserve and validate, not as authorization to replace resources.
Generated infrastructure does not prove target compatibility, provisioned resources, or
permission to deploy. Azure Skills requires .azure/deployment-plan.md; do not create a
different plan file or bypass preparation.
The normal workflow is:
azure-functions-deploy → azure-prepare → azure-validate → azure-deployWhen a validated plan already exists:
azure-functions-deploy → azure-deployAzure 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_bestpracticeswithresource: azurefunctionsandaction: deployment) when available. - Prefer Flex Consumption / FC1 for new serverless Function Apps.
- Include
functionAppConfigwith 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 -Ifor HTTP trigger verification because HEAD can return false negatives.
Go-specific deployment context
Apply the Go worker guidance below only after confirming the app uses the Go worker
from source/modules and configuration. A Go custom handler keeps runtime custom,
host.json.customHandler, its existing build/package process, and function.json
metadata until an explicitly approved migration. If the model is unknown or evidence
conflicts, stop before changing runtime or packaging configuration.
Go is GA on Linux Flex Consumption. Linux Elastic Premium and Dedicated support is a preview rollout; confirm availability for the actual plan, SKU, and region and obtain acceptance before production preview deployment. Core Tools owns the Go build and packaging: 4.12 is the Flex minimum; use 4.16.0 or later for Elastic Premium/Dedicated. The 4.16.0 release notes confirm that support; do not treat 4.12 as sufficient for those plans.
Check target compatibility before planning deployment.
- Go function apps using the Go worker run on Linux only in Azure. Windows-hosted Azure apps and Linux Consumption are not supported Go worker hosting targets; Windows local development is supported.
- Do not force an existing Premium/Dedicated app to Flex without an approved hosting-plan change.
- A Go MCP template can include AZD/Bicep for a new Flex target; this does not prove resources exist or that the template matches an existing app's plan.
Build/package context for Azure Skills or an explicitly approved fallback:
| Command | What it does |
func azure functionapp publish <APP_NAME> | Builds, packages, and deploys to an existing compatible function app; direct execution requires fallback approval. |
func pack | Builds 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:
| Concern | Guidance |
| Cross-compilation | With func pack --no-build, supply a Linux x64 binary at bin/app (bin\app on Windows, without .exe). Use the Bash or PowerShell instructions in azure-functions-common/references/languages/go.md under Manual cross-compilation. Otherwise func pack targets the right platform without changing the shell environment. |
| Executable permission | Core 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. |
| Go runtime configuration | Verify the target-plan schema. Flex uses functionAppConfig.runtime; where the plan uses FUNCTIONS_WORKER_RUNTIME, its Go value is native. Do not copy local CLI settings into Azure app settings. |
| Azure CLI version | 2.87.0 or later is required to create Azure resources or deploy packages for Go. |
| Premium/Dedicated package settings | For a confirmed preview target, set WEBSITE_RUN_FROM_PACKAGE=1, wait for configuration to apply, and use Always On for Dedicated. Do not add WEBSITE_RUN_FROM_PACKAGE on Flex. |
| Preview status | Confirm availability and acceptance for a Premium/Dedicated preview deployment or a separately selected preview extension; do not label Flex core-worker support as preview. |
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:
| Host | Install 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 CLI | codex plugin marketplace add microsoft/azure-skills, then install azure from /plugins |
| VS Code | Install the Azure MCP extension and companion Azure Skills integration, then reload VS Code |
| GitHub Copilot fallback | npx 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
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-statusfor runtime health, metrics, and Application Insights checks. - Suggest
azure-functions-best-practicesfor 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 tableDo 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-practicesfor a production readiness review.
Report a successful deployment (internal telemetry)
After azure-deploy reports success for a complete azd up or a standalone
azd provision, run the local deployment-observation collector exactly once.
This skill owns the step for its delegated deployment. Do not also run the
hosted-skills collector for the same command.
Do not collect after a failed, cancelled, preview, or validation-only command.
Do not collect after azd deploy, Terraform, direct Azure CLI, or Core Tools
publish. These paths do not produce the supported azd provisioning deployment.
Use deploy for azd up, or provision for standalone azd provision.
Use the current host name for <agent> (copilot-cli, claude-code, codex,
or Visual Studio Code). Set environmentName to the actual azd environment
name. If that name is not available, skip collection. Do not guess it.
If you recorded a UTC start time before deployment, include it as startedAt.
Otherwise, omit startedAt. The name and start time are not telemetry fields.
Find hooks/runtime/telemetry.mjs in the installed plugin root. For workspace
assets, use .github/hooks/runtime/telemetry.mjs, .claude/hooks/runtime/telemetry.mjs,
or .codex/hooks/runtime/telemetry.mjs in the workspace root. For a starter
install, use .azure-functions-skills/runtime/telemetry.mjs in the workspace root.
Use only the payload that belongs to this installed skill. Set <runtime-dir> to its absolute parent directory.
Pass the project workspace root with --dir, even if the current directory is
infra/. The collector checks opt-out settings before ARM queries or sending.
printf '%s' '{"skill":"azure-functions-deploy","operation":"<operation>","agent":"<agent>","environmentName":"<azd-env-name>"}' \
| node "<runtime-dir>/telemetry.mjs" deployment-observed --dir "<workspace-root>" >/dev/null 2>&1 || trueOn PowerShell, pipe the same JSON to
& node "<runtime-dir>\telemetry.mjs" deployment-observed --dir "<workspace-root>"
inside try { ... | Out-Null } catch { }, with 2>&1.
Encode values as JSON. Do not insert unescaped values into shell commands.
If Node or the local payload is absent, skip collection. Do not download,
install, upgrade, or use a package-manager fallback. Suppress output and ignore
failures. Do not retry collection, redeploy, or change the deployment result.
Normal deployment verification and deployed-app monitoring are unchanged.
Next steps
- On missing Azure Skills, suggest
azure-functions-setupto install or configure the Azure Skills plugin. - On missing or unvalidated plan, invoke
azure-prepareandazure-validatebeforeazure-deploy. - On successful deployment, suggest
azure-functions-best-practicesfor production readiness. - On deployment failure, suggest
azure-functions-diagnosticsafterazure-deployerror recovery is exhausted.
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
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.

