Skip to content
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

_get_arc_endpoint references wrong path for azcmagent/bin #762

Open
msalwen opened this issue Oct 30, 2024 · 3 comments · May be fixed by #763
Open

_get_arc_endpoint references wrong path for azcmagent/bin #762

msalwen opened this issue Oct 30, 2024 · 3 comments · May be fixed by #763

Comments

@msalwen
Copy link

msalwen commented Oct 30, 2024

The line linked below checks for the existence of /var/opt/azcmagent/bin/himds. On our Arc servers (and probably others) the himds executable is located at /opt/azcmagent/bin/himds. This failure requires manually setting the required env variables to bypass this statement or creating a symlink from /opt/azcmagent/bin to /var/opt/azcmagent/bin.

sys.platform == "linux" and os.path.exists("/var/opt/azcmagent/bin/himds")

@rayluo
Copy link
Collaborator

rayluo commented Nov 6, 2024

Hi, @msalwen , I just noticed that your alias happens to have a prefix msal which is also the acronym MSAL of MicroSoft Authentication Library. :-)

Now we have a beta release with the bugfix for the issue you reported. Would you please install it by pip install -i https://test.pypi.org/simple/ msal and tell us whether it can solve the issue? Thanks!

@msalwen
Copy link
Author

msalwen commented Nov 8, 2024

@rayluo I have checked the beta and it works as intended. Alignment bet my alias and package name is completely coincidental. Microsoft and I happen to share initials. 😄

@jiasli I'm not sure whether you are involved with the Python packages supporting azure-cli as well as the base product, but not surprisingly, installing the msal beta alongside azure-cli-core raised a complaint from the latter about a version mismatch. I hope that a new release of azure-cli-core will follow the updated msal as soon as possible.

@jiasli
Copy link
Contributor

jiasli commented Nov 12, 2024

Once MSAL releases a new version that includes #763. Azure CLI will adopt it in Azure/azure-cli#30267.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants