Skip to content

Commit f41a7de

Browse files
authored
{Network} az network application-gateway create: set https when key_vault_secret_id provided (#11974)
1 parent ca9405e commit f41a7de

File tree

1 file changed

+1
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/network

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/network/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def create_application_gateway(cmd, application_gateway_name, resource_group_nam
150150

151151
tags = tags or {}
152152
sku_tier = sku.split('_', 1)[0] if 'v2' not in sku else sku
153-
http_listener_protocol = 'https' if cert_data else 'http'
153+
http_listener_protocol = 'https' if (cert_data or key_vault_secret_id) else 'http'
154154
private_ip_allocation = 'Static' if private_ip_address else 'Dynamic'
155155
virtual_network_name = virtual_network_name or '{}Vnet'.format(application_gateway_name)
156156

0 commit comments

Comments
 (0)