Description
openedon Feb 28, 2023
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.