Skip to content

Commit aebca81

Browse files
committed
fix: update --appgw-subnet-cidr to be shorter than /24
1 parent 7952300 commit aebca81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3566,13 +3566,14 @@ def test_aks_create_with_ingress_appgw_addon(self, resource_group, resource_grou
35663566
})
35673567

35683568
create_cmd = 'aks create --resource-group={resource_group} --name={name} --enable-managed-identity ' \
3569-
'-a ingress-appgw --appgw-subnet-cidr 10.232.0.0/16 ' \
3569+
'--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AppGatewayWithOverlayPreview ' \
3570+
'-a ingress-appgw --appgw-subnet-cidr 10.232.0.0/26 ' \
35703571
'--ssh-key-value={ssh_key_value} -o json'
35713572
self.cmd(create_cmd, checks=[
35723573
self.check('provisioningState', 'Succeeded'),
35733574
self.check('addonProfiles.ingressApplicationGateway.enabled', True),
35743575
self.check(
3575-
'addonProfiles.ingressApplicationGateway.config.subnetCIDR', "10.232.0.0/16")
3576+
'addonProfiles.ingressApplicationGateway.config.subnetCIDR', "10.232.0.0/26")
35763577
])
35773578

35783579
# live only due to role assignment is not mocked

0 commit comments

Comments
 (0)