-
Create IAM Service Principle w/ necessary permissions and secret key https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret#creating-a-service-principal-using-the-azure-cli
-
Create Azure Key Vault and Secrets. Give read permissions to the service principle created in above step. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret
- vmadminpw = "Pa$$word!"
- vpnsharedkey = "Pa$$word!"
- gatewayaddress = "onpremgatewayaddress" ## ex) "93.2.43.42"
-
Add environment variables to GitLab CI/CD https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret#configuring-the-service-principal-in-terraform
-
Clone repository an edit subnets to fit your environment.
-
Configure on-premise vpn device and verify connectivity.
kennethcarnes / azure-vpn Goto Github PK
View Code? Open in Web Editor NEWThis repository uses GitLab CI/CD and Terraform to deploy Azure resources for connecting an on-premises network through a VPN appliance.