From 0aee0305fe24e4024522a78147e64365b91a967b Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Thu, 19 Mar 2020 15:10:37 +0800 Subject: [PATCH 1/2] test on modifying vm network --- src/azure-cli/azure/cli/command_modules/network/commands.py | 2 ++ src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/network/commands.py b/src/azure-cli/azure/cli/command_modules/network/commands.py index 3fc01b0da7e..c64bb01c6c7 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -108,6 +108,8 @@ def load_command_table(self, _): min_api='2018-05-01' ) + print(network_dns_reference_sdk) + network_endpoint_service_sdk = CliCommandType( operations_tmpl='azure.mgmt.network.operations#AvailableEndpointServicesOperations.{}', client_factory=cf_endpoint_services, diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 91f8149cb7d..7c7e8255d85 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -56,6 +56,8 @@ def load_arguments(self, _): help="Scale set name. You can configure the default using `az configure --defaults vmss=`", id_part='name') + print(vmss_name_type) + extension_instance_name_type = CLIArgumentType(help="Name of extension instance, which can be customized. Default: name of the extension.") image_template_name_type = CLIArgumentType(overrides=name_arg_type, id_part='name') disk_encryption_set_name = CLIArgumentType(overrides=name_arg_type, help='Name of disk encryption set.', id_part='name') From a0d1813d22231b66c91b350299da42a6f816b535 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 20 Mar 2020 10:37:08 +0800 Subject: [PATCH 2/2] fix bug --- src/azure-cli/azure/cli/command_modules/network/commands.py | 2 +- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/commands.py b/src/azure-cli/azure/cli/command_modules/network/commands.py index c64bb01c6c7..a15b5cde437 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -108,7 +108,7 @@ def load_command_table(self, _): min_api='2018-05-01' ) - print(network_dns_reference_sdk) + dummy = network_dns_reference_sdk network_endpoint_service_sdk = CliCommandType( operations_tmpl='azure.mgmt.network.operations#AvailableEndpointServicesOperations.{}', diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 7c7e8255d85..a076d5e1e93 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -56,7 +56,7 @@ def load_arguments(self, _): help="Scale set name. You can configure the default using `az configure --defaults vmss=`", id_part='name') - print(vmss_name_type) + dummy_value = 128 extension_instance_name_type = CLIArgumentType(help="Name of extension instance, which can be customized. Default: name of the extension.") image_template_name_type = CLIArgumentType(overrides=name_arg_type, id_part='name')