Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ def load_arguments(self, _):
app_gateway_name_type = CLIArgumentType(help='Name of the application gateway.', options_list='--gateway-name', completer=get_resource_name_completion_list('Microsoft.Network/applicationGateways'), id_part='name')
express_route_link_macsec_cipher_type = CLIArgumentType(get_enum_type(ExpressRouteLinkMacSecCipher))
express_route_link_admin_state_type = CLIArgumentType(get_enum_type(ExpressRouteLinkAdminState))
zone_compatible_type = CLIArgumentType(
options_list=['--zone', '-z'],
nargs='+',
help='Space-separated list of availability zones into which to provision the resource.',
choices=['1', '2', '3']
)

# region NetworkRoot
with self.argument_context('network') as c:
Expand Down Expand Up @@ -1670,7 +1676,8 @@ def load_arguments(self, _):
c.argument('reverse_fqdn', help='Reverse FQDN (fully qualified domain name).')
c.argument('dns_name', help='Globally unique DNS entry.')
c.argument('idle_timeout', help='Idle timeout in minutes.')
c.argument('zone', zone_type, min_api='2017-06-01')
c.argument('zone', zone_type, min_api='2017-06-01', max_api='2020-07-01')
c.argument('zone', zone_compatible_type, min_api='2020-08-01')
c.argument('ip_tags', nargs='+', min_api='2017-11-01', help="Space-separated list of IP tags in 'TYPE=VAL' format.", validator=validate_ip_tags)

with self.argument_context('network public-ip create') as c:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ def _inform_coming_breaking_change_for_public_ip(namespace):
logger.warning('[Coming breaking change] In the coming release, the default behavior will be changed as follows'
' when sku is Standard and zone is not provided:'
' For zonal regions, you will get a zone-redundant IP indicated by zones:["1","2","3"];'
' For non-zonal regions, you will get a non zone-redundant IP indicated by zones:[].')
' For non-zonal regions, you will get a non zone-redundant IP indicated by zones:null.')


def process_route_table_create_namespace(cmd, namespace):
Expand Down
Loading