A Terraform script to deploy a FortiGate-VM BYOL FortiFlex on Azure
- Terraform >= 0.12.0
- Terraform Provider AzureRM >= 2.38.0
- Terraform Provider FortiFlex >= 1.0.0
Terraform deploys the following components:
- Azure Virtual Network with 2 subnets
- One FortiGate-VM instances with 2 NICs
- Two firewall rules: one for external, one for internal.
To deploy the FortiGate-VM to Azure:
-
Clone the repository.
-
Customize variables in the
terraform.tfvars.example
andvariables.tf
file as needed. And renameterraform.tfvars.example
toterraform.tfvars
. -
Initialize the providers and modules:
terraform init
-
Submit the Terraform plan:
terraform plan
-
Verify output.
-
Confirm and apply the plan:
terraform apply
-
If output is satisfactory, type
yes
.
Output will include the information necessary to log in to the FortiGate-VM instances:
##############################################################################################################
#
# FortiGate a standalone FortiGate VM
# Terraform deployment template for Microsoft Azure
#
# The FortiGate VMs are reachable via the public IP address of the load balancer.
#
# BEWARE: The state files contain sensitive data like passwords and others. After the demo clean up your
# clouddrive directory.
#
# Deployment location: <FGT region>
# Username: <FGT username>
#
# Management FortiGate: https://<FGT Public IP>/
#
##############################################################################################################
fgt_ipaddress = <FGT Public IP>
fgt_private_ip_address_ext = <FGT Private IP port 1>
fgt_private_ip_address_int = <FGT Private IP port 2>
##############################################################################################################
To destroy the instance, use the command:
terraform destroy
Fortinet-provided scripts in this and other GitHub projects do not fall under the regular Fortinet technical support scope and are not supported by FortiCare Support Services. For direct issues, please refer to the Issues tab of this GitHub project.
License © Fortinet Technologies. All rights reserved.