Commit aaa460c
authored
Fix logic for Bicep legacy upgrades/creation and wiki (#133)
# Pull Request
This pull request includes several updates to the documentation and
PowerShell scripts to improve clarity and functionality. The most
important changes are grouped into documentation updates and PowerShell
script improvements.
### Documentation Updates:
* Updated `New-Item` commands to specify `ItemType` for both files and
directories in
`docs/wiki/[User-Guide]-Quick-Start-Phase-2-Azure-DevOps.md`
([docs/wiki/[User-Guide]-Quick-Start-Phase-2-Azure-DevOps.mdL16-R23](diffhunk://#diff-5d0a7946d9bb62a79f8c8591729ef54a59f8a93aecb6c330d8d6c1d81c5ad906L16-R23),
[docs/wiki/[User-Guide]-Quick-Start-Phase-2-Azure-DevOps.mdL92-R99](diffhunk://#diff-5d0a7946d9bb62a79f8c8591729ef54a59f8a93aecb6c330d8d6c1d81c5ad906L92-R99)).
* Updated `New-Item` commands to specify `ItemType` for both files and
directories in `docs/wiki/[User-Guide]-Quick-Start-Phase-2-GitHub.md`
([docs/wiki/[User-Guide]-Quick-Start-Phase-2-GitHub.mdL16-R21](diffhunk://#diff-e060bdd53a4020560742d085e24e0eecd91edd047d922f826b224a20df914e27L16-R21),
[docs/wiki/[User-Guide]-Quick-Start-Phase-2-GitHub.mdL84-R89](diffhunk://#diff-e060bdd53a4020560742d085e24e0eecd91edd047d922f826b224a20df914e27L84-R89)).
* Updated `New-Item` commands to specify `ItemType` for both files and
directories in `docs/wiki/[User-Guide]-Quick-Start-Phase-2-Local.md`
([docs/wiki/[User-Guide]-Quick-Start-Phase-2-Local.mdL16-R21](diffhunk://#diff-f86bb4f6ce154adfd0bf07c039be16f163e0e081779c957de4826e664e2792d0L16-R21),
[docs/wiki/[User-Guide]-Quick-Start-Phase-2-Local.mdL77-R84](diffhunk://#diff-f86bb4f6ce154adfd0bf07c039be16f163e0e081779c957de4826e664e2792d0L77-R84)).
### PowerShell Script Improvements:
* Added a `replaceFiles` switch parameter to the
`New-ALZEnvironmentBicep` function and included logic to conditionally
overwrite the configuration directory based on this parameter in
`src/ALZ/Private/Legacy-Bicep/New-ALZEnvironmentBicep.ps1`
[[1]](diffhunk://#diff-8f6a995ce9e20e98ce73d801cac6f693c81cb6c1c7a8cff780657dca6168f2ffL24-R27)
[[2]](diffhunk://#diff-8f6a995ce9e20e98ce73d801cac6f693c81cb6c1c7a8cff780657dca6168f2ffR39-R54).
* Corrected a typo in the `Get-GithubRelease` function to change
"over-writing" to "overwriting" in
`src/ALZ/Private/Shared/Get-GithubRelease.ps1`.
* Removed unnecessary whitespace and adjusted variable initialization in
the `New-ALZEnvironment` function in
`src/ALZ/Public/New-ALZEnvironment.ps1`
[[1]](diffhunk://#diff-cdabc275fb414799b1878e803c6198c09565ef53d02c3f977b4a859605fde71dL60)
[[2]](diffhunk://#diff-cdabc275fb414799b1878e803c6198c09565ef53d02c3f977b4a859605fde71dR191)
[[3]](diffhunk://#diff-cdabc275fb414799b1878e803c6198c09565ef53d02c3f977b4a859605fde71dL231-R234).
## Issue
Fixes #129
Fixes https://github.com/Azure/ALZ-Bicep/issues/813
Fixes
[AB](https://dev.azure.com/CSUSolEng/Azure%20Landing%20Zones/_sprints/backlog/Azure%20Landing%20Zones%20Bicep%20Team/Azure%20Landing%20Zones/Dilithium/202408?workitem=36409)
Description of changes:
## License
By submitting this pull request, I confirm that my contribution is made
under the terms of the projects associated license.1 parent 6c37952 commit aaa460c
File tree
7 files changed
+68
-61
lines changed- docs/wiki
- examples/powershell-inputs
- src/ALZ
- Private
- Legacy-Bicep
- Public
7 files changed
+68
-61
lines changedLines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 23 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | | - | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
54 | | - | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
| 140 | + | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
| 154 | + | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | | - | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | | - | |
| 189 | + | |
191 | 190 | | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | 231 | | |
233 | 232 | | |
234 | | - | |
235 | | - | |
| 233 | + | |
| 234 | + | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
| |||
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
250 | | - | |
| 249 | + | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
| 275 | + | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
0 commit comments