Enter a name to use to identify resources in Azure. Terraform prepends the names of the resources it creates with this environment name. This environment variable is also used to name the Azure resource group created for the deployment. Example: mypcf.

YOUR-ENVIRONMENT-SHORTNAME

Enter a name to use when creating storage accounts in Azure. Must be a-z only and no longer than 10 characters. Example: myazure.

YOUR-AZURE-LOCATION

Enter the name of the Azure location in which you want Terraform to create resources. Example: Central US.

YOUR-OPS-MAN-IMAGE-URI

Enter the URL for the Ops Manager Azure image you want to boot. You can find this code in the PDF included with the Ops Manager release on Pivotal Network.

YOUR-DNS-SUFFIX

Enter a domain name to use as part of the system domain for your deployment. Terraform creates DNS records in Azure using YOUR-ENVIRONMENT-NAME and YOUR-DNS-SUFFIX. For example, if you enter example.com for your DNS suffix and have pcf as your environment name, Terraform creates DNS records at pcf.example.com.

YOUR-ADMIN-USERNAME

Enter the admin username you want to use for your Ops Manager deployment.

Step 2: (Optional) Add Variables for Isolation Segment

Complete this section if you plan to deploy the Isolation Segment tile.

Note: You can see the configurable options by opening the variables.tf file and looking for variables with default values.

Add the following variable to your terraform.tfvars file.
This causes Terraform to create an additional HTTP load balancer and DNS record to use for the Isolation Segment tile.

isolation_segment = "true"

Step 3: Create Azure Resources with Terraform

Follow these steps to use the Terraform CLI to create resources on Azure:

From the directory that contains the Terraform files, run terraform init to initialize the directory based on the information you specified in the terraform.tfvars file.

$ terraform init

Run the following command to create the execution plan for Terraform.

$ terraform plan -out=plan

Run the following command to execute the plan from the previous step.
It may take several minutes for Terraform to create all the resources in Azure.

$ terraform apply plan

Step 4: Create DNS Record

In a browser, navigate to the DNS provider for the DNS suffix you entered in your terraform.tfvars file.

Create a new NS (Name server) record for your system domain.
Your system domain is YOUR-ENVIRONMENT-NAME.YOUR-DNS-SUFFIX.

In this record, enter the name servers included in env_dns_zone_name_servers from your Terraform output.