Skip to content

Commit 95a7b9e

Browse files
feat: various improvements (#101)
* feat: various improvements * ensure mg name uniqueness
1 parent 9ab6914 commit 95a7b9e

File tree

1 file changed

+39
-15
lines changed

1 file changed

+39
-15
lines changed

.config/ALZ-Powershell.config.json

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"source": "powershell",
7272
"sourceInput": "starter_locations[1]",
7373
"description": "The secondary Azure location for deployments",
74+
"default": "",
7475
"targets": [
7576
{
7677
"Name": "LOCATION_SECONDARY",
@@ -82,7 +83,7 @@
8283
"source": "input",
8384
"description": "The management group ID prefix",
8485
"sourceInput": "root_parent_management_group_id",
85-
"default": "alz",
86+
"default": "",
8687
"targets": [
8788
{
8889
"Name": "MANAGEMENT_GROUP_ID",
@@ -112,13 +113,24 @@
112113
}
113114
]
114115
},
115-
"time_stamp": {
116-
"source": "powershell",
117-
"description": "The time stamp to append to deployment stack names",
116+
"management_group_id_prefix": {
117+
"source": "input",
118+
"description": "The management group ID prefix",
119+
"default": "",
120+
"targets": [
121+
{
122+
"Name": "MANAGEMENT_GROUP_ID_PREFIX",
123+
"Destination": "Environment"
124+
}
125+
]
126+
},
127+
"management_group_id_postfix": {
128+
"source": "input",
129+
"description": "The management group ID postfix",
118130
"default": "",
119131
"targets": [
120132
{
121-
"Name": "TIME_STAMP",
133+
"Name": "MANAGEMENT_GROUP_ID_POSTFIX",
122134
"Destination": "Environment"
123135
}
124136
]
@@ -469,6 +481,7 @@
469481
"source": "powershell",
470482
"sourceInput": "starter_locations[1]",
471483
"description": "The secondary Azure location for deployments",
484+
"default": "",
472485
"targets": [
473486
{
474487
"Name": "LOCATION_SECONDARY",
@@ -480,7 +493,7 @@
480493
"source": "input",
481494
"description": "The management group ID prefix",
482495
"sourceInput": "root_parent_management_group_id",
483-
"default": "alz",
496+
"default": "",
484497
"targets": [
485498
{
486499
"Name": "MANAGEMENT_GROUP_ID",
@@ -510,13 +523,24 @@
510523
}
511524
]
512525
},
513-
"time_stamp": {
514-
"source": "powershell",
515-
"description": "The time stamp to append to deployment stack names",
526+
"management_group_id_prefix": {
527+
"source": "input",
528+
"description": "The management group ID prefix",
529+
"default": "",
530+
"targets": [
531+
{
532+
"Name": "MANAGEMENT_GROUP_ID_PREFIX",
533+
"Destination": "Environment"
534+
}
535+
]
536+
},
537+
"management_group_id_postfix": {
538+
"source": "input",
539+
"description": "The management group ID postfix",
516540
"default": "",
517541
"targets": [
518542
{
519-
"Name": "TIME_STAMP",
543+
"Name": "MANAGEMENT_GROUP_ID_POSTFIX",
520544
"Destination": "Environment"
521545
}
522546
]
@@ -541,7 +565,7 @@
541565
"deployment_files": [
542566
{
543567
"order": 1,
544-
"name": "management-group",
568+
"name": "management-group-{{unique_postfix}}",
545569
"displayName": "Management Group Test {{unique_postfix}}",
546570
"templateFilePath": "tests/templates/management-group/main.bicep",
547571
"templateParametersFilePath": "tests/templates/management-group/main.bicepparam",
@@ -553,7 +577,7 @@
553577
},
554578
{
555579
"order": 2,
556-
"name": "resource-group-management",
580+
"name": "resource-group-management-{{unique_postfix}}",
557581
"displayName": "Resource Group Test Management {{unique_postfix}}",
558582
"templateFilePath": "tests/templates/resource-group/main.bicep",
559583
"templateParametersFilePath": "tests/templates/resource-group/main.bicepparam",
@@ -564,7 +588,7 @@
564588
},
565589
{
566590
"order": 3,
567-
"name": "resource-group-connectivity",
591+
"name": "resource-group-connectivity-{{unique_postfix}}",
568592
"displayName": "Resource Group Test Connectivity {{unique_postfix}}",
569593
"templateFilePath": "tests/templates/resource-group/main.bicep",
570594
"templateParametersFilePath": "tests/templates/resource-group/main.bicepparam",
@@ -575,7 +599,7 @@
575599
},
576600
{
577601
"order": 4,
578-
"name": "resource-group-identity",
602+
"name": "resource-group-identity-{{unique_postfix}}",
579603
"displayName": "Resource Group Test Identity {{unique_postfix}}",
580604
"templateFilePath": "tests/templates/resource-group/main.bicep",
581605
"templateParametersFilePath": "tests/templates/resource-group/main.bicepparam",
@@ -586,7 +610,7 @@
586610
},
587611
{
588612
"order": 5,
589-
"name": "resource-group-security",
613+
"name": "resource-group-security-{{unique_postfix}}",
590614
"displayName": "Resource Group Test Security {{unique_postfix}}",
591615
"templateFilePath": "tests/templates/resource-group/main.bicep",
592616
"templateParametersFilePath": "tests/templates/resource-group/main.bicepparam",

0 commit comments

Comments
 (0)