This git repo is configured to create Azure windows web app and configure vnet integration using terraform.
The following Azure resources are created upon successful execution.
- Resource Group
- Virtual Network
- Private endpoints
- Appservice plan
- Frontend Web App with vnet integration
- Staging Deployment slot with vnet integration
Before using this module, you must have the following:
- Azure subscription
- Terraform must be installed locally and terraform directory must be set in the path variable.
Azure web app is created according to the following variables. Change them to desired value if required
Variable Name | Description | Default Value |
---|---|---|
resource_group_location | enter preferred location | East US |
prefix | azure resource prefix | ak-demo |
sku_name | sku name | P1v2 |
- Clone github repo: https://github.com/Anand0224/win-web-app-vnet-int
- Login to azure using commandline. Download azure CLI: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli
- Run the following terraform commands to create azure resources. Note: Add terraform installed directory in the path variable
- terraform init
- terraform plan -out plan-to-apply
- terraform apply plan-to-apply
Upon successful execution these Azure resources will be created.
- Azure Web app vnet integration
- Azure app service slot vnet integration
- Deployment slots