Skip to content

Spirent-Terraform-Modules/terraform-azurerm-stc-gui

Repository files navigation

Azure RM Windows Spirent TestCenter Application Terraform

Description

Run a Windows Server instance and install the Windows Spirent TestCenter application. After the instance has been started connect using Remote Desktop to use Spirent TestCenter.

Spirent TestCenter Virtual traffic generator instances can be created via Terraform.

Prerequisites

  • Obtain a copy of the Windows Spirent TestCenter Application from http://support.spirent.com. Be sure to update the stc_installer variable to point to this file.

Connect to Windows Server

After the Windows Server instance is running, you can connect to it over Remote Desktop (RDP).

  1. Find the Windows Server instance you provisioned in the Azure dashboard.
  2. Select the instance and click Connect, RDP.
  3. Select the RDP tab and click Download RDP File.
  4. Locate and launch the RDP file you downloaded in step 3.
  5. Click Connect and provide the user and password you set in variables admin_username and stc_windows_pw.
  6. You may receive a security warning about an insecure certificate due to the instance using a self-signed certificate. Click Yes to continue.
  7. You should now see the Windows desktop with a shortcut to the Spirent TestCenter Application.
  8. Launch the Spirent TestCenter Application.

Requirements

Name Version
terraform >= 0.13.0
azurerm >=2.37.0

Providers

Name Version
azurerm >=2.37.0
null n/a
template n/a

Modules

No Modules.

Resources

Name
azurerm_network_interface
azurerm_network_interface_security_group_association
azurerm_network_security_group
azurerm_public_ip
azurerm_virtual_machine_extension
azurerm_windows_virtual_machine
null_resource
template_file

Inputs

Name Description Type Default Required
admin_username Local administrator user name. string "adminuser" no
dest_dir Destination directory on the instance where files will be copied. string "c:/users/adminuser/downloads" no
enable_provisioner Enable provisioning. bool true no
ingress_cidr_blocks List of management interface ingress IPv4/IPv6 CIDR ranges. list(string) n/a yes
instance_count Number of instances to create. number 1 no
instance_name Name assigned to the Windows STC GUI instance. An instance number will be appended to the name. string "stcgui" no
instance_size The Azure Virtual Machine SKU. string "Standard_DS1_v2" no
marketplace_version Version of the Windows server image. string "latest" no
mgmt_plane_subnet_id Management public Azure subnet ID. string "" no
resource_group_location Resource group location in Azure. string "West US 2" no
resource_group_name Resource group name in Azure. string n/a yes
stc_installer File path to 'Spirent TestCenter Application x64.exe' or 'Spirent TestCenter Application.exe' installer. string n/a yes
stc_windows_pw Specify the windows password with a TF_VAR_stc_windows_pw environment variable string n/a yes

Outputs

Name Description
instance_ids List of instance IDs
instance_private_ips List of private IP addresses assigned to the instances, if applicable
instance_public_ips List of public IP addresses assigned to the instances, if applicable

Releases

No releases published

Packages

No packages published