Skip to content

az oracle-database autonomous-database subcommands fail with python traceback #9885

Description

@breaknix

Describe the bug

Multiple az oracle-database autonomous-database subcommands fail with python traceback.

Depending on the command different python package scripts are failing:

show : ....azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_show.py
action : ....azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_action.py

Other commands also might be affected.

Related command

az oracle-database autonomous-database show
az oracle-database autonomous-database action
possibly more

Errors

az oracle-database autonomous-database show (XXX was used to remove sensitive parts from the path)

The command failed with an unexpected error. Here is the traceback:
Model 'AAZObjectType' has no field named 'data_base_type'
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 677, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 820, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 789, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command.py", line 154, in call
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_show.py", line 33, in _handler
self._execute_operations()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_show.py", line 65, in _execute_operations
self.AutonomousDatabasesGet(ctx=self.ctx)()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_show.py", line 87, in call
return self.on_200(session)
~~~~~~~~~~~^^^^^^^^^
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_show.py", line 145, in on_200
self.ctx.set_var(
~~~~~~~~~~~~~~~~^
"instance",
^^^^^^^^^^^
data,
^^^^^
schema_builder=self._build_schema_on_200
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command_ctx.py", line 83, in set_var
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_show.py", line 610, in _build_schema_on_200
disc_clone = cls._schema_on_200.properties.discriminate_by("data_base_type", "Clone")
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_field_type.py", line 295, in discriminate_by
azure.cli.core.aaz.exceptions.AAZUnknownFieldError: Model 'AAZObjectType' has no field named 'data_base_type'

az oracle-database autonomous-database action (XXX was used to remove sensitive parts from the path)

Model 'AAZObjectType' has no field named 'data_base_type'
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 677, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 820, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 800, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 1168, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_poller.py", line 106, in result
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 860, in resource
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 876, in _parse_resource
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_action.py", line 187, in on_200
self.ctx.set_var(
~~~~~~~~~~~~~~~~^
"instance",
^^^^^^^^^^^
data,
^^^^^
schema_builder=self._build_schema_on_200
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command_ctx.py", line 83, in set_var
File "XXX\.azure\cliextensions\oracle-database\azext_oracle_database\aaz\latest\oracle_database\autonomous_database_action.py", line 652, in _build_schema_on_200
disc_clone = cls._schema_on_200.properties.discriminate_by("data_base_type", "Clone")
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_field_type.py", line 295, in discriminate_by
azure.cli.core.aaz.exceptions.AAZUnknownFieldError: Model 'AAZObjectType' has no field named 'data_base_type'

Issue script & Debug output

n/a

Expected behavior

The commands should execute without error.

Environment Summary

azure-cli version: 2.86.0
oracle-database extension version: 2.0.1

Additional context

No response

Activity

  1. added
    bugThis issue requires a change to an existing behavior in the product in order to be resolved.
    on May 19, 2026
  2. added
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    customer-reportedIssues that are reported by GitHub users external to the Azure organization.
    on May 19, 2026
  3. yonzhan commented on May 19, 2026

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  4. added
    Service AttentionThis issue is responsible by Azure service team.
    and removed
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    on May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQLService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions