Skip to content

Az cli response slow on docker containers #31900

@jeethendrad

Description

@jeethendrad

Describe the bug

Hi Team,
Cx is running Redhat 8 Azure VM
-They have installed docker inside Azure VM and created multiple containers.

Image

-The az cli version installed on the VM level is latest 2.75. No issues on VM level.
-However, they have installed az cli on each of above containers inside the VM. One of the container has 2.72 and that is running fine.
-The other containers have 2.74 version, and they run slow more then 20 seconds to respond.
-This is same for all the commands, we took two commands as example.. az login --identity and other is az group list.

The debug log outputs have been attached here.
The only difference between fast and slow is that the access token is in cache while the slow container fetches token.
To contradict on this, Azure VM level does same steps as the slow container but the response on Azure VM level is fast. 2seconds vs 20seconds.

Related command

az login --identity --client-id
az group list

Errors

No errors

Issue script & Debug output

Expected behavior

Less than few seconds of response

Environment Summary

Azure VM az version 2.75 Fast
Container 1 az version 2.72 Fast
Container 2 az version 2.74 Slow

Additional context

No response

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAccountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions