IaC Bazaar
AzureLive-tested

Azure Functions App

Function app (Flex Consumption or Premium) with storage, Application Insights, managed identity and VNet integration.

terraformAzure#azure

Compare Serverless Functions across clouds →

azure-functionsterraform v1.7

Verification

Live-tested

Really deployed, verified, idempotent and destroyed in a cloud sandbox.

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan: findings disclosed (Checkov)
  • Plan tests (mocked: validation rules · outputs)

Provenance

  • SHA-256 checksum
  • Signature (pending)

Functional

  • Live-tested — applied, verified, destroyed

Last verified 2026-06-29 · how we verify

Documentation

azure-functions

Function app (Flex Consumption or Premium) with storage, Application Insights, managed identity and VNet integration. Works with Terraform and OpenTofu (>= 1.6), AzureRM provider >= 4.31, < 5.0.

Secure defaults:

  • HTTPS-only, TLS 1.2 minimum, HTTP/2 on, FTPS disabled (premium path)
  • System-assigned managed identity on the app — no service principals
  • Backing storage: TLS 1.2, HTTPS-only, no public nested items, 7-day blob/container soft-delete
  • Workspace-based Application Insights (classic AI is deprecated)
  • Flex Consumption: private deployment container; optional identity-based access (module grants Storage Blob Data Contributor automatically)

Requirements

  • Terraform or OpenTofu >= 1.6
  • hashicorp/azurerm >= 4.31, < 5.0 (4.31.0 is the first release where the azurerm_function_app_flex_consumption resource supports everything this module configures, including https_only; older 4.x releases fail validate)

Notes for integrators:

  • Flex Consumption is the strategic replacement for the classic Consumption (Y1) plan — this module deliberately offers flex + premium only.
  • The derived storage account name is deterministic from name; storage names are globally unique, so pass storage_account_name if you hit a clash.
  • VNet integration on Flex Consumption requires a subnet delegated to Microsoft.App/environments; for Premium, delegate to Microsoft.Web/serverFarms.

Verification

Static-validated (fmt, validate, tflint). Live apply/destroy testing pending cloud sandbox availability — see catalog status.

License

Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).

Usage code & full reference unlock after purchase

The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence — shown here and bundled in the download.

  • Usage
  • Inputs
  • Outputs