diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py index 0087f9e813f..8101fe21012 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_help.py @@ -369,6 +369,9 @@ helps['network dns zone update'] = """ type: command short-summary: Updates DNS zone properties. Does not modify DNS records within the zone. + parameters: + - name: --if-match + short-summary: Update only if the resource with the same ETAG exists. """ helps['network express-route'] = """ type: group diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py index 74199c07a8a..bace0f1c16f 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py @@ -424,3 +424,4 @@ def completer(prefix, action, parsed_args, **kwargs): # pylint: disable=unused-a register_cli_argument('network dns zone import', 'file_name', help='Path to the DNS zone file to import') register_cli_argument('network dns zone export', 'file_name', help='Path to the DNS zone file to save') register_cli_argument('network dns', 'location', help=argparse.SUPPRESS, default='global') +register_cli_argument('network dns zone update', 'if_none_match', ignore_type)