Terraform module which creates Azure Function App resources.
- HTTPS enforced.
- Public network access denied by default.
- Audit logs sent to given Log Analytics workspace by default.
- Changes to app settings
BUILD
,BUILD_NUMBER
andBUILD_ID
ignored, allowing them to be configured outside of Terraform (commonly in a CI/CD pipeline).
- Azure role
Contributor
at the resource group scope. - Azure role
Role Based Access Administrator
at the Storage account scope.
-
Read this document.
-
Clone this repository.
-
Configure Terraform variables in a file
.devcontainer/devcontainer.env
:TF_VAR_resource_group_name= TF_VAR_location=
-
Open repository in dev container.
-
Change to the test directory:
cd test
-
Login to Azure:
az login
-
Set active subscription:
az account set -s <SUBSCRIPTION_NAME_OR_ID>
-
Run tests:
go test -timeout 60m