Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates endpoints with curl.
Agentic Workflow: Read -> Reason -> Act (azure-functions)
You are Azure Functions (api/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — api context for azure-functions
- Domain: Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates end
- local-dev: Create and run functions locally with Core Tools. —
func new --template "HttpTrigger" --name MyFunction
- publish: Deploy functions to Azure. —
func azure functionapp publish MyFunctionApp
- test-function: Invoke functions locally and in Azure. —
curl -X POST http://localhost:7071/api/MyFunction -d '{"name":"test"}'
- Check
knowledge and prerequisites: func
2. Reason — think for azure-functions
- For
local-dev: Create and run functions locally with Core Tools. — decide which checks to run
- For
publish: Deploy functions to Azure. — decide which checks to run
- For
test-function: Invoke functions locally and in Azure. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with azure-functions tools
- Tools:
Glob, Grep, Read, Func, Az (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
azure-functions:08cf1af4
Azure Functions
What this skill does
Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates endpoints with curl.
When to use
- Building a serverless HTTP API or timer job
- Testing a function locally before deploy
- Deploying from CI with func azure functionapp publish
Real commands
# Init and scaffold
func init --worker-runtime node
func new --template "HttpTrigger" --name MyFunction
# Run locally
func start --port 7071
# Test locally
curl -s "http://localhost:7071/api/MyFunction?name=world"
# Publish
func azure functionapp publish MyFunctionApp
# List deployed functions
func azure functionapp list-functions MyFunctionApp
# Test in Azure
curl -s "https://api.your-app.test/api/MyFunction?name=azure"
Testing
- Test locally with func start, then against the live URL
- Use --functions to run a single function during debugging
Best practices
- Use --publish-local-settings -i for consistent settings
- Keep functions stateless; use bindings for I/O
- Pin Core Tools version in CI for reproducible builds
Capabilities
local-dev
Create and run functions locally with Core Tools.
Parameters:
template (string): Trigger template (HttpTrigger, TimerTrigger, etc.)
runtime (string): node, python, dotnet, java, powershell
port (number): Local runtime port
Commands:
func new --template "HttpTrigger" --name MyFunction
func new --template "TimerTrigger" --name DailyJob --runtime node
func start
func init --worker-runtime node
func --version
Examples:
- func init --worker-runtime python && func new --template "HttpTrigger" --name HttpExample
- func start --port 7071
- func new --template "ServiceBusQueueTrigger" --name OrderHandler --runtime dotnet
publish
Deploy functions to Azure.
Parameters:
app_name (string): Function app name in Azure
publish_settings (boolean): Publish local app settings
Commands:
func azure functionapp publish MyFunctionApp
func azure functionapp list-functions MyFunctionApp
func azure functionapp fetch-app-settings MyFunctionApp
az functionapp list --resource-group rg
az functionapp show --name MyFunctionApp -g rg
Examples:
- func azure functionapp publish MyFunctionApp --publish-local-settings -i
- func azure functionapp list-functions MyFunctionApp --show-keys
- func azure functionapp publish MyFunctionApp --no-build
test-function
Invoke functions locally and in Azure.
Parameters:
url (string): Function URL
query (string): Query parameters
Commands:
curl -X POST http://localhost:7071/api/MyFunction -d '{"name":"test"}'
curl -s http://localhost:7071/api/MyFunction?name=world
curl -s https://api.your-app.test/api/MyFunction?name=azure
func start --functions MyFunction
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:7071/api/MyFunction
Examples:
References
1---2name: "azure-functions"3description: "Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates endpoints with curl. Use when working with local dev, publish, test function, api or when the user mentions local dev, publish, test function, api."4license: "MIT"5compatibility: "Requires func. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/azure-functions8 author: Kdesk9 version: 2.0.010 category: api11allowed-tools: "Glob Grep Read Bash(az:*) Bash(curl:*) Bash(func:*)"12---1314Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates endpoints with curl.1516## Agentic Workflow: Read -> Reason -> Act (azure-functions)1718You are **Azure Functions** (api/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — api context for `azure-functions`21- Domain: Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates end22- **local-dev**: Create and run functions locally with Core Tools. — `func new --template "HttpTrigger" --name MyFunction`23- **publish**: Deploy functions to Azure. — `func azure functionapp publish MyFunctionApp`24- **test-function**: Invoke functions locally and in Azure. — `curl -X POST http://localhost:7071/api/MyFunction -d '{"name":"test"}'`25- Check `knowledge` and `prerequisites: func`2627### 2. Reason — think for `azure-functions`28- For `local-dev`: Create and run functions locally with Core Tools. — decide which checks to run29- For `publish`: Deploy functions to Azure. — decide which checks to run30- For `test-function`: Invoke functions locally and in Azure. — decide which checks to run31- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3233### 3. Act — execute with `azure-functions` tools34- Tools: `Glob`, `Grep`, `Read`, `Func`, `Az` (see frontmatter `tools`/`allowed-tools`)35- Use `safe_path` for any write; record evidence (paths, checksums)36- Fingerprint: `azure-functions:08cf1af4`3738# Azure Functions3940## What this skill does4142Builds, tests, and ships serverless functions on Azure using Core Tools: initializes projects, scaffolds HTTP and timer triggers, runs the local emulator, publishes to function apps, and validates endpoints with curl.4344## When to use4546- Building a serverless HTTP API or timer job47- Testing a function locally before deploy48- Deploying from CI with func azure functionapp publish4950## Real commands5152```bash53# Init and scaffold54func init --worker-runtime node55func new --template "HttpTrigger" --name MyFunction5657# Run locally58func start --port 70715960# Test locally61curl -s "http://localhost:7071/api/MyFunction?name=world"6263# Publish64func azure functionapp publish MyFunctionApp6566# List deployed functions67func azure functionapp list-functions MyFunctionApp6869# Test in Azure70curl -s "https://api.your-app.test/api/MyFunction?name=azure"71```7273## Testing7475- Test locally with func start, then against the live URL76- Use --functions to run a single function during debugging7778## Best practices7980- Use --publish-local-settings -i for consistent settings81- Keep functions stateless; use bindings for I/O82- Pin Core Tools version in CI for reproducible builds8384## Capabilities8586### local-dev87Create and run functions locally with Core Tools.8889**Parameters:**90- `template` (string): Trigger template (HttpTrigger, TimerTrigger, etc.)91- `runtime` (string): node, python, dotnet, java, powershell92- `port` (number): Local runtime port9394**Commands:**95- `func new --template "HttpTrigger" --name MyFunction`96- `func new --template "TimerTrigger" --name DailyJob --runtime node`97- `func start`98- `func init --worker-runtime node`99- `func --version`100101**Examples:**102- func init --worker-runtime python && func new --template "HttpTrigger" --name HttpExample103- func start --port 7071104- func new --template "ServiceBusQueueTrigger" --name OrderHandler --runtime dotnet105106### publish107Deploy functions to Azure.108109**Parameters:**110- `app_name` (string): Function app name in Azure111- `publish_settings` (boolean): Publish local app settings112113**Commands:**114- `func azure functionapp publish MyFunctionApp`115- `func azure functionapp list-functions MyFunctionApp`116- `func azure functionapp fetch-app-settings MyFunctionApp`117- `az functionapp list --resource-group rg`118- `az functionapp show --name MyFunctionApp -g rg`119120**Examples:**121- func azure functionapp publish MyFunctionApp --publish-local-settings -i122- func azure functionapp list-functions MyFunctionApp --show-keys123- func azure functionapp publish MyFunctionApp --no-build124125### test-function126Invoke functions locally and in Azure.127128**Parameters:**129- `url` (string): Function URL130- `query` (string): Query parameters131132**Commands:**133- `curl -X POST http://localhost:7071/api/MyFunction -d '{"name":"test"}'`134- `curl -s http://localhost:7071/api/MyFunction?name=world`135- `curl -s https://api.your-app.test/api/MyFunction?name=azure`136- `func start --functions MyFunction`137- `curl -s -o /dev/null -w "%{http_code}\n" http://localhost:7071/api/MyFunction`138139**Examples:**140- curl -s "http://localhost:7071/api/MyFunction?name=world"141- curl -s "https://api.your-app.test/api/MyFunction?name=azure"142- func start --functions MyFunction --verbose143144## References145- [Azure Functions Docs](https://learn.microsoft.com/en-us/azure/azure-functions/)146- [Azure Functions Core Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local)147- [HTTP Trigger Reference](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger)