Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Do not merge] Trim Not Core Modules #30631

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

kairu-ms
Copy link
Contributor

@kairu-ms kairu-ms commented Jan 9, 2025

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


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

Copy link

azure-client-tools-bot-prd bot commented Jan 9, 2025

❌AzureCLI-FullTest
❌core
❌2018-03-01-hybrid
❌3.12
Type Test Case Error Message Line
Failed test_completion The error message is too long, please check the pipeline log for details. src/azure-cli-core/azure/cli/core/tests/test_argcomplete.py:23
❌3.9
Type Test Case Error Message Line
Failed test_completion The error message is too long, please check the pipeline log for details. src/azure-cli-core/azure/cli/core/tests/test_argcomplete.py:23
❌2019-03-01-hybrid
❌3.12
Type Test Case Error Message Line
Failed test_completion The error message is too long, please check the pipeline log for details. src/azure-cli-core/azure/cli/core/tests/test_argcomplete.py:23
❌3.9
Type Test Case Error Message Line
Failed test_completion The error message is too long, please check the pipeline log for details. src/azure-cli-core/azure/cli/core/tests/test_argcomplete.py:23
🔄databoxedge
🔄2019-03-01-hybrid
🔄3.12
🔄3.9
🔄iot
🔄2019-03-01-hybrid
🔄3.12
🔄3.9
🔄keyvault
🔄2018-03-01-hybrid
🔄3.12
🔄3.9
🔄network
🔄2018-03-01-hybrid
🔄3.12
🔄3.9
❌resource
❌2018-03-01-hybrid
❌3.12
Type Test Case Error Message Line
Failed test_cannotdelete_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_cannotdelete_resource_lock>
resource_group = 'cli_test_cannotdelete_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cannotdelete_resource_lock')
    def test_cannotdelete_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('CanNotDelete', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:64: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                         

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:61
Failed test_lock_commands_with_ids self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_lock_commands_with_ids>
resource_group = 'cli_test_lock_commands_with_ids000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_commands_with_ids')
    def test_lock_commands_with_ids(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        group_lock_name = self.create_random_name('cli-test-lock', 50)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('az network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:230: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:221
Failed test_lock_with_resource_id self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_lock_with_resource_id>
resource_group = 'cli_test_lock_with_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_with_resource_id')
    def test_lock_with_resource_id(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:273: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:265
Failed test_readonly_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_readonly_resource_lock>
resource_group = 'cli_test_readonly_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_readonly_resource_lock')
    def test_readonly_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('ReadOnly', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:60: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                         

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:57
Failed test_resource_lock_commands self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_resource_lock_commands>
resource_group = 'cli_test_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_lock')
    def test_resource_lock_commands(self, resource_group):
        rsrc_name = self.create_random_name('cli.lock.rsrc', 30)
        rsrc_type = 'Microsoft.Network/virtualNetworks'
        lock_name = self.create_random_name('cli-test-lock', 74)
        lock_type = 'CanNotDelete'
    
>       self.cmd('network vnet create -n {} -g {}'.format(rsrc_name, resource_group))

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:165: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:157
Failed test_resource_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.ResourceScenarioTest testMethod=test_resource_scenario>
resource_group = 'cli_test_resource_scenario000001'
resource_group_location = 'southcentralus'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_scenario', location='southcentralus')
    @AllowLargeResponse()
    def test_resource_scenario(self, resource_group, resource_group_location):
        self.kwargs.update({
            'loc': resource_group_location,
            'vnet': self.create_random_name('vnet-', 30),
            'subnet': self.create_random_name('subnet-', 30),
            'rt': 'Microsoft.Network/virtualNetworks'
        })
        vnet_count = self.cmd("resource list --query "length([?name=='{vnet}'])"").get_output_in_json() or 0
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet} --tags cli-test=test')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:72: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:61
Failed test_resource_id_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.ResourceIDScenarioTest testMethod=test_resource_id_scenario>
resource_group = 'cli_test_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_id')
    def test_resource_id_scenario(self, resource_group):
    
        self.kwargs.update({
            'vnet': 'cli_test_resource_id_vnet',
            'subnet': 'cli_test_resource_id_subnet'
        })
    
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet}')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:124: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:115
Failed test_group_deployment self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.DeploymentTest testMethod=test_group_deployment>
resource_group = 'cli_test_deployment000001'

    @ResourceGroupPreparer(name_prefix='cli_test_deployment')
    def test_group_deployment(self, resource_group):
        curr_dir = os.path.dirname(os.path.realpath(file))
        self.kwargs.update({
            'tf': os.path.join(curr_dir, 'test-template.json').replace('\', '\\'),
            'params': os.path.join(curr_dir, 'test-params.json').replace('\', '\\'),
            'of': os.path.join(curr_dir, 'test-object.json').replace('\', '\\'),
            'dn': 'azure-cli-deployment'
        })
>       self.kwargs['subnet_id'] = self.cmd('network vnet create -g {rg} -n vnet1 --subnet-name subnet1').get_output_in_json()['newVNet']['subnets'][0]['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:277: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:267
Failed test_resource_move self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.ResourceMoveScenarioTest testMethod=test_resource_move>
resource_group = 'cli_test_resource_move_source000002'
resource_group_dest = 'cli_test_resource_move_dest000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_dest', parameter_name='resource_group_dest', key='rg2')
    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_source', key='rg1')
    def test_resource_move(self, resource_group, resource_group_dest):
        self.kwargs.update({
            'nsg1': self.create_random_name('nsg-move', 20),
            'nsg2': self.create_random_name('nsg-move', 20)
        })
    
>       self.kwargs['nsg1_id'] = self.cmd('network nsg create -n {nsg1} -g {rg1}').get_output_in_json()['NewNSG']['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:385: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:376
Failed test_resource_policy self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.PolicyScenarioTest testMethod=test_resource_policy>
resource_group = 'cli_test_policy000001'

    @AllowLargeResponse(8192)
    @ResourceGroupPreparer(name_prefix='cli_test_policy')
    def test_resource_policy(self, resource_group):
        curr_dir = os.path.dirname(os.path.realpath(file))
    
        self.kwargs.update({
            'pn': self.create_random_name('azure-cli-test-policy', 30),
            'pdn': self.create_random_name('test_policy', 20),
            'desc': 'desc_for_test_policy_123',
            'rf': os.path.join(curr_dir, 'sample_policy_rule.json').replace('\', '\\'),
            'pdf': os.path.join(curr_dir, 'sample_policy_param_def.json').replace('\', '\\'),
            'params': os.path.join(curr_dir, 'sample_policy_param.json').replace('\', '\\'),
            'mode': 'Indexed',
        })
    
        # create a policy
        self.cmd('policy definition create -n {pn} --rules {rf} --params {pdf} --display-name {pdn} --description {desc} --mode {mode}', checks=[
            self.check('name', '{pn}'),
            self.check('displayName', '{pdn}'),
            self.check('description', '{desc}'),
            self.check('mode', '{mode}')
        ])
    
        # update it
        self.kwargs['desc'] = self.kwargs['desc'] + 'new'
        self.cmd('policy definition update -n {pn} --description {desc}', checks=[
            self.check('description', '{desc}')
        ])
    
        # list and show it
        self.cmd('policy definition list',
                 checks=self.check("length([?name=='{pn}'])", 1))
        self.cmd('policy definition show -n {pn}', checks=[
            self.check('name', '{pn}'),
            self.check('displayName', '{pdn}')
        ])
    
        # create a policy assignment on a resource group
        self.kwargs.update({
            'pan': self.create_random_name('azurecli-test-policy-assignment', 40),
            'padn': self.create_random_name('test_assignment', 20)
        })
        self.cmd('policy assignment create --policy {pn} -n {pan} --display-name {padn} -g {rg} --params {params}', checks=[
            self.check('name', '{pan}'),
            self.check('displayName', '{padn}')
        ])
    
        # create a policy assignment with not scopes and standard sku
        self.kwargs.update({
            'vnet': self.create_random_name('azurecli-test-policy-vnet', 40),
            'subnet': self.create_random_name('azurecli-test-policy-subnet', 40),
            'sub': self.get_subscription_id()
        })
    
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet}')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:452: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                         _ 

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:397
Failed test_invoke_action The error message is too long, please check the pipeline log for details. azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:520
❌3.9
Type Test Case Error Message Line
Failed test_cannotdelete_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_cannotdelete_resource_lock>
resource_group = 'cli_test_cannotdelete_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cannotdelete_resource_lock')
    def test_cannotdelete_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('CanNotDelete', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:64: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:61
Failed test_lock_commands_with_ids self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_lock_commands_with_ids>
resource_group = 'cli_test_lock_commands_with_ids000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_commands_with_ids')
    def test_lock_commands_with_ids(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        group_lock_name = self.create_random_name('cli-test-lock', 50)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('az network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:230: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:221
Failed test_lock_with_resource_id self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_lock_with_resource_id>
resource_group = 'cli_test_lock_with_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_with_resource_id')
    def test_lock_with_resource_id(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:273: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:265
Failed test_readonly_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_readonly_resource_lock>
resource_group = 'cli_test_readonly_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_readonly_resource_lock')
    def test_readonly_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('ReadOnly', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:60: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:57
Failed test_resource_lock_commands self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_locks.ResourceLockTests testMethod=test_resource_lock_commands>
resource_group = 'cli_test_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_lock')
    def test_resource_lock_commands(self, resource_group):
        rsrc_name = self.create_random_name('cli.lock.rsrc', 30)
        rsrc_type = 'Microsoft.Network/virtualNetworks'
        lock_name = self.create_random_name('cli-test-lock', 74)
        lock_type = 'CanNotDelete'
    
>       self.cmd('network vnet create -n {} -g {}'.format(rsrc_name, resource_group))

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:165: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_locks.py:157
Failed test_resource_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.ResourceScenarioTest testMethod=test_resource_scenario>
resource_group = 'cli_test_resource_scenario000001'
resource_group_location = 'southcentralus'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_scenario', location='southcentralus')
    @AllowLargeResponse()
    def test_resource_scenario(self, resource_group, resource_group_location):
        self.kwargs.update({
            'loc': resource_group_location,
            'vnet': self.create_random_name('vnet-', 30),
            'subnet': self.create_random_name('subnet-', 30),
            'rt': 'Microsoft.Network/virtualNetworks'
        })
        vnet_count = self.cmd("resource list --query "length([?name=='{vnet}'])"").get_output_in_json() or 0
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet} --tags cli-test=test')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:72: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:61
Failed test_resource_id_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.ResourceIDScenarioTest testMethod=test_resource_id_scenario>
resource_group = 'cli_test_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_id')
    def test_resource_id_scenario(self, resource_group):
    
        self.kwargs.update({
            'vnet': 'cli_test_resource_id_vnet',
            'subnet': 'cli_test_resource_id_subnet'
        })
    
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet}')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:124: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:115
Failed test_group_deployment self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.DeploymentTest testMethod=test_group_deployment>
resource_group = 'cli_test_deployment000001'

    @ResourceGroupPreparer(name_prefix='cli_test_deployment')
    def test_group_deployment(self, resource_group):
        curr_dir = os.path.dirname(os.path.realpath(file))
        self.kwargs.update({
            'tf': os.path.join(curr_dir, 'test-template.json').replace('\', '\\'),
            'params': os.path.join(curr_dir, 'test-params.json').replace('\', '\\'),
            'of': os.path.join(curr_dir, 'test-object.json').replace('\', '\\'),
            'dn': 'azure-cli-deployment'
        })
>       self.kwargs['subnet_id'] = self.cmd('network vnet create -g {rg} -n vnet1 --subnet-name subnet1').get_output_in_json()['newVNet']['subnets'][0]['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:277: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:267
Failed test_resource_move self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.ResourceMoveScenarioTest testMethod=test_resource_move>
resource_group = 'cli_test_resource_move_source000002'
resource_group_dest = 'cli_test_resource_move_dest000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_dest', parameter_name='resource_group_dest', key='rg2')
    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_source', key='rg1')
    def test_resource_move(self, resource_group, resource_group_dest):
        self.kwargs.update({
            'nsg1': self.create_random_name('nsg-move', 20),
            'nsg2': self.create_random_name('nsg-move', 20)
        })
    
>       self.kwargs['nsg1_id'] = self.cmd('network nsg create -n {nsg1} -g {rg1}').get_output_in_json()['NewNSG']['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:385: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:376
Failed test_resource_policy self = <azure.cli.command_modules.resource.tests.hybrid_2018_03_01.test_resource.PolicyScenarioTest testMethod=test_resource_policy>
resource_group = 'cli_test_policy000001'

    @AllowLargeResponse(8192)
    @ResourceGroupPreparer(name_prefix='cli_test_policy')
    def test_resource_policy(self, resource_group):
        curr_dir = os.path.dirname(os.path.realpath(file))
    
        self.kwargs.update({
            'pn': self.create_random_name('azure-cli-test-policy', 30),
            'pdn': self.create_random_name('test_policy', 20),
            'desc': 'desc_for_test_policy_123',
            'rf': os.path.join(curr_dir, 'sample_policy_rule.json').replace('\', '\\'),
            'pdf': os.path.join(curr_dir, 'sample_policy_param_def.json').replace('\', '\\'),
            'params': os.path.join(curr_dir, 'sample_policy_param.json').replace('\', '\\'),
            'mode': 'Indexed',
        })
    
        # create a policy
        self.cmd('policy definition create -n {pn} --rules {rf} --params {pdf} --display-name {pdn} --description {desc} --mode {mode}', checks=[
            self.check('name', '{pn}'),
            self.check('displayName', '{pdn}'),
            self.check('description', '{desc}'),
            self.check('mode', '{mode}')
        ])
    
        # update it
        self.kwargs['desc'] = self.kwargs['desc'] + 'new'
        self.cmd('policy definition update -n {pn} --description {desc}', checks=[
            self.check('description', '{desc}')
        ])
    
        # list and show it
        self.cmd('policy definition list',
                 checks=self.check("length([?name=='{pn}'])", 1))
        self.cmd('policy definition show -n {pn}', checks=[
            self.check('name', '{pn}'),
            self.check('displayName', '{pdn}')
        ])
    
        # create a policy assignment on a resource group
        self.kwargs.update({
            'pan': self.create_random_name('azurecli-test-policy-assignment', 40),
            'padn': self.create_random_name('test_assignment', 20)
        })
        self.cmd('policy assignment create --policy {pn} -n {pan} --display-name {padn} -g {rg} --params {params}', checks=[
            self.check('name', '{pan}'),
            self.check('displayName', '{padn}')
        ])
    
        # create a policy assignment with not scopes and standard sku
        self.kwargs.update({
            'vnet': self.create_random_name('azurecli-test-policy-vnet', 40),
            'subnet': self.create_random_name('azurecli-test-policy-subnet', 40),
            'sub': self.get_subscription_id()
        })
    
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet}')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:452: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
                           _ 

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:397
Failed test_invoke_action The error message is too long, please check the pipeline log for details. azure/cli/command_modules/resource/tests/hybrid_2018_03_01/test_resource.py:520
❌2019-03-01-hybrid
❌3.12
Type Test Case Error Message Line
Failed test_cannotdelete_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_cannotdelete_resource_lock>
resource_group = 'cli_test_cannotdelete_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cannotdelete_resource_lock')
    def test_cannotdelete_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('CanNotDelete', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:64: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                         

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:61
Failed test_lock_commands_with_ids self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_lock_commands_with_ids>
resource_group = 'cli_test_lock_commands_with_ids000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_commands_with_ids')
    def test_lock_commands_with_ids(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        group_lock_name = self.create_random_name('cli-test-lock', 50)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('az network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:230: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:221
Failed test_lock_with_resource_id self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_lock_with_resource_id>
resource_group = 'cli_test_lock_with_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_with_resource_id')
    def test_lock_with_resource_id(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:273: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:265
Failed test_readonly_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_readonly_resource_lock>
resource_group = 'cli_test_readonly_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_readonly_resource_lock')
    def test_readonly_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('ReadOnly', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:60: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                         

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:57
Failed test_resource_lock_commands self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_resource_lock_commands>
resource_group = 'cli_test_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_lock')
    def test_resource_lock_commands(self, resource_group):
        rsrc_name = self.create_random_name('cli.lock.rsrc', 30)
        rsrc_type = 'Microsoft.Network/virtualNetworks'
        lock_name = self.create_random_name('cli-test-lock', 74)
        lock_type = 'CanNotDelete'
    
>       self.cmd('network vnet create -n {} -g {}'.format(rsrc_name, resource_group))

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:165: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:157
Failed test_resource_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.ResourceScenarioTest testMethod=test_resource_scenario>
resource_group = 'cli_test_resource_scenario000001'
resource_group_location = 'southcentralus'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_scenario', location='southcentralus')
    @AllowLargeResponse()
    def test_resource_scenario(self, resource_group, resource_group_location):
        self.kwargs.update({
            'loc': resource_group_location,
            'vnet': self.create_random_name('vnet-', 30),
            'subnet': self.create_random_name('subnet-', 30),
            'rt': 'Microsoft.Network/virtualNetworks'
        })
        vnet_count = self.cmd("resource list --query "length([?name=='{vnet}'])"").get_output_in_json() or 0
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet} --tags cli-test=test')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:82: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:71
Failed test_resource_id_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.ResourceIDScenarioTest testMethod=test_resource_id_scenario>
resource_group = 'cli_test_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_id')
    def test_resource_id_scenario(self, resource_group):
    
        self.kwargs.update({
            'vnet': 'cli_test_resource_id_vnet',
            'subnet': 'cli_test_resource_id_subnet'
        })
    
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet}')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:134: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:125
Failed test_group_deployment self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.DeploymentTest testMethod=test_group_deployment>
resource_group = 'cli_test_deployment000001'

    @ResourceGroupPreparer(name_prefix='cli_test_deployment')
    def test_group_deployment(self, resource_group):
        curr_dir = os.path.dirname(os.path.realpath(file))
        self.kwargs.update({
            'tf': os.path.join(curr_dir, 'test-template.json').replace('\', '\\'),
            'params': os.path.join(curr_dir, 'test-params.json').replace('\', '\\'),
            # params-uri below is the raw file url of the test_params.json above
            'params_uri': 'https://raw.githubusercontent.com/Azure/azure-cli/dev/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test-params.json',
            'of': os.path.join(curr_dir, 'test-object.json').replace('\', '\\'),
            'dn': 'azure-cli-deployment'
        })
>       self.kwargs['subnet_id'] = self.cmd('network vnet create -g {rg} -n vnet1 --subnet-name subnet1').get_output_in_json()['newVNet']['subnets'][0]['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:386: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:374
Failed test_resource_move self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.ResourceMoveScenarioTest testMethod=test_resource_move>
resource_group = 'cli_test_resource_move_source000002'
resource_group_dest = 'cli_test_resource_move_dest000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_dest', parameter_name='resource_group_dest', key='rg2')
    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_source', key='rg1')
    def test_resource_move(self, resource_group, resource_group_dest):
        self.kwargs.update({
            'nsg1': self.create_random_name('nsg-move', 20),
            'nsg2': self.create_random_name('nsg-move', 20)
        })
    
>       self.kwargs['nsg1_id'] = self.cmd('network nsg create -n {nsg1} -g {rg1}').get_output_in_json()['NewNSG']['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:545: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:536
Failed test_invoke_action self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.InvokeActionTest testMethod=test_invoke_action>
resource_group = 'cli_test_invoke_action000001'

    @ResourceGroupPreparer(name_prefix='cli_test_invoke_action')
    def test_invoke_action(self, resource_group):
    
        self.kwargs.update({
            'vm': self.create_random_name('cli-test-vm', 30),
            'user': 'ubuntu',
            'pass': self.create_random_name('Longpassword#1', 30)
        })
    
>       self.kwargs['vm_id'] = self.cmd('vm create -g {rg} -n {vm} --use-unmanaged-disk --image Canonical:UbuntuServer:18.04-LTS:latest --admin-username {user} --admin-password {pass} --authentication-type password --nsg-rule None').get_output_in_json()['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:957: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.12/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.12/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.12/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1904: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1914: in parse_known_args
    return self.parse_known_args2(args, namespace, intermixed=False)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:1943: in parse_known_args2
    namespace, args = self.parse_known_args(args, namespace, intermixed)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2165: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2141: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2003: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2523: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/argparse.py:2637: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:947
Failed test_global_ids The error message is too long, please check the pipeline log for details. azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:968
❌3.9
Type Test Case Error Message Line
Failed test_cannotdelete_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_cannotdelete_resource_lock>
resource_group = 'cli_test_cannotdelete_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cannotdelete_resource_lock')
    def test_cannotdelete_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('CanNotDelete', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:64: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:61
Failed test_lock_commands_with_ids self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_lock_commands_with_ids>
resource_group = 'cli_test_lock_commands_with_ids000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_commands_with_ids')
    def test_lock_commands_with_ids(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        group_lock_name = self.create_random_name('cli-test-lock', 50)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('az network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:230: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:221
Failed test_lock_with_resource_id self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_lock_with_resource_id>
resource_group = 'cli_test_lock_with_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_lock_with_resource_id')
    def test_lock_with_resource_id(self, resource_group):
        vnet_name = self.create_random_name('cli-lock-vnet', 30)
        subnet_name = self.create_random_name('cli-lock-subnet', 30)
        vnet_lock_name = self.create_random_name('cli-test-lock', 50)
        subnet_lock_name = self.create_random_name('cli-test-lock', 20)
    
>       vnet = self.cmd('network vnet create -n {} -g {}'.format(vnet_name, resource_group)).get_output_in_json()

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:273: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:265
Failed test_readonly_resource_lock self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_readonly_resource_lock>
resource_group = 'cli_test_readonly_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_readonly_resource_lock')
    def test_readonly_resource_lock(self, resource_group):
>       self.lock_operation_with_resource('ReadOnly', resource_group)

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:60: 
                                        
src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:103: in lock_operation_with_resource
    self.cmd('az network vnet create -n {} -g {}'.format(rsrc_name, resource_group))
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:57
Failed test_resource_lock_commands self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_locks.ResourceLockTests testMethod=test_resource_lock_commands>
resource_group = 'cli_test_resource_lock000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_lock')
    def test_resource_lock_commands(self, resource_group):
        rsrc_name = self.create_random_name('cli.lock.rsrc', 30)
        rsrc_type = 'Microsoft.Network/virtualNetworks'
        lock_name = self.create_random_name('cli-test-lock', 74)
        lock_type = 'CanNotDelete'
    
>       self.cmd('network vnet create -n {} -g {}'.format(rsrc_name, resource_group))

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:165: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_locks.py:157
Failed test_resource_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.ResourceScenarioTest testMethod=test_resource_scenario>
resource_group = 'cli_test_resource_scenario000001'
resource_group_location = 'southcentralus'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_scenario', location='southcentralus')
    @AllowLargeResponse()
    def test_resource_scenario(self, resource_group, resource_group_location):
        self.kwargs.update({
            'loc': resource_group_location,
            'vnet': self.create_random_name('vnet-', 30),
            'subnet': self.create_random_name('subnet-', 30),
            'rt': 'Microsoft.Network/virtualNetworks'
        })
        vnet_count = self.cmd("resource list --query "length([?name=='{vnet}'])"").get_output_in_json() or 0
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet} --tags cli-test=test')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:82: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:71
Failed test_resource_id_scenario self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.ResourceIDScenarioTest testMethod=test_resource_id_scenario>
resource_group = 'cli_test_resource_id000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_id')
    def test_resource_id_scenario(self, resource_group):
    
        self.kwargs.update({
            'vnet': 'cli_test_resource_id_vnet',
            'subnet': 'cli_test_resource_id_subnet'
        })
    
>       self.cmd('network vnet create -g {rg} -n {vnet} --subnet-name {subnet}')

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:134: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:125
Failed test_group_deployment self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.DeploymentTest testMethod=test_group_deployment>
resource_group = 'cli_test_deployment000001'

    @ResourceGroupPreparer(name_prefix='cli_test_deployment')
    def test_group_deployment(self, resource_group):
        curr_dir = os.path.dirname(os.path.realpath(file))
        self.kwargs.update({
            'tf': os.path.join(curr_dir, 'test-template.json').replace('\', '\\'),
            'params': os.path.join(curr_dir, 'test-params.json').replace('\', '\\'),
            # params-uri below is the raw file url of the test_params.json above
            'params_uri': 'https://raw.githubusercontent.com/Azure/azure-cli/dev/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test-params.json',
            'of': os.path.join(curr_dir, 'test-object.json').replace('\', '\\'),
            'dn': 'azure-cli-deployment'
        })
>       self.kwargs['subnet_id'] = self.cmd('network vnet create -g {rg} -n vnet1 --subnet-name subnet1').get_output_in_json()['newVNet']['subnets'][0]['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:386: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:374
Failed test_resource_move self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.ResourceMoveScenarioTest testMethod=test_resource_move>
resource_group = 'cli_test_resource_move_source000002'
resource_group_dest = 'cli_test_resource_move_dest000001'

    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_dest', parameter_name='resource_group_dest', key='rg2')
    @ResourceGroupPreparer(name_prefix='cli_test_resource_move_source', key='rg1')
    def test_resource_move(self, resource_group, resource_group_dest):
        self.kwargs.update({
            'nsg1': self.create_random_name('nsg-move', 20),
            'nsg2': self.create_random_name('nsg-move', 20)
        })
    
>       self.kwargs['nsg1_id'] = self.cmd('network nsg create -n {nsg1} -g {rg1}').get_output_in_json()['NewNSG']['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:545: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:536
Failed test_invoke_action self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.InvokeActionTest testMethod=test_invoke_action>
resource_group = 'cli_test_invoke_action000001'

    @ResourceGroupPreparer(name_prefix='cli_test_invoke_action')
    def test_invoke_action(self, resource_group):
    
        self.kwargs.update({
            'vm': self.create_random_name('cli-test-vm', 30),
            'user': 'ubuntu',
            'pass': self.create_random_name('Longpassword#1', 30)
        })
    
>       self.kwargs['vm_id'] = self.cmd('vm create -g {rg} -n {vm} --use-unmanaged-disk --image Canonical:UbuntuServer:18.04-LTS:latest --admin-username {user} --admin-password {pass} --authentication-type password --nsg-rule None').get_output_in_json()['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:957: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:947
Failed test_global_ids self = <azure.cli.command_modules.resource.tests.hybrid_2019_03_01.test_resource.GlobalIdsScenarioTest testMethod=test_global_ids>
resource_group = 'cli_test_global_ids000001'

    @ResourceGroupPreparer(name_prefix='cli_test_global_ids')
    def test_global_ids(self, resource_group):
    
        self.kwargs.update({
            'vnet': 'vnet1'
        })
>       self.kwargs['vnet_id'] = self.cmd('network vnet create -g {rg} -n {vnet}').get_output_in_json()['newVNet']['id']

src/azure-cli/azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:975: 
                                        
src/azure-cli-testsdk/azure/cli/testsdk/base.py:176: in cmd
    return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:251: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: in in_process_execute
    self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
env/lib/python3.9/site-packages/knack/cli.py:250: in invoke
    raise ex
env/lib/python3.9/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:591: in execute
    parsed_args = self.parser.parse_args(args)
env/lib/python3.9/site-packages/knack/parser.py:261: in parse_args
    return super().parse_args(args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1825: in parse_args
    args, argv = self.parse_known_args(args, namespace)
src/azure-cli-core/azure/cli/core/parser.py:281: in parse_known_args
    self.namespace, self.raw_arguments = super().parse_known_args(args=args, namespace=namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1858: in parse_known_args
    namespace, args = self.parse_known_args(args, namespace)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2049: in parse_known_args
    positionals_end_index = consume_positionals(start_index)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2026: in consume_positionals
    take_action(action, args)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:1919: in take_action
    argument_values = self.get_values(action, argument_strings)
src/azure-cli-core/azure/cli/core/parser.py:272: in get_values
    value = super().get_values(action, arg_strings)
/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2460: in get_values
    self.check_value(action, value[0])
src/azure-cli-core/azure/cli/core/parser.py:337: in check_value
    self.exit(2)
 
 
 
 
 
 
 
 
 
 
 
                             

self = AzCliCommandParser(prog='az', usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
status = 2, message = None

    def exit(self, status=0, message=None):
        if message:
            self._print_message(message, _sys.stderr)
>       _sys.exit(status)
E       SystemExit: 2

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/argparse.py:2569: SystemExit
azure/cli/command_modules/resource/tests/hybrid_2019_03_01/test_resource.py:968
🔄storage
🔄2018-03-01-hybrid
🔄3.12
🔄3.9
🔄2019-03-01-hybrid
🔄3.12
🔄3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
🔄vm
🔄2018-03-01-hybrid
🔄3.12
🔄3.9
🔄2019-03-01-hybrid
🔄3.12
🔄3.9

Copy link

azure-client-tools-bot-prd bot commented Jan 9, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 9, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@kairu-ms kairu-ms self-assigned this Jan 9, 2025
@kairu-ms kairu-ms marked this pull request as draft January 9, 2025 08:31
@kairu-ms kairu-ms changed the title [Do not merge] Trim un core modules [Do not merge] Trim Not Core Modules Jan 9, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Core CLI core infrastructure labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Core CLI core infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants