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

OSDCloud Azure is currently broken due to az account 3.00 #144

Open
zm1868179 opened this issue May 23, 2024 · 2 comments
Open

OSDCloud Azure is currently broken due to az account 3.00 #144

zm1868179 opened this issue May 23, 2024 · 2 comments

Comments

@zm1868179
Copy link

Describe the bug
We seem to be affect by this bug:
Azure/azure-powershell#24967

To Reproduce
Steps to reproduce the behavior:
Attempt to connect to OSD Cloud Azure it will fail after authenticating with the above error

Expected behavior
AZ connect should connect after Authenticating Azure PowerShell

Desktop (please complete the following information):
Windows WinPE

Additional context
Add any other context about the problem here.

we need to add in the workaround mentioned in the article for azure powershell Update-AzConfig -EnableLoginByWam $false
of force the process to use an older module instead of installing the latest module until the bug gets corrected.

@kevinmccurdybrd
Copy link

Tempoary workaround prior to Connect-AzAccount

Update-AzConfig -EnableLoginByWam $false

@zm1868179
Copy link
Author

That works for the standalone ISO but causes the no prompt one to be broken I was able to tweak the module connect-osdcloduazure.ps1 to include

Update-AzConfig -EnableLoginByWam $false -LoginExperienceV2 Off -ErrorAction SilentlyContinue

right after the import az account module and tweaked the edit-OSDClodudwinPE command to not install a fresh copy of the module but to copy the edited one this works until a new version comes out since booting into the iso causes the module to update undoing my changes

can this fix be implemented until Microsoft puts out a fix for the AZ module?

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

No branches or pull requests

2 participants