Draft
Add production-ready Azure Functions Terraform module#34
Conversation
Co-authored-by: llama90 <6668548+llama90@users.noreply.github.com>
…pported Windows Python runtime Co-authored-by: llama90 <6668548+llama90@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create production-ready Terraform module for Azure Functions
Add production-ready Azure Functions Terraform module
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Checklist
Module Information
Module Path:
terraform/azurePurpose:
Deploy Azure Functions with configurable runtime, scaling, monitoring, and identity management.
Key Resources:
azurerm_storage_account- Required backing storage for function stateazurerm_service_plan- Compute plan (Consumption/Premium/Dedicated)azurerm_linux_function_app/azurerm_windows_function_app- Function runtime (OS-conditional)azurerm_application_insights- Optional monitoring and telemetryImplementation Details
Runtime Support
Security Defaults
Scaling Options
Example Usage
Additional Notes
Based on
terraform/s3reference implementation. Azure provider v4.0+ requires authentication for plan operations—tests validate structure but may show auth errors in CI without credentials.Six test scenarios cover Node.js, .NET with identity, Python with CORS, Java on Windows, PowerShell, and minimal configuration.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint-api.hashicorp.com/usr/local/bin/terraform terraform version(dns block)/usr/local/bin/terraform terraform fmt -recursive terraform/azure/(dns block)/usr/local/bin/terraform terraform init -backend=false(dns block)get.trivy.dev/usr/bin/curl curl -w %{http_code} -sL -o /tmp/tmp.HCgFiYepIt/trivy_0.68.2_Linux-64bit.tar.gz REDACTED(dns block)https://api.github.com/repos/terraform-linters/tflint-ruleset-aws/releases/tags/v0.31.0/usr/local/bin/tflint tflint --init --config=terraform/.tflint.hcl(http block)login.microsoftonline.com.terraform/providers/registry.terraform.io/hashicorp/azurerm/4.57.0/linux_amd64/terraform-provider-azurerm_v4.57.0_x5 .terraform/providers/registry.terraform.io/hashicorp/azurerm/4.57.0/linux_amd64/terraform-provider-azurerm_v4.57.0_x5 -u bin/WALinuxAgent-2.15.0.1-py3.12.egg -collect-logs(dns block).terraform/providers/registry.terraform.io/hashicorp/azurerm/4.57.0/linux_amd64/terraform-provider-azurerm_v4.57.0_x5 .terraform/providers/registry.terraform.io/hashicorp/azurerm/4.57.0/linux_amd64/terraform-provider-azurerm_v4.57.0_x5(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.