This repo helps developers to provision Azure resources with best practice for scaling out Azure Functions and Event Hub as real time processing application.
For understanding best practice, please read this my blog.
This repo uses Terraform. I expect you to prepare your Terraform Environment from one of following methods.
- Use Dev Container. You can utilize dev container which I made for this repo.
- Install Terraform CLI and Azure CLI
- Have finished Terraform tutorial
- Update
test.tfvars
file. You should specify your uniqueapp_name
. Otherwise, Terraform may fail to provision because there are already same name resource in the world. cd terraform
terraform init
terraform plan -var-file="./env/test/test.tfvars"
terraform apply -var-file="./env/test/test.tfvars" -auto-approve
Then, you can see provisioned resource in your Azure.
- I utilizes best practice for naming and tagging Azure resources. Please see this document for more detail.
- You should consider to use KeyVault for keeping your connection string securely in production. I don't use it in this repo for understanding best practice easily.