Skip to content

Commit

Permalink
bug: Fix deploymentnames in pipeline-scripts to max 64 char (#801)
Browse files Browse the repository at this point in the history
* Update Deploy-ALZConnectivityResourceGroup.ps1

* Update Deploy-ALZCustomPolicyDefinitions.ps1

* Update Deploy-ALZCustomRoleDefinitions.ps1

* Update Deploy-ALZHub-HubAndSpoke.ps1

* Update Deploy-ALZHub-VWAN.ps1

* Update Deploy-ALZLoggingAndSentinel.ps1

* Update Deploy-ALZLoggingAndSentinelResourceGroup.ps1

* Update Deploy-ALZMGDiagnosticSettings.ps1

* Update Deploy-ALZManagementGroups.ps1

* Update Deploy-ALZPolicyAssignments.ps1

* Update Deploy-ALZRoleAssignments.ps1

* Update Deploy-ALZSubscriptionPlacement.ps1

* Correct remaining -join statements in readmes

* fixed extra closing parenthesis

---------

Co-authored-by: Zach Trocinski <ztrocinski@outlook.com>
Co-authored-by: Zach Trocinski <30884663+oZakari@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent 642fd5f commit 038090c
Show file tree
Hide file tree
Showing 33 changed files with 57 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-ConnectivityRGDeploy-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-ConnectivityRGDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
TemplateFile = $TemplateFile
TemplateParameterFile = $TemplateParameterFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-PolicyDefsDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-PolicyDefsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateFile = $TemplateFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-CustomRoleDefsDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-CustomRoleDefsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateFile = $TemplateFile
Expand Down
2 changes: 1 addition & 1 deletion accelerator/pipeline-scripts/Deploy-ALZHub-HubAndSpoke.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-Hub-and-SpokeDeploy-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-Hub-and-SpokeDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = $ConnectivityResourceGroup
TemplateFile = $TemplateFile
TemplateParameterFile = $TemplateParameterFile
Expand Down
2 changes: 1 addition & 1 deletion accelerator/pipeline-scripts/Deploy-ALZHub-VWAN.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-VWANDeploy-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-VWANDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = $ConnectivityResourceGroup
TemplateFile = $TemplateFile
TemplateParameterFile = $TemplateParameterFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-LoggingDeploy-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-LoggingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = $LoggingResourceGroup
TemplateFile = $TemplateFile
TemplateParameterFile = $TemplateParameterFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-LoggingAndSentinelRGDeploy-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-LoggingAndSentinelRGDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
TemplateFile = $TemplateFile
TemplateParameterFile = $TemplateParameterFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-MGDiagnosticSettings-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDiagnosticSettings-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateFile = $TemplateFile
Expand Down
4 changes: 2 additions & 2 deletions accelerator/pipeline-scripts/Deploy-ALZManagementGroups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ param (

if ($NonRootParentManagementGroupId -eq '') {
$inputObject = @{
DeploymentName = 'alz-MGDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
TemplateFile = $TemplateFile + "managementGroups.bicep"
TemplateParameterFile = $TemplateParameterFile
Expand All @@ -33,7 +33,7 @@ if ($NonRootParentManagementGroupId -eq '') {
if ($NonRootParentManagementGroupId -ne '') {
$inputObject = @{
ManagementGroupId = $NonRootParentManagementGroupId
DeploymentName = 'alz-MGDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
TemplateFile = $TemplateFile + "managementGroupsScopeEscape.bicep"
TemplateParameterFile = $TemplateParameterFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-PolicyAssignmentsDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-PolicyAssignmentsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateFile = $TemplateFile
Expand Down
2 changes: 1 addition & 1 deletion accelerator/pipeline-scripts/Deploy-ALZRoleAssignments.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-RoleAssignmentsDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-RoleAssignmentsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateFile = $TemplateFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ param (

# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-SubscriptionPlacementDeployment-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-SubscriptionPlacementDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateFile = $TemplateFile
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/AzureMonitorBaselineAlerts.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Please ensure you have deployed the initial Accelerator and meet all prerequisit
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-AMBADeploy-{0}' -f ( -join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-AMBADeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = $Location
ManagementGroupId = $TopLevelMGPrefix
TemplateURI = $TemplateURI
Expand Down
4 changes: 2 additions & 2 deletions docs/wiki/Resiliency.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $TopLevelMGPrefix = "alz"
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-HubNetworkingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-HubNetworkingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = "rg-$TopLevelMGPrefix-hub-networking-001"
TemplateFile = "infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep"
TemplateParameterFile = "infra-as-code/bicep/modules/hubNetworking/parameters/hubNetworking.parameters.az.all.json"
Expand Down Expand Up @@ -173,7 +173,7 @@ $TopLevelMGPrefix = "alz"
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-vwanConnectivityDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-vwanConnectivityDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = "rg-$TopLevelMGPrefix-vwan-001"
TemplateFile = "infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep"
TemplateParameterFile = "infra-as-code/bicep/modules/vwanConnectivity/parameters/vwanConnectivity.parameters.az.all.json"
Expand Down
2 changes: 1 addition & 1 deletion infra-as-code/bicep/CRML/containerRegistry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ New-AzResourceGroup -Name 'rg-bicep-acr' `
-Location 'EastUs'
$inputObject = @{
DeploymentName = 'alz-ContainerRegistry-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-ContainerRegistry-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = 'rg-bicep-acr'
TemplateParameterFile = 'infra-as-code/bicep/CRML/containerRegistry/parameters/containerRegistry.parameters.all.json'
TemplateFile = "infra-as-code/bicep/CRML/containerRegistry/containerRegistry.bicep"
Expand Down
4 changes: 2 additions & 2 deletions infra-as-code/bicep/CRML/subscriptionAlias/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --template-file
```powershell
$inputObject = @{
DeploymentName = 'alz-SubscriptionAlias-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-SubscriptionAlias-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
TemplateParameterFile = 'infra-as-code/bicep/CRML/subscriptionAlias/parameters/subscriptionAlias.parameters.all.json'
Location = 'EastUS'
TemplateFile = "infra-as-code/bicep/CRML/subscriptionAlias/subscriptionAlias.bicep"
Expand All @@ -80,7 +80,7 @@ Use this module if you do not want to grant Tenant Root Management Group Deploym
```powershell
$inputObject = @{
DeploymentName = 'alz-SubscriptionAlias-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-SubscriptionAlias-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
TemplateParameterFile = 'infra-as-code/bicep/CRML/subscriptionAlias/parameters/subscriptionAlias.parameters.all.json'
Location = 'EastUS'
TemplateFile = "infra-as-code/bicep/CRML/subscriptionAlias/subscriptionAliasScopeEscape.bicep"
Expand Down
4 changes: 2 additions & 2 deletions infra-as-code/bicep/modules/customRoleDefinitions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-CustomRoleDefsDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-CustomRoleDefsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'eastus'
ManagementGroupId = 'alz'
TemplateFile = "infra-as-code/bicep/modules/customRoleDefinitions/customRoleDefinitions.bicep"
Expand All @@ -101,7 +101,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alz-CustomRoleDefsDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-CustomRoleDefsDeployment-{0}' (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'chinaeast2'
ManagementGroupId = 'alz'
TemplateFile = "infra-as-code/bicep/modules/customRoleDefinitions/mc-customRoleDefinitions.bicep"
Expand Down
4 changes: 2 additions & 2 deletions infra-as-code/bicep/modules/hubNetworking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $TopLevelMGPrefix = "alz"
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-HubNetworkingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-HubNetworkingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = "rg-$TopLevelMGPrefix-hub-networking-001"
TemplateFile = "infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep"
TemplateParameterFile = "infra-as-code/bicep/modules/hubNetworking/parameters/hubNetworking.parameters.all.json"
Expand All @@ -180,7 +180,7 @@ $TopLevelMGPrefix = "alz"
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-HubNetworkingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-HubNetworkingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = "rg-$TopLevelMGPrefix-hub-networking-001"
TemplateFile = "infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep"
TemplateParameterFile = "infra-as-code/bicep/modules/hubNetworking/parameters/mc-hubNetworking.parameters.all.json"
Expand Down
4 changes: 2 additions & 2 deletions infra-as-code/bicep/modules/logging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ $TopLevelMGPrefix = "alz"
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-LoggingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-LoggingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = "rg-$TopLevelMGPrefix-logging-001"
TemplateFile = "infra-as-code/bicep/modules/logging/logging.bicep"
TemplateParameterFile = "infra-as-code/bicep/modules/logging/parameters/logging.parameters.all.json"
Expand Down Expand Up @@ -121,7 +121,7 @@ $TopLevelMGPrefix = "alz"
# Parameters necessary for deployment
$inputObject = @{
DeploymentName = 'alz-LoggingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-LoggingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ResourceGroupName = "rg-$TopLevelMGPrefix-logging-001"
TemplateFile = "infra-as-code/bicep/modules/logging/logging.bicep"
TemplateParameterFile = "infra-as-code/bicep/modules/logging/parameters/logging.parameters.all.json"
Expand Down
8 changes: 4 additions & 4 deletions infra-as-code/bicep/modules/managementGroups/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --template-file
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-MGDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'EastUS'
TemplateFile = "infra-as-code/bicep/modules/managementGroups/managementGroups.bicep"
TemplateParameterFile = 'infra-as-code/bicep/modules/managementGroups/parameters/managementGroups.parameters.all.json'
Expand All @@ -216,7 +216,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alz-MGDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'chinaeast2'
TemplateFile = "infra-as-code/bicep/modules/managementGroups/managementGroups.bicep"
TemplateParameterFile = 'infra-as-code/bicep/modules/managementGroups/parameters/managementGroups.parameters.all.json'
Expand All @@ -232,7 +232,7 @@ Use this module if you do not want to grant Tenant Root Management Group Deploym
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-MGDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'EastUS'
TemplateFile = "infra-as-code/bicep/modules/managementGroups/managementGroupsScopeEscape.bicep"
TemplateParameterFile = 'infra-as-code/bicep/modules/managementGroups/parameters/managementGroups.parameters.all.json'
Expand All @@ -245,7 +245,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alz-MGDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-MGDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'chinaeast2'
TemplateFile = "infra-as-code/bicep/modules/managementGroups/managementGroupsScopeEscape.bicep"
TemplateParameterFile = 'infra-as-code/bicep/modules/managementGroups/parameters/managementGroups.parameters.all.json'
Expand Down
4 changes: 2 additions & 2 deletions infra-as-code/bicep/modules/mgDiagSettings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ az deployment mg create --name $NAME --location $LOCATION --template-file $TEMPL
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-mgDiagSettings-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-mgDiagSettings-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'eastus'
TemplateFile = "infra-as-code/bicep/modules/mgDiagSettings/mgDiagSettings.bicep"
TemplateParameterFile = 'infra-as-code/bicep/modules/mgDiagSettings/parameters/mgDiagSettings.parameters.all.json'
Expand All @@ -70,7 +70,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alz-mgDiagSettings-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-mgDiagSettings-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'chinaeast2'
TemplateFile = "infra-as-code/bicep/modules/mgDiagSettings/mgDiagSettings.bicep"
TemplateParameterFile = 'infra-as-code/bicep/modules/mgDiagSettings/parameters/mgDiagSettings.parameters.all.json'
Expand Down
8 changes: 4 additions & 4 deletions infra-as-code/bicep/modules/policy/assignments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-PolicyDenyAssignments-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-PolicyDenyAssignments-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ManagementGroupId = 'alz-landingzones'
Location = 'eastus'
TemplateParameterFile = 'infra-as-code/bicep/modules/policy/assignments/parameters/policyAssignmentManagementGroup.deny.parameters.all.json'
Expand All @@ -73,7 +73,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alz-PolicyDenyAssignments-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-PolicyDenyAssignments-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
ManagementGroupId = 'alz-landingzones'
Location = 'chinaeast2'
TemplateParameterFile = 'infra-as-code/bicep/modules/policy/assignments/parameters/policyAssignmentManagementGroup.deny.parameters.all.json'
Expand Down Expand Up @@ -127,7 +127,7 @@ az deployment mg create --name $NAME --location $LOCATION --management-group-id
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-PolicyDineAssignments-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-PolicyDenyAssignments-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'eastus'
ManagementGroupId = 'alz-landingzones'
TemplateFile = "infra-as-code/bicep/modules/policy/assignments/policyAssignmentManagementGroup.bicep"
Expand All @@ -141,7 +141,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alz-PolicyDineAssignments-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-PolicyDenyAssignments-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'chinaeast2'
ManagementGroupId = 'alz-landingzones'
TemplateFile = "infra-as-code/bicep/modules/policy/assignments/policyAssignmentManagementGroup.bicep"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
# For Azure global regions
$inputObject = @{
DeploymentName = 'alz-alzPolicyAssignmentDefaultsDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alz-alzPolicyAssignmentDefaultsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'eastus'
ManagementGroupId = 'alz'
TemplateFile = "infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep"
Expand All @@ -71,7 +71,7 @@ OR
# For Azure China regions
$inputObject = @{
DeploymentName = 'alzPolicyAssignmentDefaultsDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
DeploymentName = -join ('alzPolicyAssignmentDefaultsDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
Location = 'chinaeast2'
ManagementGroupId = 'alz'
TemplateFile = "infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep"
Expand Down
Loading

0 comments on commit 038090c

Please sign in to comment.