File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,13 @@ WINDOWS_LOADBALANCER=$(jq -c '.parameters | with_entries( select(.key|contains("
146146WINDOWS_IDENTITY=$( jq -c ' .resources[0] | with_entries( select(.key|contains("identity")))' test.json)
147147WINDOWS_SKU=$( jq -c ' .resources[0] | with_entries( select(.key|contains("sku")))' test.json)
148148WINDOWS_OSDISK=$( jq -c ' .resources[0].properties.virtualMachineProfile.storageProfile | with_entries( select(.key|contains("osDisk")))' test.json)
149+
150+ # Testing Windows Drivers requires SecureBoot to be disabled in-order to enable kernel debugging and installing drivers
151+ ENABLE_SECURE_BOOT=" true"
152+ if [ -n " $ALLOW_TEST_WINDOWS_DRIVERS " ]; then
153+ ENABLE_SECURE_BOOT=" false"
154+ fi
155+
149156NETWORK_PROPERTIES=$( jq -c ' .resources[0].properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0] | with_entries( select(.key|contains("properties")))' test.json)
150157CUSTOM_DATA=$( cat scenarios/$SCENARIO_NAME /$WINDOWS_E2E_IMAGE -$SCENARIO_NAME -cloud-init.txt)
151158CSE_CMD=$( cat scenarios/$SCENARIO_NAME /$WINDOWS_E2E_IMAGE -$SCENARIO_NAME -cseCmd)
@@ -161,7 +168,8 @@ jq --argjson JsonForVnet "$WINDOWS_VNET" \
161168 --arg ValueForCustomData " $CUSTOM_DATA " \
162169 --arg ValueForCSECmd " $CSE_CMD " \
163170 --arg ValueForVMSS " $DEPLOYMENT_VMSS_NAME " \
164- ' .parameters += $JsonForVnet | .parameters += $JsonForLB | .resources[0] += $JsonForIdentity | .resources[0] += $JsonForSKU | .resources[0].properties.virtualMachineProfile.storageProfile+=$JsonForOSDisk | .resources[0].properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0] += $JsonForNetwork | .resources[0].properties.virtualMachineProfile.storageProfile.imageReference.id=$ValueForImageReference | .resources[0].properties.virtualMachineProfile.osProfile.adminPassword=$ValueForAdminPassword | .resources[0].properties.virtualMachineProfile.osProfile.customData=$ValueForCustomData | .resources[0].properties.virtualMachineProfile.extensionProfile.extensions[0].properties.settings.commandToExecute=$ValueForCSECmd | .parameters.virtualMachineScaleSets_akswin30_name.defaultValue=$ValueForVMSS' \
171+ --arg ValueForEnableSecureBoot " $ENABLE_SECURE_BOOT " \
172+ ' .parameters += $JsonForVnet | .parameters += $JsonForLB | .resources[0] += $JsonForIdentity | .resources[0] += $JsonForSKU | .resources[0].properties.virtualMachineProfile.storageProfile+=$JsonForOSDisk | .resources[0].properties.virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0] += $JsonForNetwork | .resources[0].properties.virtualMachineProfile.storageProfile.imageReference.id=$ValueForImageReference | .resources[0].properties.virtualMachineProfile.osProfile.adminPassword=$ValueForAdminPassword | .resources[0].properties.virtualMachineProfile.osProfile.customData=$ValueForCustomData | .resources[0].properties.virtualMachineProfile.extensionProfile.extensions[0].properties.settings.commandToExecute=$ValueForCSECmd | .parameters.virtualMachineScaleSets_akswin30_name.defaultValue=$ValueForVMSS | .resources[0].properties.virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled=$ValueForEnableSecureBoot' \
165173 windows_vmss_template.json > $DEPLOYMENT_VMSS_NAME -deployment.json
166174
167175retval=0
You can’t perform that action at this time.
0 commit comments