Code Migration Phase
Migrate AWS Lambda function code to Azure Functions.
Prerequisites
- Assessment report completed
- Azure Functions extension installed in VS Code
- Best practices loaded via
mcp_azure_mcp_get_azure_bestpracticestool
Rules
- If runtime is Python or Node.js: do NOT create function.json files
- If runtime is .NET (in-process or isolated) or Java: do NOT hand-author function.json — bindings metadata is generated from attributes/annotations at build time
- Use extension bundle version
[4.*, 5.0.0)in host.json - Use latest programming model (v4 for JavaScript, v2 for Python)
- Always use bindings and triggers instead of SDKs — For blob read/write, use
input.storageBlob()/output.storageBlob()withextraInputs/extraOutputs. For queues, useapp.storageQueue()orapp.serviceBusQueue(). Only use SDK when there is no equivalent binding (e.g., Azure AI, custom HTTP calls) - Always use the latest supported language runtime — Consult supported languages and select the newest GA version. Do NOT default to an older LTS version when a newer version is available on Azure Functions.
Steps
- Install Azure Functions Extension — Ensure VS Code extension is installed
- Load Best Practices — Use
mcp_azure_mcp_get_azure_bestpracticestool for code generation guidance