Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 60f3b59

Browse files
Organize deployment parameters for Hub Networking with NVA (Azure#266)
1 parent 926521a commit 60f3b59

24 files changed

+4222
-3431
lines changed

.pipelines/templates/steps/deploy-platform-connectivity-hub-nva.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ steps:
9999
workingDirectory: '${{ parameters.workingDir }}/lz-platform-connectivity-hub-nva'
100100

101101
- task: AzureCLI@2
102-
displayName: Azure Policy - Enable Private DNS Zone Policies (if deployPrivateDnsZones=true in config)
102+
displayName: Azure Policy - Enable Private DNS Zone Policies (if privateDnsZones.enabled=true in config)
103103
inputs:
104104
azureSubscription: $(serviceConnection)
105105
scriptType: 'bash'
106106
scriptLocation: 'inlineScript'
107107
inlineScript: |
108108
$(var-bashPreInjectScript)
109109
110-
DEPLOY_PRIVATE_DNS_ZONES=`jq -r .parameters.deployPrivateDnsZones.value ${{ parameters.networkingConfigurationPath }}`
111-
PRIVATE_DNS_ZONES_RESOURCE_GROUP=`jq -r .parameters.rgPrivateDnsZonesName.value ${{ parameters.networkingConfigurationPath }}`
110+
DEPLOY_PRIVATE_DNS_ZONES=`jq -r .parameters.privateDnsZones.value.enabled ${{ parameters.networkingConfigurationPath }}`
111+
PRIVATE_DNS_ZONES_RESOURCE_GROUP=`jq -r .parameters.privateDnsZones.value.resourceGroupName ${{ parameters.networkingConfigurationPath }}`
112112
113113
case $DEPLOY_PRIVATE_DNS_ZONES in
114114
(true)
@@ -136,22 +136,22 @@ steps:
136136
workingDirectory: '$(System.DefaultWorkingDirectory)/policy/custom/assignments'
137137

138138
- task: AzureCLI@2
139-
displayName: Azure Policy - Enable DDoS Standard (if deployDdosStandard=true in config)
139+
displayName: Azure Policy - Enable DDoS Standard (if ddosStandard.enabled=true in config)
140140
inputs:
141141
azureSubscription: $(serviceConnection)
142142
scriptType: 'bash'
143143
scriptLocation: 'inlineScript'
144144
inlineScript: |
145145
$(var-bashPreInjectScript)
146146
147-
DEPLOY_DDOS_STANDARD=`jq -r .parameters.deployDdosStandard.value ${{ parameters.networkingConfigurationPath }}`
147+
DEPLOY_DDOS_STANDARD=`jq -r .parameters.ddosStandard.value.enabled ${{ parameters.networkingConfigurationPath }}`
148148
149149
case $DEPLOY_DDOS_STANDARD in
150150
(true)
151151
echo "DDoS Standard is enabled, creating Azure Policy assignment to protect for all Virtual Networks in '$(var-topLevelManagementGroupName)' management group."
152152
153-
DDOS_STANDARD_RESOURCE_GROUP_NAME=`jq -r .parameters.rgDdosName.value ${{ parameters.networkingConfigurationPath }}`
154-
DDOS_STANDARD_PLAN_NAME=`jq -r .parameters.ddosPlanName.value ${{ parameters.networkingConfigurationPath }}`
153+
DDOS_STANDARD_RESOURCE_GROUP_NAME=`jq -r .parameters.ddosStandard.value.resourceGroupName ${{ parameters.networkingConfigurationPath }}`
154+
DDOS_STANDARD_PLAN_NAME=`jq -r .parameters.ddosStandard.value.planName ${{ parameters.networkingConfigurationPath }}`
155155
156156
# Identify the Resource Id for DDOS Standard Plan
157157
DDOS_PLAN_ID=`az network ddos-protection show -g $DDOS_STANDARD_RESOURCE_GROUP_NAME -n $DDOS_STANDARD_PLAN_NAME --subscription ${{ parameters.networkingSubscriptionId }} --query id -o tsv`

0 commit comments

Comments
 (0)