File tree Expand file tree Collapse file tree
src/ALZ/Private/Deploy-Accelerator-Helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,17 +161,8 @@ function Request-AcceleratorConfigurationInput {
161161
162162 # Prompt for scenario number (Terraform only)
163163 if ($selectedIacType -eq " terraform" ) {
164- $scenarioOptions = @ (
165- @ { label = " 1 - Full Multi-Region - Hub and Spoke VNet" ; value = 1 },
166- @ { label = " 2 - Full Multi-Region - Virtual WAN" ; value = 2 },
167- @ { label = " 3 - Full Multi-Region NVA - Hub and Spoke VNet" ; value = 3 },
168- @ { label = " 4 - Full Multi-Region NVA - Virtual WAN" ; value = 4 },
169- @ { label = " 5 - Management Only" ; value = 5 },
170- @ { label = " 6 - Full Single-Region - Hub and Spoke VNet" ; value = 6 },
171- @ { label = " 7 - Full Single-Region - Virtual WAN" ; value = 7 },
172- @ { label = " 8 - Full Single-Region NVA - Hub and Spoke VNet" ; value = 8 },
173- @ { label = " 9 - Full Single-Region NVA - Virtual WAN" ; value = 9 }
174- )
164+ $scenariosJsonPath = Join-Path $PSScriptRoot " TerraformScenarios.json"
165+ $scenarioOptions = Get-Content - Path $scenariosJsonPath - Raw | ConvertFrom-Json
175166
176167 $selectedScenarioNumber = Read-MenuSelection `
177168 - Title " Select the Terraform scenario (see https://aka.ms/alz/acc/scenarios):" `
Original file line number Diff line number Diff line change 1+ [
2+ { "label" : " 1 - Full Multi-Region - Hub and Spoke VNet" , "value" : 1 },
3+ { "label" : " 2 - Full Multi-Region - Virtual WAN" , "value" : 2 },
4+ { "label" : " 3 - Full Multi-Region NVA - Hub and Spoke VNet" , "value" : 3 },
5+ { "label" : " 4 - Full Multi-Region NVA - Virtual WAN" , "value" : 4 },
6+ { "label" : " 5 - Management Only" , "value" : 5 },
7+ { "label" : " 6 - Full Single-Region - Hub and Spoke VNet" , "value" : 6 },
8+ { "label" : " 7 - Full Single-Region - Virtual WAN" , "value" : 7 },
9+ { "label" : " 8 - Full Single-Region NVA - Hub and Spoke VNet" , "value" : 8 },
10+ { "label" : " 9 - Full Single-Region NVA - Virtual WAN" , "value" : 9 },
11+ { "label" : " 10 - SMB Single-Region - Hub and Spoke VNet" , "value" : 10 },
12+ { "label" : " 11 - SMB Single-Region - Virtual WAN" , "value" : 11 }
13+ ]
You can’t perform that action at this time.
0 commit comments