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 to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan clean (Checkov)
  • Plan test superseded by live test

Provenance

Functional

  • Live-tested - applied, verified, destroyed

Last verified 2026-06-29 · how we verify

Verify this download

cosign · sha-256

Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.

# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub

# 2. This module's Sigstore bundle
curl -o azure-functions-1.0.0.sigstore.json \
  https://www.iac-bazaar.com/api/artifacts/azure-functions/signature

# 3. Verify the tarball you downloaded
cosign verify-blob \
  --key cosign.pub \
  --bundle azure-functions-1.0.0.sigstore.json \
  azure-functions-1.0.0.tar.gz
# → Verified OK

# 4. (optional) confirm the checksum too
echo "2fcfbe1e762aaeea3495ce7e441cf11237cd06ac28a11129a855473c47f62c4b  azure-functions-1.0.0.tar.gz" | sha256sum -c

Use it from the registry

terraform · opentofu
module "functions" {
  source  = "www.iac-bazaar.com/iac-bazaar/azure-functions/azure"
  version = "1.0.0"
}

Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.

Inputs & outputs

Create a free account to read this module's contract

The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.

A free account sees the contract of every Free module. This one is Premium, so its contract unlocks when you buy it.

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, queue-service Storage Analytics logging (read/write/delete, 7-day retention) and a 7-day SAS expiration policy (action Log — long-lived SAS tokens are surfaced, nothing breaks)
  • 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.

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

Related modules