File tree Expand file tree Collapse file tree
src/azure-cli/azure/cli/command_modules/acs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ def configure_nat_gateway_profile(
100100
101101 if outbound_ip_ids is not None :
102102 ManagedClusterNATGatewayProfileOutboundIPs = models .ManagedClusterNATGatewayProfileOutboundIPs
103+ if ManagedClusterNATGatewayProfileOutboundIPs is None :
104+ raise ValueError ("The selected AKS API profile/SDK does not support setting NAT gateway outbound IPs." )
103105 ip_id_list = [x .strip () for x in outbound_ip_ids .split (',' ) if x .strip ()]
104- profile .outbound_i_ps = ManagedClusterNATGatewayProfileOutboundIPs (
105- public_i_ps = ip_id_list
106- )
106+ profile .outbound_i_ps = ManagedClusterNATGatewayProfileOutboundIPs (public_i_ps = ip_id_list )
107107
108108 if outbound_ip_prefix_ids is not None :
109109 ManagedClusterNATGatewayProfileOutboundIpPrefixes = models .ManagedClusterNATGatewayProfileOutboundIpPrefixes
You can’t perform that action at this time.
0 commit comments