From f7cdd6b333d6adc4f77d593ce721b408c2993cce Mon Sep 17 00:00:00 2001 From: Paul Lewis Date: Fri, 9 Aug 2024 12:18:04 +0000 Subject: [PATCH] - Trying to fix the error about the natGatewayProfile: `unknown field \\\"natGatewayProfile\\\" Check that the field is in the right location, is spelled correctly, and is supported in the API version` --- samples/shared-acr/main.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/samples/shared-acr/main.json b/samples/shared-acr/main.json index c8b8b16f5..9e54b2878 100644 --- a/samples/shared-acr/main.json +++ b/samples/shared-acr/main.json @@ -1165,11 +1165,13 @@ "aks_addons1": "[if(parameters('ingressApplicationGateway'), union(variables('aks_addons'), if(variables('deployAppGw'), createObject('ingressApplicationGateway', createObject('config', createObject('applicationGatewayId', resourceId('Microsoft.Network/applicationGateways', variables('appgwName'))), 'enabled', true())), createObject('ingressApplicationGateway', createObject('enabled', true(), 'config', createObject('applicationGatewayName', variables('appgwName'), 'subnetCIDR', '10.225.0.0/16'))))), variables('aks_addons'))]", "aksPrivateDnsZone": "[if(equals(parameters('privateClusterDnsMethod'), 'privateDnsZone'), if(not(empty(parameters('dnsApiPrivateZoneId'))), parameters('dnsApiPrivateZoneId'), 'system'), parameters('privateClusterDnsMethod'))]", "managedNATGatewayProfile": { - "natGatewayProfile": { - "managedOutboundIPProfile": { - "count": "[parameters('natGwIpCount')]" - }, - "idleTimeoutInMinutes": "[parameters('natGwIdleTimeout')]" + "networkProfile": { + "natGatewayProfile": { + "managedOutboundIPProfile": { + "count": "[parameters('natGwIpCount')]" + }, + "idleTimeoutInMinutes": "[parameters('natGwIdleTimeout')]" + } } }, "azureDefenderSecurityProfile": {