Commit 7832440
authored
feat: add SMB scenarios 10 and 11, load scenarios from JSON config (#532)
## Summary
Adds missing SMB scenarios 10 and 11 to the accelerator folder structure
creation, and refactors scenario management to use the existing
`TerraformScenarios.json` config file as the single source of truth.
Closes Azure/Azure-Landing-Zones#4105
## Changes
### TerraformScenarios.json
- Added `path` property to each scenario entry, mapping scenario numbers
to their tfvars file paths
- Scenarios 10 and 11 were already present (labels only) — now they also
have paths:
- **10**: `smb-single-region/hub-and-spoke-vnet.tfvars`
- **11**: `smb-single-region/virtual-wan.tfvars`
### New-AcceleratorFolderStructure.ps1
- Replaced hardcoded `` hashtable with dynamic loading from
`TerraformScenarios.json`
- Fixed `int64`/`int32` type mismatch when looking up scenario paths
(JSON parser returns `int64`, parameter is `[int]`/`int32` — without the
cast, hashtable lookup returns `` and `Copy-Item` creates a directory
instead of copying the file)1 parent 2190423 commit 7832440
2 files changed
Lines changed: 16 additions & 21 deletions
File tree
- src/ALZ
- Private/Deploy-Accelerator-Helpers
- Public
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
143 | 138 | | |
144 | 139 | | |
145 | 140 | | |
| |||
0 commit comments