-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
OSX Connect-AzAccount doesn't function #14478
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @wmengmsft, @MehaKaushik, @shurd, @anfeldma-ms |
@bgavrilMS, could you please take a look? It seems similar to #13714 |
@erich-wang, is PowerShell from this work item using https://www.nuget.org/packages/Microsoft.Identity.Client.Extensions.Msal/ version 2.18.0? I.e. did you patch it with the latest extensions lib? |
I have been debugging this exact issue for a few days now and it is being a major blocker for me. I have tried the MSAL library update as well and that doesn't seem to fix the issue on my machine. Could you please let me know the version of PWSH and Az module (Az.Accounts as well) that you're using? Any help is appreciated. @dcaro @bgavrilMS @erich-wang Please find below the stack trace of this exception that I'm facing. TargetSite : System.Exception FailWrapAndThrow(System.Exception) TargetSite : Void VerifyPersistence() |
@prestoncook00 , could you please follow steps to verify if latest version of MSAL lib (MSAL 4.27, MSAL extension 2.18, I updated file in step 4 below) fix your issue:
|
@bgavrilMS, the user still get the error after using MSAL 4.27 + MSAL extension 2.18, could you please take a look? |
I am not sure what the next steps are, we may have to contact Apple to get some help. Some folks have reported solving the issue by restarting the machine. It may be an issue with how PowerShell is signed on Mac. |
Rebooting doesn’t help.
Preston Cook | Cloud Engineer II | Global Technology Services
Herbalife Nutrition | 14944 Pony Express Dr., Bluffdale, UT 84065<webextlink://14944%20Pony%20Express%20Dr.,%20Bluffdale,%20UT%2084065>
310 410 9600 x 74127013 | Direct 310 258 7013 | Cell 310 357 4826
***@***.******@***.***>
Learn about the many ways we do it at IAmHerbalifeNutrition.com.
From: Bogdan Gavril ***@***.***>
Date: Monday, March 15, 2021 at 00:13
To: Azure/azure-powershell ***@***.***>
Cc: Preston Cook ***@***.***>, Mention ***@***.***>
Subject: [External] Re: [Azure/azure-powershell] OSX Connect-AzAccount doesn't function (#14478)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I am not sure what the next steps are, we may have to contact Apple to get some help. Some folks have reported solving the issue by restarting the machine.
It may be an issue with how PowerShell is signed on Mac.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fissues%2F14478%23issuecomment-799175178&data=04%7C01%7Cprestonc%40herbalife.com%7C968d4fccbee343a4e4e308d8e781cfca%7C101f87a76d6b4c6c9d9c223592a2ba50%7C0%7C0%7C637513892017128577%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wy0122X4Xh5pktPAEhgWO7HT7%2Bg5d5flni2E9m9kaIU%3D&reserved=0>, or unsubscribe<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATERNESFF3PDJWH6PZKUB3DTDWXQ7ANCNFSM4Y2DFSBQ&data=04%7C01%7Cprestonc%40herbalife.com%7C968d4fccbee343a4e4e308d8e781cfca%7C101f87a76d6b4c6c9d9c223592a2ba50%7C0%7C0%7C637513892017128577%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pFZfbYuElzkbAWZleNAkfcnQ%2Fl%2Bv6VhJ4kwQmxb%2BT%2B4%3D&reserved=0>.
|
Apollogies for the delay, I'm working on creating a diagnostics app that will try to access various keychain locations, to see what's going on. |
no prob, this is very low urgency
Preston Cook | Cloud Engineer II | Global Technology Services
Herbalife Nutrition | 14944 Pony Express Dr., Bluffdale, UT 84065<webextlink://14944%20Pony%20Express%20Dr.,%20Bluffdale,%20UT%2084065>
310 410 9600 x 74127013 | Direct 310 258 7013 | Cell 310 357 4826
***@***.******@***.***>
Learn about the many ways we do it at IAmHerbalifeNutrition.com.
From: Bogdan Gavril ***@***.***>
Date: Monday, March 22, 2021 at 09:59
To: Azure/azure-powershell ***@***.***>
Cc: Preston Cook ***@***.***>, Mention ***@***.***>
Subject: [External] Re: [Azure/azure-powershell] OSX Connect-AzAccount doesn't function (#14478)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Apollogies for the delay, I'm working on creating a diagnostics app that will try to access various keychain locations, to see what's going on.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-powershell%2Fissues%2F14478%23issuecomment-804183596&data=04%7C01%7Cprestonc%40herbalife.com%7C9ed23af140564650484008d8ed4b89f3%7C101f87a76d6b4c6c9d9c223592a2ba50%7C0%7C0%7C637520255989222195%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=R6aa0A0y9wbvS1Fqf2jRFMv%2B3GxBRiJ3iXJQFhG%2FZq8%3D&reserved=0>, or unsubscribe<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FATERNETGJMCBLWMC2RFDM2DTE5SPXANCNFSM4Y2DFSBQ&data=04%7C01%7Cprestonc%40herbalife.com%7C9ed23af140564650484008d8ed4b89f3%7C101f87a76d6b4c6c9d9c223592a2ba50%7C0%7C0%7C637520255989222195%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=D1y4NfwkO%2F%2Bsc9p76mExPjfYeuzEpnEWLXPq3QKV84Q%3D&reserved=0>.
|
Do you have Visual Studio for Mac installed and running or any other Microsoft dev app running? Otherwise, I've created a small console app that writes to the KeyChain in a similar matter as PowerShell, I was hoping you could try it... |
Description
PS /Users/prestonc> Connect-azaccount
WARNING: INITIALIZATION: Token cache encryption is not supported in current environment and token cache will be fallen back as plain text.
WARNING: Unable to acquire token for tenant 'organizations'
WARNING: Please run 'Connect-AzAccount -DeviceCode' if browser is not supported in this session.
Connect-AzAccount: InteractiveBrowserCredential authentication failed: Persistence check failed. Inspect inner exception for details
Steps to reproduce
Environment data
Module versions
Debug output
Error output
The text was updated successfully, but these errors were encountered: