Skip to content

Cosmos DB: add 2026-07-15 stable API client support - #34078

Closed
pjohari-ms wants to merge 3 commits into
Azure:devfrom
pjohari-ms:release/cosmos-db/clients/2026-07-15/cli-stable
Closed

pjohari-ms wants to merge 3 commits into
Azure:devfrom
pjohari-ms:release/cosmos-db/clients/2026-07-15/cli-stable

Conversation

@pjohari-ms

@pjohari-ms pjohari-ms commented Sep 15, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ❌ Action needed

Breaking Changes Tests
⚠️ None ❌ 124/130
⚠️AzureCLI-BreakingChangeTest
⚠️cosmosdb
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd cosmosdb create cmd cosmosdb create added parameter backup_retention_lock_expiration_timestamp
⚠️ 1006 - ParaAdd cosmosdb create cmd cosmosdb create added parameter enable_per_partition_automatic_failover
⚠️ 1006 - ParaAdd cosmosdb update cmd cosmosdb update added parameter backup_retention_lock_expiration_timestamp
⚠️ 1006 - ParaAdd cosmosdb update cmd cosmosdb update added parameter enable_per_partition_automatic_failover
❌AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.14
️✔️acs
️✔️latest
️✔️3.12
️✔️3.14
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.14
️✔️ams
️✔️latest
️✔️3.12
️✔️3.14
️✔️apim
️✔️latest
️✔️3.12
️✔️3.14
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.14
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️aro
️✔️latest
️✔️3.12
️✔️3.14
️✔️backup
️✔️latest
️✔️3.12
️✔️3.14
️✔️batch
️✔️latest
️✔️3.12
️✔️3.14
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.14
️✔️billing
️✔️latest
️✔️3.12
️✔️3.14
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.14
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.14
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.14
️✔️config
️✔️latest
️✔️3.12
️✔️3.14
️✔️configure
️✔️latest
️✔️3.12
️✔️3.14
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.14
️✔️container
️✔️latest
️✔️3.12
️✔️3.14
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.14
️✔️core
️✔️latest
️✔️3.12
️✔️3.14
❌cosmosdb
❌latest
❌3.12
Type Test Case Error Message Line
Failed test_cosmosdb_burst_capacity self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f1c1b5f8e60>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f1c1c770290>
command = 'cosmosdb create -n burst-test-000002 -g cli_test_cosmosdb_burst_capacity000001 --disable-local-auth true --enable-burst-capacity'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.cosmosdb.tests.latest.test_cosmosdb-burst-capacity-scenario.CosmosdbBurstCapacityScenarioTest testMethod=test_cosmosdb_burst_capacity>
resource_group = 'cli_test_cosmosdb_burst_capacity000001'

    @AllowLargeResponse()
    @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_burst_capacity', location='australiaeast')
    def test_cosmosdb_burst_capacity(self, resource_group):
        self.kwargs.update({
            'acc': self.create_random_name(prefix='burst-test-', length=20),
            'loc': 'australiaeast',
            'tar': '0=1200 1=1200',
            'src': '2'
        })
    
        #create burst capacity enabled account
>       self.cmd('az cosmosdb create -n {acc} -g {rg} --disable-local-auth true --enable-burst-capacity')

src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-burst-capacity-scenario.py:26: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7f1c1a7e8950>
args = ()
kwargs = {'location': 'australiaeast', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-burst-capacity-scenario.py:14
Failed test_cosmosdb_per_partition_automatic_failover self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f1c1b401cd0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f1c1cba4590>
command = 'group create --location southcentralus --name cli_test_cosmosdb_ppafdkzjyhfxw732glir3c34emqeelowguy4ezl63k6fbodaj56up...li cause=automation test date=2026-09-15T00:38:59Z test=test_cosmosdb_per_partition_automatic_failover module=cosmosdb'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = CLIError("Please run 'az login' to setup account."), args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception CLIError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/decorators.py:40: in preparer_wrapper
    fn(test_class_instance, **kwargs)
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/preparers.py:39: in preparer_wrapper
    parameter_update = self.create_resource(
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:99: in create_resource
    self.live_only_execute(self.cli_ctx, template.format(self.location, name))
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:39: in live_only_execute
    return self.raw_execute(cli_ctx, command, expect_failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/custom.py:1642: in create_resource_group
    rcf = resource_client_factory(cmd.cli_ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/client_factory.py:10: in resource_client_factory
    return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/client_factory.py:83: in get_mgmt_service_client
    client, 
 = get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
src/azure-cli-core/azure/cli/core/commands/client_factory.py:234: in get_mgmt_service_client
    credential, subscription_id, 
 = profile.get_login_credentials(
src/azure-cli-core/azure/cli/core/profile.py:342: in get_login_credentials
    account = self.get_subscription(subscription_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = <azure.cli.core._profile.Profile object at 0x7f1c1a8f5dc0>
subscription = None

    def get_subscription(self, subscription=None):  # take id or name
        subscriptions = self.load_cached_subscriptions()
        if not subscriptions:
>           raise CLIError(_AZ_LOGIN_MESSAGE)
E           knack.util.CLIError: Please run 'az login' to setup account.

src/azure-cli-core/azure/cli/core/_profile.py:608: CLIError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-ppaf-scenario.py:11
Failed test_cosmosdb_retention_lock self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f1c1b401f70>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f1c1c395a00>
command = 'group create --location westus --name cli_test_cosmosdb_retention_lockljdtvsyfqrmc35kgbmhvlkcrpyuue6oiuuzvzzcirn4 --tag product=azurecli cause=automation test date=2026-09-15T00:39:00Z test=test_cosmosdb_retention_lock module=cosmosdb'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = CLIError("Please run 'az login' to setup account."), args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception CLIError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/decorators.py:40: in preparer_wrapper
    fn(test_class_instance, **kwargs)
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/preparers.py:39: in preparer_wrapper
    parameter_update = self.create_resource(
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:99: in create_resource
    self.live_only_execute(self.cli_ctx, template.format(self.location, name))
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:39: in live_only_execute
    return self.raw_execute(cli_ctx, command, expect_failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/custom.py:1642: in create_resource_group
    rcf = resource_client_factory(cmd.cli_ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/client_factory.py:10: in resource_client_factory
    return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/client_factory.py:83: in get_mgmt_service_client
    client, 
 = get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
src/azure-cli-core/azure/cli/core/commands/client_factory.py:234: in get_mgmt_service_client
    credential, subscription_id, 
 = profile.get_login_credentials(
src/azure-cli-core/azure/cli/core/profile.py:342: in get_login_credentials
    account = self.get_subscription(subscription_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = <azure.cli.core._profile.Profile object at 0x7f1c1a8f6030>
subscription = None

    def get_subscription(self, subscription=None):  # take id or name
        subscriptions = self.load_cached_subscriptions()
        if not subscriptions:
>           raise CLIError(_AZ_LOGIN_MESSAGE)
E           knack.util.CLIError: Please run 'az login' to setup account.

src/azure-cli-core/azure/cli/core/_profile.py:608: CLIError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-retention-lock-scenario.py:11
Failed test_cosmosdb_throughput_buckets_stable_api self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f1c1b401fd0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f1c1d227bf0>
command = 'group create --location westus --name cli_test_cosmosdb_throughput_bucketsyyumxtjvgg5ma7vz2kumqknuhnkagap6olbchdp --t...recli cause=automation test date=2026-09-15T00:39:01Z test=test_cosmosdb_throughput_buckets_stable_api module=cosmosdb'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = CLIError("Please run 'az login' to setup account."), args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception CLIError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/preparers.py:39: in preparer_wrapper
    parameter_update = self.create_resource(
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:99: in create_resource
    self.live_only_execute(self.cli_ctx, template.format(self.location, name))
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:39: in live_only_execute
    return self.raw_execute(cli_ctx, command, expect_failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/custom.py:1642: in create_resource_group
    rcf = resource_client_factory(cmd.cli_ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/client_factory.py:10: in resource_client_factory
    return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/client_factory.py:83: in get_mgmt_service_client
    client, 
 = get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
src/azure-cli-core/azure/cli/core/commands/client_factory.py:234: in get_mgmt_service_client
    credential, subscription_id, 
 = profile.get_login_credentials(
src/azure-cli-core/azure/cli/core/profile.py:342: in get_login_credentials
    account = self.get_subscription(subscription_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
 
 
 
 
 
 
 
 
 
                           _ 

self = <azure.cli.core._profile.Profile object at 0x7f1c1a8fdbe0>
subscription = None

    def get_subscription(self, subscription=None):  # take id or name
        subscriptions = self.load_cached_subscriptions()
        if not subscriptions:
>           raise CLIError(_AZ_LOGIN_MESSAGE)
E           knack.util.CLIError: Please run 'az login' to setup account.

src/azure-cli-core/azure/cli/core/_profile.py:608: CLIError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-throughput-buckets-scenario.py:12
Failed test_cosmosdb_public_network_access_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:319
Failed test_cosmosdb_sql_continuous30days The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:52
Failed test_cosmosdb_sql_continuous7days The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:18
Failed test_cosmosdb_sql_migrate_periodic_to_continuous7days The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:88
Failed test_cosmosdb_sql_oldestRestorableTime The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:133
Failed test_normal_create_does_not_suppress_error The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:662
Failed test_normal_create_success The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:686
Failed test_restore_handles_forbidden_error The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:588
Failed test_restore_raises_other_errors The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:637
Failed test_check_name_exists_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:153
Failed test_cosmosdb_analytical_storage_schema_type_on_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:17
Failed test_cosmosdb_analytical_storage_schema_type_on_update The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:29
Failed test_cosmosdb_cassandra_keyspace The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1006
Failed test_cosmosdb_cassandra_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1491
Failed test_cosmosdb_cassandra_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1307
Failed test_cosmosdb_cassandra_table The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1034
Failed test_cosmosdb_deleted_account_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2183
Failed test_cosmosdb_gremlin_account_restore_command The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2524
Failed test_cosmosdb_gremlin_account_restore_using_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2484
Failed test_cosmosdb_gremlin_database The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1072
Failed test_cosmosdb_gremlin_graph The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1100
Failed test_cosmosdb_gremlin_graph_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2737
Failed test_cosmosdb_gremlin_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1521
Failed test_cosmosdb_gremlin_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1354
Failed test_cosmosdb_gremlin_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2565
Failed test_cosmosdb_mongodb_collection The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:954
Failed test_cosmosdb_mongodb_collection_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2412
Failed test_cosmosdb_mongodb_database The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:926
Failed test_cosmosdb_mongodb_normal_database_prov_collection_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3343
Failed test_cosmosdb_mongodb_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1461
Failed test_cosmosdb_mongodb_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1260
Failed test_cosmosdb_mongodb_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2285
Failed test_cosmosdb_mongodb_role The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1713
Failed test_cosmosdb_mongodb_shared_database_prov_collection_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3463
Failed test_cosmosdb_network_acl_bypass The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:487
Failed test_cosmosdb_network_rule_add The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:363
Failed test_cosmosdb_network_rule_list The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:340
Failed test_cosmosdb_network_rule_remove The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:391
Failed test_cosmosdb_private_endpoint The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:431
Failed test_cosmosdb_private_link_resource The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:419
Failed test_cosmosdb_restore_command The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2104
Failed test_cosmosdb_restore_using_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2062
Failed test_cosmosdb_service The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2891
Failed test_cosmosdb_sql_container The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:621
Failed test_cosmosdb_sql_container_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2342
Failed test_cosmosdb_sql_database The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:593
Failed test_cosmosdb_sql_normal_database_prov_container_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3084
Failed test_cosmosdb_sql_normal_database_prov_container_restore_nt The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3168
Failed test_cosmosdb_sql_normal_database_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2912
Failed test_cosmosdb_sql_resource_max_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1431
Failed test_cosmosdb_sql_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1183
Failed test_cosmosdb_sql_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1213
Failed test_cosmosdb_sql_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2232
Failed test_cosmosdb_sql_shared_database_prov_container_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3258
Failed test_cosmosdb_sql_shared_database_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2975
Failed test_cosmosdb_sql_stored_procedure The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:800
Failed test_cosmosdb_sql_trigger The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:880
Failed test_cosmosdb_sql_user_defined_function The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:840
Failed test_cosmosdb_table The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3702
Failed test_cosmosdb_table_account_restore_command The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2655
Failed test_cosmosdb_table_account_restore_using_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2617
Failed test_cosmosdb_table_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2802
Failed test_cosmosdb_table_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1555
Failed test_cosmosdb_table_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1401
Failed test_cosmosdb_table_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2696
Failed test_create_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:42
Failed test_delete_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:143
Failed test_enable_multiple_write_locations The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:306
Failed test_list_database_accounts The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:206
Failed test_locations_both_formats_database_accounts The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:286
Failed test_locations_database_accounts The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:220
Failed test_locations_database_accounts_offline The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:256
Failed test_update_backup_policy_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2040
Failed test_cosmosdb_fleet_fleetspace_fleetspaceAccount The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_fleet_fleetspace_fleetspaceAccount_scenario.py:13
Failed test_cosmosdb_priority_based_execution The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_priority_based_execution_scenario.py:14
Failed test_cosmosdb_enable_per_region_per_partition_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_prpp_autoscale_scenario.py:14
❌3.14
Type Test Case Error Message Line
Failed test_cosmosdb_burst_capacity self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f0770395400>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f077216e210>
command = 'cosmosdb create -n burst-test-000002 -g cli_test_cosmosdb_burst_capacity000001 --disable-local-auth true --enable-burst-capacity'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.cosmosdb.tests.latest.test_cosmosdb-burst-capacity-scenario.CosmosdbBurstCapacityScenarioTest testMethod=test_cosmosdb_burst_capacity>
resource_group = 'cli_test_cosmosdb_burst_capacity000001'

    @AllowLargeResponse()
    @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_burst_capacity', location='australiaeast')
    def test_cosmosdb_burst_capacity(self, resource_group):
        self.kwargs.update({
            'acc': self.create_random_name(prefix='burst-test-', length=20),
            'loc': 'australiaeast',
            'tar': '0=1200 1=1200',
            'src': '2'
        })
    
        #create burst capacity enabled account
>       self.cmd('az cosmosdb create -n {acc} -g {rg} --disable-local-auth true --enable-burst-capacity')

src/azure-cli/azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-burst-capacity-scenario.py:26: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7f076eefaba0>
args = ()
kwargs = {'location': 'australiaeast', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-burst-capacity-scenario.py:14
Failed test_cosmosdb_per_partition_automatic_failover self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f0770395400>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f077216d090>
command = 'group create --location southcentralus --name cli_test_cosmosdb_ppafsmneymszugsnbqsq2gxavdkbgsadkhknhuls6nzd2g6iz3fnr...li cause=automation test date=2026-09-15T00:38:26Z test=test_cosmosdb_per_partition_automatic_failover module=cosmosdb'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = CLIError("Please run 'az login' to setup account."), args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception CLIError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/decorators.py:40: in preparer_wrapper
    fn(test_class_instance, **kwargs)
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/preparers.py:39: in preparer_wrapper
    parameter_update = self.create_resource(
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:99: in create_resource
    self.live_only_execute(self.cli_ctx, template.format(self.location, name))
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:39: in live_only_execute
    return self.raw_execute(cli_ctx, command, expect_failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/custom.py:1642: in create_resource_group
    rcf = resource_client_factory(cmd.cli_ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/client_factory.py:10: in resource_client_factory
    return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/client_factory.py:83: in get_mgmt_service_client
    client, 
 = get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
src/azure-cli-core/azure/cli/core/commands/client_factory.py:234: in get_mgmt_service_client
    credential, subscription_id, 
 = profile.get_login_credentials(
src/azure-cli-core/azure/cli/core/profile.py:342: in get_login_credentials
    account = self.get_subscription(subscription_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = <azure.cli.core._profile.Profile object at 0x7f077b3fd940>
subscription = None

    def get_subscription(self, subscription=None):  # take id or name
        subscriptions = self.load_cached_subscriptions()
        if not subscriptions:
>           raise CLIError(_AZ_LOGIN_MESSAGE)
E           knack.util.CLIError: Please run 'az login' to setup account.

src/azure-cli-core/azure/cli/core/_profile.py:608: CLIError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-ppaf-scenario.py:11
Failed test_cosmosdb_retention_lock self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f0770395400>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f07725d8050>
command = 'group create --location westus --name cli_test_cosmosdb_retention_lock2hq6tuswujtatg5rwcfsevqx72be4y3ledrgjpgleey --tag product=azurecli cause=automation test date=2026-09-15T00:38:26Z test=test_cosmosdb_retention_lock module=cosmosdb'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = CLIError("Please run 'az login' to setup account."), args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception CLIError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/decorators.py:40: in preparer_wrapper
    fn(test_class_instance, **kwargs)
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/preparers.py:39: in preparer_wrapper
    parameter_update = self.create_resource(
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:99: in create_resource
    self.live_only_execute(self.cli_ctx, template.format(self.location, name))
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:39: in live_only_execute
    return self.raw_execute(cli_ctx, command, expect_failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/custom.py:1642: in create_resource_group
    rcf = resource_client_factory(cmd.cli_ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/client_factory.py:10: in resource_client_factory
    return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/client_factory.py:83: in get_mgmt_service_client
    client, 
 = get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
src/azure-cli-core/azure/cli/core/commands/client_factory.py:234: in get_mgmt_service_client
    credential, subscription_id, 
 = profile.get_login_credentials(
src/azure-cli-core/azure/cli/core/profile.py:342: in get_login_credentials
    account = self.get_subscription(subscription_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
 
 
 
 
 
 
 
 
 
 
                           

self = <azure.cli.core._profile.Profile object at 0x7f077b3fd940>
subscription = None

    def get_subscription(self, subscription=None):  # take id or name
        subscriptions = self.load_cached_subscriptions()
        if not subscriptions:
>           raise CLIError(_AZ_LOGIN_MESSAGE)
E           knack.util.CLIError: Please run 'az login' to setup account.

src/azure-cli-core/azure/cli/core/_profile.py:608: CLIError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-retention-lock-scenario.py:11
Failed test_cosmosdb_throughput_buckets_stable_api self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f0770395400>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f077216f250>
command = 'group create --location westus --name cli_test_cosmosdb_throughput_buckets6kpuzuvf556z5lie4h5nlekolfy7vlc7mvhwxf4 --t...recli cause=automation test date=2026-09-15T00:38:27Z test=test_cosmosdb_throughput_buckets_stable_api module=cosmosdb'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = CLIError("Please run 'az login' to setup account."), args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception CLIError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:
src/azure-cli-testsdk/azure/cli/testsdk/scenario_tests/preparers.py:39: in preparer_wrapper
    parameter_update = self.create_resource(
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:99: in create_resource
    self.live_only_execute(self.cli_ctx, template.format(self.location, name))
src/azure-cli-testsdk/azure/cli/testsdk/preparers.py:39: in live_only_execute
    return self.raw_execute(cli_ctx, command, expect_failure)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-testsdk/azure/cli/testsdk/base.py:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/custom.py:1642: in create_resource_group
    rcf = resource_client_factory(cmd.cli_ctx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/resource/client_factory.py:10: in resource_client_factory
    return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/client_factory.py:83: in get_mgmt_service_client
    client, 
 = get_mgmt_service_client(cli_ctx, client_type, subscription_id=subscription_id,
src/azure-cli-core/azure/cli/core/commands/client_factory.py:234: in get_mgmt_service_client
    credential, subscription_id, 
 = profile.get_login_credentials(
src/azure-cli-core/azure/cli/core/profile.py:342: in get_login_credentials
    account = self.get_subscription(subscription_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 
 
 
 
 
 
 
 
 
 
 
                           _ 

self = <azure.cli.core._profile.Profile object at 0x7f077b3fd940>
subscription = None

    def get_subscription(self, subscription=None):  # take id or name
        subscriptions = self.load_cached_subscriptions()
        if not subscriptions:
>           raise CLIError(_AZ_LOGIN_MESSAGE)
E           knack.util.CLIError: Please run 'az login' to setup account.

src/azure-cli-core/azure/cli/core/_profile.py:608: CLIError
azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb-throughput-buckets-scenario.py:12
Failed test_cosmosdb_public_network_access_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:319
Failed test_cosmosdb_sql_continuous30days The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:52
Failed test_cosmosdb_sql_continuous7days The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:18
Failed test_cosmosdb_sql_migrate_periodic_to_continuous7days The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:88
Failed test_cosmosdb_sql_oldestRestorableTime The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:133
Failed test_normal_create_does_not_suppress_error The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:662
Failed test_normal_create_success The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:686
Failed test_restore_handles_forbidden_error The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:588
Failed test_restore_raises_other_errors The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_backuprestore_scenario.py:637
Failed test_check_name_exists_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:153
Failed test_cosmosdb_analytical_storage_schema_type_on_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:17
Failed test_cosmosdb_analytical_storage_schema_type_on_update The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:29
Failed test_cosmosdb_cassandra_keyspace The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1006
Failed test_cosmosdb_cassandra_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1491
Failed test_cosmosdb_cassandra_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1307
Failed test_cosmosdb_cassandra_table The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1034
Failed test_cosmosdb_deleted_account_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2183
Failed test_cosmosdb_gremlin_account_restore_command The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2524
Failed test_cosmosdb_gremlin_account_restore_using_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2484
Failed test_cosmosdb_gremlin_database The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1072
Failed test_cosmosdb_gremlin_graph The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1100
Failed test_cosmosdb_gremlin_graph_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2737
Failed test_cosmosdb_gremlin_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1521
Failed test_cosmosdb_gremlin_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1354
Failed test_cosmosdb_gremlin_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2565
Failed test_cosmosdb_mongodb_collection The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:954
Failed test_cosmosdb_mongodb_collection_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2412
Failed test_cosmosdb_mongodb_database The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:926
Failed test_cosmosdb_mongodb_normal_database_prov_collection_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3343
Failed test_cosmosdb_mongodb_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1461
Failed test_cosmosdb_mongodb_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1260
Failed test_cosmosdb_mongodb_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2285
Failed test_cosmosdb_mongodb_role The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1713
Failed test_cosmosdb_mongodb_shared_database_prov_collection_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3463
Failed test_cosmosdb_network_acl_bypass The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:487
Failed test_cosmosdb_network_rule_add The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:363
Failed test_cosmosdb_network_rule_list The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:340
Failed test_cosmosdb_network_rule_remove The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:391
Failed test_cosmosdb_private_endpoint The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:431
Failed test_cosmosdb_private_link_resource The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:419
Failed test_cosmosdb_restore_command The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2104
Failed test_cosmosdb_restore_using_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2062
Failed test_cosmosdb_service The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2891
Failed test_cosmosdb_sql_container The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:621
Failed test_cosmosdb_sql_container_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2342
Failed test_cosmosdb_sql_database The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:593
Failed test_cosmosdb_sql_normal_database_prov_container_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3084
Failed test_cosmosdb_sql_normal_database_prov_container_restore_nt The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3168
Failed test_cosmosdb_sql_normal_database_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2912
Failed test_cosmosdb_sql_resource_max_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1431
Failed test_cosmosdb_sql_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1183
Failed test_cosmosdb_sql_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1213
Failed test_cosmosdb_sql_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2232
Failed test_cosmosdb_sql_shared_database_prov_container_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3258
Failed test_cosmosdb_sql_shared_database_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2975
Failed test_cosmosdb_sql_stored_procedure The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:800
Failed test_cosmosdb_sql_trigger The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:880
Failed test_cosmosdb_sql_user_defined_function The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:840
Failed test_cosmosdb_table The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:3702
Failed test_cosmosdb_table_account_restore_command The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2655
Failed test_cosmosdb_table_account_restore_using_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2617
Failed test_cosmosdb_table_backupinfo The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2802
Failed test_cosmosdb_table_resource_throughput The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1555
Failed test_cosmosdb_table_resource_throughput_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:1401
Failed test_cosmosdb_table_restorable_commands The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2696
Failed test_create_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:42
Failed test_delete_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:143
Failed test_enable_multiple_write_locations The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:306
Failed test_list_database_accounts The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:206
Failed test_locations_both_formats_database_accounts The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:286
Failed test_locations_database_accounts The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:220
Failed test_locations_database_accounts_offline The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:256
Failed test_update_backup_policy_database_account The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_commands.py:2040
Failed test_cosmosdb_fleet_fleetspace_fleetspaceAccount The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_fleet_fleetspace_fleetspaceAccount_scenario.py:13
Failed test_cosmosdb_priority_based_execution The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_priority_based_execution_scenario.py:14
Failed test_cosmosdb_enable_per_region_per_partition_autoscale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/cosmosdb/tests/latest/test_cosmosdb_prpp_autoscale_scenario.py:14
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.14
️✔️dls
️✔️latest
️✔️3.12
️✔️3.14
️✔️dms
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.14
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.14
️✔️find
️✔️latest
️✔️3.12
️✔️3.14
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.14
️✔️identity
️✔️latest
️✔️3.12
️✔️3.14
️✔️iot
️✔️latest
️✔️3.12
️✔️3.14
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.14
️✔️lab
️✔️latest
️✔️3.12
️✔️3.14
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️maps
️✔️latest
️✔️3.12
️✔️3.14
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.14
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.14
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.14
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.14
❌network
❌latest
❌3.12
Type Test Case Error Message Line
Failed test_private_endpoint_connection_cosmosdb self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fede0f29490>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fede2799cd0>
command = 'cosmosdb create -n cli-test-cosmosdb-pe-000002 -g cli_test_cosmosdb_pe000001 --public-network-access "DISABLED"'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.network.tests.latest.test_private_endpoint_commands.NetworkPrivateLinkCosmosDBScenarioTest testMethod=test_private_endpoint_connection_cosmosdb>
resource_group = 'cli_test_cosmosdb_pe000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_pe')
    def test_private_endpoint_connection_cosmosdb(self, resource_group):
        self.kwargs.update({
            'acc': self.create_random_name('cli-test-cosmosdb-pe-', 28),
            'loc': 'eastus',
            'vnet': self.create_random_name('cli-vnet-', 24),
            'subnet': self.create_random_name('cli-subnet-', 24),
            'pe': self.create_random_name('cli-pe-', 24),
            'pe_connection': self.create_random_name('cli-pec-', 24)
        })
    
        # Prepare cosmos db account and network
>       account = self.cmd('az cosmosdb create -n {acc} -g {rg} --public-network-access "DISABLED"').get_output_in_json()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1040: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7fede07e3ec0>
args = ()
kwargs = {'location': 'westus', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1027
Failed test_private_link_resource_cosmosdb self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fede0f29490>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fede1411cd0>
command = 'cosmosdb create -n cli-test-cosmosdb-plr-000002 -g cli_test_cosmosdb_plr000001'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.network.tests.latest.test_private_endpoint_commands.NetworkPrivateLinkCosmosDBScenarioTest testMethod=test_private_link_resource_cosmosdb>
resource_group = 'cli_test_cosmosdb_plr000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_plr')
    def test_private_link_resource_cosmosdb(self, resource_group):
        self.kwargs.update({
            'acc': self.create_random_name('cli-test-cosmosdb-plr-', 28),
            'loc': 'eastus'
        })
    
>       self.cmd('az cosmosdb create -n {acc} -g {rg}')

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1023: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7fede078a1e0>
args = ()
kwargs = {'location': 'westus', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1015
❌3.14
Type Test Case Error Message Line
Failed test_private_endpoint_connection_cosmosdb self = <azure.cli.testsdk.base.ExecutionResult object at 0x7ffa337f8190>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7ffa3239cb90>
command = 'cosmosdb create -n cli-test-cosmosdb-pe-000002 -g cli_test_cosmosdb_pe000001 --public-network-access "DISABLED"'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.network.tests.latest.test_private_endpoint_commands.NetworkPrivateLinkCosmosDBScenarioTest testMethod=test_private_endpoint_connection_cosmosdb>
resource_group = 'cli_test_cosmosdb_pe000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_pe')
    def test_private_endpoint_connection_cosmosdb(self, resource_group):
        self.kwargs.update({
            'acc': self.create_random_name('cli-test-cosmosdb-pe-', 28),
            'loc': 'eastus',
            'vnet': self.create_random_name('cli-vnet-', 24),
            'subnet': self.create_random_name('cli-subnet-', 24),
            'pe': self.create_random_name('cli-pe-', 24),
            'pe_connection': self.create_random_name('cli-pec-', 24)
        })
    
        # Prepare cosmos db account and network
>       account = self.cmd('az cosmosdb create -n {acc} -g {rg} --public-network-access "DISABLED"').get_output_in_json()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1040: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7ffa31d0de80>
args = ()
kwargs = {'location': 'westus', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1027
Failed test_private_link_resource_cosmosdb self = <azure.cli.testsdk.base.ExecutionResult object at 0x7ffa34141810>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7ffa3239d6d0>
command = 'cosmosdb create -n cli-test-cosmosdb-plr-000002 -g cli_test_cosmosdb_plr000001'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.network.tests.latest.test_private_endpoint_commands.NetworkPrivateLinkCosmosDBScenarioTest testMethod=test_private_link_resource_cosmosdb>
resource_group = 'cli_test_cosmosdb_plr000001'

    @ResourceGroupPreparer(name_prefix='cli_test_cosmosdb_plr')
    def test_private_link_resource_cosmosdb(self, resource_group):
        self.kwargs.update({
            'acc': self.create_random_name('cli-test-cosmosdb-plr-', 28),
            'loc': 'eastus'
        })
    
>       self.cmd('az cosmosdb create -n {acc} -g {rg}')

src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1023: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7ffa31d61be0>
args = ()
kwargs = {'location': 'westus', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1015
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.14
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.14
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.14
️✔️profile
️✔️latest
️✔️3.12
️✔️3.14
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.14
️✔️redis
️✔️latest
️✔️3.12
️✔️3.14
️✔️relay
️✔️latest
️✔️3.12
️✔️3.14
️✔️resource
️✔️latest
️✔️3.12
️✔️3.14
️✔️role
️✔️latest
️✔️3.12
️✔️3.14
️✔️search
️✔️latest
️✔️3.12
️✔️3.14
❌security
❌latest
❌3.12
Type Test Case Error Message Line
Failed test_security_cosmosdb_atp_settings self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f5ca21b9b20>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f5ca23e9dc0>
command = 'cosmosdb create -n cli000002 -g clitest.rg000001'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.12/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.security.tests.latest.test_atp_scenario.SecurityAtpSettingsTests testMethod=test_security_cosmosdb_atp_settings>
resource_group = 'clitest.rg000001'

    @ResourceGroupPreparer()
    def test_security_cosmosdb_atp_settings(self, resource_group):
        cosmosdb_account_name = self.create_random_name(prefix='cli', length=40)
>       self.cmd(f"az cosmosdb create -n {cosmosdb_account_name} -g {resource_group}")

src/azure-cli/azure/cli/command_modules/security/tests/latest/test_atp_scenario.py:19: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
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:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7f5ca11521b0>
args = ()
kwargs = {'location': 'westus', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.12/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
azure/cli/command_modules/security/tests/latest/test_atp_scenario.py:15
❌3.14
Type Test Case Error Message Line
Failed test_security_cosmosdb_atp_settings self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f7a8226fcb0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f7a83ffbd90>
command = 'cosmosdb create -n cli000002 -g clitest.rg000001'
expect_failure = False

    def in_process_execute(self, cli_ctx, command, expect_failure=False):
        from io import StringIO
        from vcr.errors import CannotOverwriteExistingCassetteException
    
        if command.startswith('az '):
            command = command[3:]
    
        stdout_buf = StringIO()
        logging_buf = StringIO()
        try:
            # issue: stderr cannot be redirect in this form, as a result some failure information
            # is lost when command fails.
>           self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/azure-cli-testsdk/azure/cli/testsdk/base.py:303: 
                                        
env/lib/python3.14/site-packages/knack/cli.py:245: in invoke
    exit_code = self.exception_handler(ex)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/init.py:153: in exception_handler
    return handle_exception(ex)
           ^^^^^^^^^^^^^^^^^^^^
                                        

ex = TypeError("DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'")
args = (), kwargs = {}

    def handle_main_exception(ex, *args, **kwargs):  # pylint: disable=unused-argument
        if isinstance(ex, CannotOverwriteExistingCassetteException):
            # This exception usually caused by a no match HTTP request. This is a product error
            # that is caused by change of SDK invocation.
            raise ex
    
>       raise CliExecutionError(ex)
E       azure.cli.testsdk.exceptions.CliExecutionError: The CLI throws exception TypeError during execution and fails the command.

src/azure-cli-testsdk/azure/cli/testsdk/patches.py:35: CliExecutionError

During handling of the above exception, another exception occurred:

self = <azure.cli.command_modules.security.tests.latest.test_atp_scenario.SecurityAtpSettingsTests testMethod=test_security_cosmosdb_atp_settings>
resource_group = 'clitest.rg000001'

    @ResourceGroupPreparer()
    def test_security_cosmosdb_atp_settings(self, resource_group):
        cosmosdb_account_name = self.create_random_name(prefix='cli', length=40)
>       self.cmd(f"az cosmosdb create -n {cosmosdb_account_name} -g {resource_group}")

src/azure-cli/azure/cli/command_modules/security/tests/latest/test_atp_scenario.py:19: 
 
                                       
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
    self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
src/azure-cli-testsdk/azure/cli/testsdk/base.py:315: in in_process_execute
    raise ex.exception
env/lib/python3.14/site-packages/knack/cli.py:233: in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:677: in execute
    raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:820: in run_jobs_serially
    results.append(self.run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:789: in run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/init.py:335: in call
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:174: in cli_cosmosdb_create
    return create_database_account(client=client,
src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py:407: in create_database_account
    params = DatabaseAccountCreateUpdateParameters(
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:3472: in init
    super().init(*args, **kwargs)
env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/models/models.py:180: in init
    super().init(*args, **kwargs)
 
 
 
 
 
 
 
 
                               _ 

self = <[AttributeError("'DatabaseAccountCreateUpdateParameters' object has no attribute '_data'") raised in repr()] DatabaseAccountCreateUpdateParameters object at 0x7f7a82ecb8c0>
args = ()
kwargs = {'location': 'westus', 'tags': None, 'kind': 'GlobalDocumentDB', 'identity': None, ...}

    def init(self, *args: typing.Any, **kwargs: typing.Any) -> None:
        class_name = self.class.name
        if len(args) > 1:
            raise TypeError(f"{class_name}.init() takes 2 positional arguments but {len(args) + 1} were given")
        dict_to_pass: dict[str, typing.Any] = {}
        if args:
            if isinstance(args[0], ET.Element):
                dict_to_pass.update(self._init_from_xml(args[0]))
            else:
                dict_to_pass.update(
                    {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()}
                )
        else:
            non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field]
            if non_attr_kwargs:
                # actual type errors only throw the first wrong keyword arg they see, so following that.
>               raise TypeError(f"{class_name}.init() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E               TypeError: DatabaseAccountCreateUpdateParameters.init() got an unexpected keyword argument 'per_partition_automatic_failover_enabled'

env/lib/python3.14/site-packages/azure/mgmt/cosmosdb/_utils/model_base.py:881: TypeError
azure/cli/command_modules/security/tests/latest/test_atp_scenario.py:15
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.14
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.14
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.14
️✔️sql
️✔️latest
️✔️3.12
️✔️3.14
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.14
️✔️storage
️✔️latest
️✔️3.12
️✔️3.14
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.14
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.14
️✔️util
️✔️latest
️✔️3.12
️✔️3.14
️✔️vm
️✔️latest
️✔️3.12
️✔️3.14

Summary

  • add --enable-per-partition-automatic-failover to Cosmos DB account create/update
  • add --backup-retention-lock-expiration-timestamp for continuous backup policies while preserving omission and existing-policy semantics
  • add stable 2026-07-15 help and scenario coverage for throughput buckets without introducing a new CLI argument

API and SDK provenance

Validation

  • compiled all touched Python files
  • validated argument/body flow with Python AST checks
  • validated edited help documents as YAML
  • validated exact-head SDK serialization for PPAF true/false/omitted values, retention timestamps/omission, and throughput buckets
  • ran errors-only pylint on touched files with sparse-profile import/inference diagnostics excluded: 10.00/10
  • verified each feature patch exactly matches its corresponding commit
  • verified the branch is three commits ahead of the frozen base and the worktree is clean

Before merge

  • publish or otherwise provide a uniquely consumable azure-mgmt-cosmosdb package for the exact spec head; the generated package currently reuses version 10.0.0, which collides with the existing CLI pin
  • update the CLI dependency lock to that package
  • run native azdev style cosmosdb and azdev linter cosmosdb in a full Azure CLI development environment
  • run and record the three new scenario tests

The PR is intentionally draft while these dependency and recording gates remain open. No live recordings are included or claimed.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@yonzhan

Copy link
Copy Markdown
Collaborator

Cosmos DB

@pjohari-ms

Copy link
Copy Markdown
Member Author

Superseded by the maintainer release stack: SDK/version-only parent PR #34084, with independent feature PRs pjohari-ms#6, #7, and #8 targeting its branch. This aggregate PR mixed SDK setup and selected feature delivery, so it is intentionally closed without merge.

@pjohari-ms pjohari-ms closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants