Skip to content

Commit e17b69e

Browse files
authored
[Network] az network application-gateway ssl-cert: Support dedicated backend connection (#32784)
1 parent a5c7442 commit e17b69e

File tree

8 files changed

+2606
-1703
lines changed

8 files changed

+2606
-1703
lines changed

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_create.py

Lines changed: 195 additions & 36 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_delete.py

Lines changed: 193 additions & 34 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_list.py

Lines changed: 193 additions & 34 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_show.py

Lines changed: 192 additions & 33 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_update.py

Lines changed: 198 additions & 39 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/ssl_cert/_wait.py

Lines changed: 191 additions & 32 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_app_gateway_with_private_ip.yaml

Lines changed: 1434 additions & 1490 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,10 +1280,13 @@ def test_network_app_gateway_with_private_ip(self, resource_group):
12801280

12811281
self.kwargs.update({
12821282
'private_ip': '10.0.0.15',
1283+
'public_ip': 'pip-ag3',
12831284
'path': os.path.join(TEST_DIR, 'TestCert.pfx'),
12841285
'pass': 'password'
12851286
})
1286-
self.cmd('network application-gateway create -g {rg} -n ag3 --subnet subnet1 --private-ip-address {private_ip} --cert-file "{path}" --cert-password {pass} --priority 1001 --no-wait')
1287+
self.cmd('network public-ip create -g {rg} -n {public_ip} --sku Standard')
1288+
self.cmd('network application-gateway waf-policy create -n waf1 -g {rg}')
1289+
self.cmd('network application-gateway create -g {rg} -n ag3 --subnet subnet1 --private-ip-address {private_ip} --public-ip-address {public_ip} --sku WAF_v2 --waf-policy waf1 --cert-file "{path}" --cert-password {pass} --priority 1001 --no-wait')
12871290
self.cmd('network application-gateway wait -g {rg} -n ag3 --exists')
12881291
self.cmd('network application-gateway show -g {rg} -n ag3', checks=[
12891292
self.check('frontendIPConfigurations[0].privateIPAddress', '{private_ip}'),
@@ -1314,16 +1317,18 @@ def test_network_app_gateway_with_private_ip(self, resource_group):
13141317

13151318
cipher_suite = 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256'
13161319
self.kwargs['cipher'] = cipher_suite
1317-
self.cmd('network application-gateway ssl-policy set -g {rg} --gateway-name ag3 --min-protocol-version TLSv1_0 --cipher-suites {cipher} --no-wait')
1320+
self.cmd('network application-gateway ssl-policy set -g {rg} --gateway-name ag3 --min-protocol-version TLSv1_2 --cipher-suites {cipher} --no-wait')
13181321
self.cmd('network application-gateway ssl-policy show -g {rg} --gateway-name ag3', checks=[
13191322
self.check('cipherSuites.length(@)', 1),
1320-
self.check('minProtocolVersion', 'TLSv1_0'),
1323+
self.check('minProtocolVersion', 'TLSv1_2'),
13211324
self.check('policyType', 'Custom')
13221325
])
13231326

1324-
policy_name = 'AppGwSslPolicy20150501'
1327+
# supported predefined policy (positive path)
1328+
policy_name = 'AppGwSslPolicy20220101'
13251329
self.kwargs['policy'] = policy_name
1326-
self.cmd('network application-gateway ssl-policy set -g {rg} --gateway-name ag3 -n {policy} --no-wait')
1330+
self.cmd('network application-gateway ssl-policy set -g {rg} --gateway-name ag3 -n {policy} --policy-type Predefined --no-wait')
1331+
self.cmd('network application-gateway wait -g {rg} -n ag3 --updated')
13271332
self.cmd('network application-gateway ssl-policy show -g {rg} --gateway-name ag3', checks=[
13281333
self.check('policyName', policy_name),
13291334
self.check('policyType', 'Predefined')

0 commit comments

Comments
 (0)