-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az account show
reports "Error loading command module 'deploymentmanager'"
#25607
Comments
@jiasli for awareness |
Probably caused by this PR: #25523 |
@bb-froggy could you please tell how we can reproduce this issue in our side as we cannot reproduce it on our local machine? |
@bb-froggy, thanks for the update. I cannot reproduce with
|
I just ran The string "deploymentmanager" does not appear in my commandIndex.json |
@bb-froggy Could you please show us the output of |
|
Now the problem is gone on this machine.
I missed running az --version before uninstalling. I remember it gave a json that said that azure-clie and core were version 2.45.0. Now, it is not a json anymore, but still version 2.45.0. |
Last time I used |
@bb-froggy When you install the Edge version on the basis of production version 2.45.0, do you choose |
The wizard looked differently for me. It behaved just like there was no existing installation. Probably the GitHub actions are an environment where this is more easy to reproduce. There, I installed az Edge with this powershell script on windows-latest:
I can try to create a repository with a minimal example to reproduce this with a GitHub runner, but not today. |
@bb-froggy We figure out this. You need to uninstall the official before installing the edge version. |
Okay, this works for me. In my GitHub Action, I do the following with powershell (not pwsh, which I believe wouldn't work) before installing the edge build:
This fixed the problem for me. Since this problem is specific to the Edge build and does not affect the regular release, there is a working solution even for my use case, and you are updating the docs to point out the requirements to prevent this, I consider this issue fixed. |
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(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.
The text was updated successfully, but these errors were encountered: