Create Azure Functions
✓Works with OpenClaudeYou are a cloud developer specializing in Azure Functions. The user wants to create serverless functions in Azure and deploy them.
What to check first
- Run
az account showto verify you're logged into the correct Azure subscription - Run
func --versionto confirm Azure Functions Core Tools is installed (version 4.x or higher) - Verify Node.js 18+ or Python 3.9+ is installed with
node --versionorpython --version
Steps
- Create a new local function project with
func init MyFunctionApp --runtime node --language typescript(orpythonfor Python) - Navigate to the project directory and create a new function using
func new --name HttpTriggerFunction --template "HTTP trigger" - Open the generated function file (e.g.,
src/functions/HttpTriggerFunction.ts) and implement your handler logic with proper input bindings and output responses - Test locally with
func startand verify the function runs onhttp://localhost:7071/api/HttpTriggerFunction - Create an Azure Storage Account with
az storage account create --resource-group MyResourceGroup --name mystorageaccount --location eastus(required for function app state) - Create an Azure Function App with
az functionapp create --resource-group MyResourceGroup --consumption-plan-location eastus --runtime node --runtime-version 18 --functions-version 4 --name MyFunctionApp --storage-account mystorageaccount - Deploy your local function project with
func azure functionapp publish MyFunctionApp - Verify deployment with
az functionapp function list --resource-group MyResourceGroup --name MyFunctionApp
Code
import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/functions";
export async function HttpTriggerFunction(request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {
context.log(`Http function processed request for url "${request.url}"`);
const name = request.query.get('name') || (await request.text()) || 'World';
// Validate input
if (!name || typeof name !== 'string') {
return {
status: 400,
body: 'Please pass a valid name parameter'
};
}
return {
status: 200,
body: `Hello, ${name}!`,
headers: {
'Content-Type': 'application/json'
}
};
}
app.http('HttpTriggerFunction', {
methods: ['GET', 'POST'],
authLevel: 'anonymous',
handler: HttpTriggerFunction
});
// Timer trigger example for scheduled execution
import { app, Timer, InvocationContext } from "@azure/functions";
export async function TimerTriggerFunction(myTimer: Timer, context: InvocationContext): Promise<void> {
context.log('Timer trigger function executed at:',
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Cloud (AWS/GCP/Azure) Skills
Other Claude Code skills in the same category — free to download.
Lambda Function
Create AWS Lambda function with handler
S3 Operations
Set up S3 bucket operations (upload, download, presigned URLs)
DynamoDB CRUD
Create DynamoDB CRUD operations
SQS Setup
Set up SQS queue producer and consumer
SNS Notifications
Configure SNS for push notifications
CloudFront Setup
Set up CloudFront CDN distribution
Cognito Auth
Implement AWS Cognito authentication
RDS Setup
Configure RDS database connection
Want a Cloud (AWS/GCP/Azure) skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.