-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
- Clean linux python dev container
- az feature
- az login --tenant or after login, az version both show errors even though command successfully
- even after update, still get error
Related command
az login --tenant
az update
Errors
vscode ➜ /workspaces/cosmos-db-vector-samples/mongo-vcore-agent-python $ az update
/usr/lib/python3/dist-packages/azure/cli/core/aaz/_command.py:132: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
if self.AZ_PREVIEW_INFO:
/usr/lib/python3/dist-packages/azure/cli/core/aaz/_command.py:133: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
self.preview_info = self.AZ_PREVIEW_INFO(cli_ctx=self.cli_ctx)
/usr/lib/python3/dist-packages/azure/cli/core/aaz/_command.py:50: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
if self.AZ_PREVIEW_INFO:
/usr/lib/python3/dist-packages/azure/cli/core/aaz/_command.py:51: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
self.group_kwargs['preview_info'] = self.AZ_PREVIEW_INFO(cli_ctx=self.cli_ctx)
Error loading command module 'monitor': ord() expected string of length 1, but int found
Error loading command module 'rdbms': No module named 'azure.mgmt.rdbms.mysql_flexibleservers'
'update' is misspelled or not recognized by the system.
Examples from AI knowledge base:
az upgrade
Upgrade Azure CLI and extensions (autogenerated)
az version
Show the versions of Azure CLI modules and extensions in JSON format by default or format configured by --output (autogenerated)
https://docs.microsoft.com/en-US/cli/azure/reference-index#az_upgrade
Issue script & Debug output
Dev container
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
{
"name": "Default Python",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:latest",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/azure/azure-dev/azd:0": {}
},
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-cosmosdb",
"buildwithlayer.mongodb-integration-expert-qS6DB",
"mongodb.mongodb-vscode",
"ms-azuretools.vscode-documentdb"
]
}
}
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
az update
az version shows
{
"azure-cli": "2.74.0",
"azure-cli-core": "2.74.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"azure-devops": "1.0.1"
}
}
Expected behavior
No errors in output that appear to be internal to Azure CLI
Environment Summary
azure-cli 2.74.0 *
core 2.74.0 *
telemetry 1.1.0
Extensions:
azure-devops 1.0.1
Dependencies:
msal 1.32.3
azure-mgmt-resource 23.4.0
Python location '/usr/bin/python3'
Config directory '/home/vscode/.azure'
Extensions directory '/home/vscode/.azure/cliextensions'
Extensions system directory '/usr/lib/python3/dist-packages/azure-cli-extensions'
Python (Linux) 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]
Legal docs and information: aka.ms/AzureCliLegal
You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
Additional context
No response