зеркало из https://github.com/Azure/ALZ-Bicep.git
bug: Fix deploymentnames in pipeline-scripts to max 64 char (#801)
* 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>
This commit is contained in:
Родитель
642fd5f473
Коммит
038090ce0b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
@ -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"
|
||||
|
|
|
@ -71,7 +71,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
|
|||
# For Azure global regions
|
||||
|
||||
$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 = 'eastus'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/modules/policy/definitions/customPolicyDefinitions.bicep"
|
||||
|
@ -85,7 +85,7 @@ OR
|
|||
# For Azure China regions
|
||||
|
||||
$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 = 'chinaeast2'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/modules/policy/definitions/mc-customPolicyDefinitions.bicep"
|
||||
|
|
|
@ -132,7 +132,7 @@ New-AzResourceGroup `
|
|||
-Location 'eastus'
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-PrivateDnsZonesDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-PrivateDnsZonesDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
ResourceGroupName = "rg-$TopLevelMGPrefix-private-dns-001"
|
||||
TemplateFile = "infra-as-code/bicep/modules/privateDnsZones/privateDnsZones.bicep"
|
||||
TemplateParameterFile = "infra-as-code/bicep/modules/privateDnsZones/parameters/privateDnsZones.parameters.all.json"
|
||||
|
@ -157,7 +157,7 @@ New-AzResourceGroup `
|
|||
-Location 'chinaeast2'
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-PrivateDnsZonesDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-PrivateDnsZonesDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
ResourceGroupName = "rg-$TopLevelMGPrefix-private-dns-001"
|
||||
TemplateFile = "infra-as-code/bicep/modules/privateDnsZones/privateDnsZones.bicep"
|
||||
TemplateParameterFile = "infra-as-code/bicep/modules/privateDnsZones/parameters/privateDnsZones.parameters.all.json"
|
||||
|
|
|
@ -134,7 +134,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
|
|||
# For Azure global regions
|
||||
|
||||
$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 = 'eastus'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/modules/roleAssignments/roleAssignmentManagementGroup.bicep"
|
||||
|
@ -148,7 +148,7 @@ OR
|
|||
# For Azure China regions
|
||||
|
||||
$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 = 'chinaeast2'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/modules/roleAssignments/roleAssignmentManagementGroup.bicep"
|
||||
|
|
|
@ -109,7 +109,7 @@ $TopLevelMGPrefix = "alz"
|
|||
|
||||
# Parameters necessary for deployment
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-SpokeNetworkingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-SpokeNetworkingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
ResourceGroupName = "rg-$TopLevelMGPrefix-spoke-networking-001"
|
||||
TemplateParameterFile = "infra-as-code/bicep/modules/spokeNetworking/parameters/spokeNetworking.parameters.all.json"
|
||||
TemplateFile = "infra-as-code/bicep/modules/spokeNetworking/spokeNetworking.bicep"
|
||||
|
@ -134,7 +134,7 @@ $TopLevelMGPrefix = "alz"
|
|||
|
||||
# Parameters necessary for deployment
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-SpokeNetworkingDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-SpokeNetworkingDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
ResourceGroupName = "rg-$TopLevelMGPrefix-spoke-networking-001"
|
||||
TemplateParameterFile = "infra-as-code/bicep/modules/spokeNetworking/parameters/spokeNetworking.parameters.all.json"
|
||||
TemplateFile = "infra-as-code/bicep/modules/spokeNetworking/spokeNetworking.bicep"
|
||||
|
|
|
@ -52,7 +52,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
|
|||
# For Azure global regions
|
||||
|
||||
$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 = 'eastus'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/modules/subscriptionPlacement/subscriptionPlacement.bicep"
|
||||
|
@ -66,7 +66,7 @@ OR
|
|||
# For Azure China regions
|
||||
|
||||
$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 = 'chinaeast2'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/modules/subscriptionPlacement/subscriptionPlacement.bicep"
|
||||
|
|
|
@ -105,7 +105,7 @@ New-AzResourceGroup `
|
|||
|
||||
# Parameters necessary for deployment
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-vnetPeeringDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-vnetPeeringDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
ResourceGroupName = "rg-$TopLevelMGPrefix-vnet-peering-001"
|
||||
TemplateFile = "ALZ-Bicep/infra-as-code/bicep/modules/vnetPeering/vnetPeering.bicep"
|
||||
TemplateParameterFile = "infra-as-code/bicep/modules/vnetPeering/parameters/vnetPeering.parameters.all.json"
|
||||
|
@ -131,7 +131,7 @@ $TopLevelMGPrefix = "alz"
|
|||
|
||||
# Parameters necessary for deployment
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-vnetPeeringDeploy-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-vnetPeeringDeploy-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
ResourceGroupName = "rg-$TopLevelMGPrefix-vnet-peering-001"
|
||||
TemplateFile = "ALZ-Bicep/infra-as-code/bicep/modules/vnetPeering/vnetPeering.bicep"
|
||||
TemplateParameterFile = "infra-as-code/bicep/modules/vnetPeering/parameters/vnetPeering.parameters.all.json"
|
||||
|
|
|
@ -74,7 +74,7 @@ $ConnectivitySubscriptionId = "[your Landing Zone subscription ID]"
|
|||
Select-AzSubscription -SubscriptionId $ConnectivitySubscriptionId
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-VnetPeeringWanDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-VnetPeeringWanDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
Location = 'eastus'
|
||||
TemplateFile = "infra-as-code/bicep/modules/vnetPeeringVwan/vnetPeeringVwan.bicep"
|
||||
TemplateParameterFile = 'infra-as-code/bicep/modules/vnetPeeringVwan/parameters/vnetPeeringVwan.parameters.all.json'
|
||||
|
@ -92,7 +92,7 @@ $ConnectivitySubscriptionId = "[your Landing Zone subscription ID]"
|
|||
Select-AzSubscription -SubscriptionId $ConnectivitySubscriptionId
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-VnetPeeringWanDeployment-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-VnetPeeringWanDeployment-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
Location = 'chinaeast2'
|
||||
TemplateFile = "infra-as-code/bicep/modules/vnetPeeringVwan/vnetPeeringVwan.bicep"
|
||||
TemplateParameterFile = 'infra-as-code/bicep/modules/vnetPeeringVwan/parameters/vnetPeeringVwan.parameters.all.json'
|
||||
|
|
|
@ -124,7 +124,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.all.json"
|
||||
|
@ -150,7 +150,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/mc-vwanConnectivity.parameters.all.json"
|
||||
|
|
|
@ -79,7 +79,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
|
|||
# For Azure global regions
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-HubPeeredSpoke-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-HubPeeredSpoke-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
Location = 'EastUS'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep"
|
||||
|
@ -93,7 +93,7 @@ OR
|
|||
# For Azure China regions
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-HubPeeredSpoke-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-HubPeeredSpoke-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
Location = 'chinaeast2'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/orchestration/hubPeeredSpoke/hubPeeredSpoke.bicep"
|
||||
|
|
|
@ -135,7 +135,7 @@ az deployment mg create --name ${NAME:0:63} --location $LOCATION --management-gr
|
|||
# For Azure global regions
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-SubPlacementAll-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-SubPlacementAll-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
Location = 'EastUS'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/orchestration/subPlacementAll/subPlacementAll.bicep"
|
||||
|
@ -151,7 +151,7 @@ OR
|
|||
# For Azure China regions
|
||||
|
||||
$inputObject = @{
|
||||
DeploymentName = 'alz-SubPlacementAll-{0}' -f (-join (Get-Date -Format 'yyyyMMddTHHMMssffffZ')[0..63])
|
||||
DeploymentName = -join ('alz-SubPlacementAll-{0}' -f (Get-Date -Format 'yyyyMMddTHHMMssffffZ'))[0..63]
|
||||
Location = 'chinaeast2'
|
||||
ManagementGroupId = 'alz'
|
||||
TemplateFile = "infra-as-code/bicep/orchestration/subPlacementAll/subPlacementAll.bicep"
|
||||
|
|
Загрузка…
Ссылка в новой задаче