Skip to content

az account show reports "Error loading command module 'deploymentmanager'" #25607

Closed

Description

Related command
az account show

Describe the bug
In a GitHub Action with the windows-latest runner, I install the az Edge built from https://aka.ms/InstallAzureCliWindowsEdge. Running the command az account show says

ERROR: Error loading command module 'deploymentmanager': MGMT_DEPLOYMENTMANAGER
{
   "environmentName": "AzureCloud",
   "homeTenantId": "***",
   "id": "***",
   "isDefault": true,
   "managedByTenants": [],
   "name": "xyz",
   "state": "Enabled",
   "tenantId": "***",
   "user": {
     "name": "***",
     "type": "servicePrincipal"
   }
}

(line breaks were lost in the output and manually inserted back afterwards for readability, but may be at incorrect positions)

This error message does not appear in the normal az installation instead of the Edge built. It does not appear in Linux runners. It wasn't there on 19th February, but was there on 26th February.

To Reproduce
This is the GitHub workflow producing the issue: https://github.com/scepman/scepman-psmodule/blob/main/.github/workflows/test-in-lab.yml. The PowerShell script in the last step calls az account show.

Expected behavior
The deploymentmanager module should be loaded correctly and the error message should not appear.

Environment summary
I have configured an Environment in GitHub and Federated Authentication in Azure that azure/login action uses for authentication.

Additional context
I couldn't reproduce the behavior interactively on a Windows 10 desktop machine. This also makes it harder for me to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Accountaz 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