Skip to content

Conversation

@msyyc
Copy link
Member

@msyyc msyyc commented Apr 9, 2021

Description

Similar link:
storage : #17528
compute: #17522
'az network vnet-gateway create' need new swagger : https://github.com/Azure/azure-rest-api-specs/pull/13864/files
(RE: virtualNetworkGateway missing extendedLocation in swagger)

Testing Guide

NetworkExtendedLocation
History Notes

[Network]az network lb create: Add new parameter --edge-zone
[Network]az network nic create: Add new parameter --edge-zone
[Network]az network private-endpoint create: Add new parameter --edge-zone
[Network]az network private-link-service create: Add new parameter --edge-zone
[Network]az network public-ip create: Add new parameter --edge-zone
[Network]az network public-ip prefix create: Add new parameter --edge-zone
[Network]az network vnet create: Add new parameter --edge-zone


This checklist is used to make sure that common guidelines for a pull request are followed.

@msyyc msyyc requested review from jsntcy and kairu-ms as code owners April 9, 2021 06:50
@msyyc msyyc requested review from Juliehzl and qwordy April 9, 2021 06:50
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 9, 2021

Network

@yonzhan yonzhan added this to the S186 milestone Apr 9, 2021
help='Space-separated list of availability zones into which to provision the resource.',
choices=['1', '2', '3']
)
edge_zone = CLIArgumentType(help='The name of edge zone.', is_preview=True, min_api='2020-08-01')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use this type for edge zone and add min_api version for your parameter

edge_zone_type = CLIArgumentType(options_list='--edge-zone', help='The name of edge zone.', is_preview=True)

vnet_help = "Name or ID of an existing virtual network which has a subnet named 'GatewaySubnet'."
c.argument('virtual_network', options_list='--vnet', help=vnet_help)
c.argument('vpn_gateway_generation', arg_type=get_enum_type(['Generation1', 'Generation2']), min_api='2019-07-01', help='The generation for the virtual network gateway. vpn_gateway_generation should not be provided if gateway_type is not Vpn.')
c.ignore('edge_zone') # wait for service ready
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to expose this parameter as service not ready?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'az network vnet-gateway create' need new swagger : https://github.com/Azure/azure-rest-api-specs/pull/13864/files
(RE: virtualNetworkGateway missing extendedLocation in swagger)

Copy link
Member Author

@msyyc msyyc Apr 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is ignored. So customers could not use it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is ignored. So customers could not use it.

I think customer can see it in command help message. Why not expose it when service is ready?

@msyyc msyyc merged commit 52096b5 into Azure:dev Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants