Azure VPN Client failes to connect on single Mac

imod 16 Reputation points
2022-12-06T09:41:35.507+00:00

Hi, I have a very strange behaviour:

Use the Azure VPN Client on my Mac to establish a connection to our VPN. This used to work without any problem, but then for some reasons I got a new account and now the connection fails with the new account.
The strange thing is, the connection with the new account does work from a different mac, but not from my own one.

When I check the logs, then I see the following:

12/06/2022 09:58:07 Information Acquiring AAD token interactively...  
12/06/2022 09:58:35 Information Successfully Received AAD Credential Token. User: ******@yyyy.xx  
12/06/2022 09:58:35 Information Saving AAD User Account  
12/06/2022 09:58:35 Information Dialing VPN connection Dev  
12/06/2022 09:58:35 Information Dialing VPN connection Dev, Status = Success  
12/06/2022 09:58:35 Information removeClientAuthLoginCredentials: Using account: com.microsoft.AzureVpnMac  
12/06/2022 09:58:35 Information getClientAuthLoginCredentials: Using account: com.microsoft.AzureVpnMac  
12/06/2022 09:58:35 Error getKeyChainSecret: Failed to retrieve KeyChain secret. Status code -25300  
12/06/2022 09:58:35 Warning removeClientAuthLoginCredentials: Failed to retrive previously saved ClientAuth: aad secret  for Vpn connection: Dev, so no cleanup is needed!  
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,801 questions
{count} votes

4 answers

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,481 Reputation points Microsoft Employee Moderator
    2022-12-07T01:19:13.83+00:00

    @imod ,

    Welcome to the Microsoft Q&A forum.

    Based on my understanding above, I see that aad token is successfully received Information Successfully Received AAD Credential Token. User: ******@yyyy.xx but the credentials are not getting fetched from KeyChain.

    You can try below mentioned steps and see if they help resolve the issue.

    • If possible, can you reinstall VPN client and import the latest XML config file again and see if that helps resolve the issue. You can follow this guide for implementation.
    • As this can be an issue related to KeyChain you can also engage Apple support to further troubleshoot this issue.

    Another approach here will be to create a support ticket for this issue as a support engineer can take a look at the backend logs and help pinpoint the issue. If you do not have a support plan, you can refer to my private comment above.
    Hope this helps! Please let me know if you have any additional questions. Thank you!


  2. Gregorio Montaño 251 Reputation points
    2023-06-22T09:04:11.1966667+00:00

    Maybe, try synching local password with cloud/idp password.

    0 comments No comments

  3. Gregorio Montaño 251 Reputation points
    2023-06-22T09:05:02.19+00:00

    Try synching local password with cloud/idp password.

    0 comments No comments

  4. Moises Santos 0 Reputation points
    2023-09-25T13:12:57.93+00:00

    Has anyone discovered the real issue?
    I'm facing the same problem. In the first attempt on a Mac laptop, it worked. Once I disconnected and tried to connect again, it started complaining about getting the key from KeyChain.

    09/25/2023 14:06:11 Information removeClientAuthLoginCredentials: Using account: com.microsoft.AzureVpnMac

    09/25/2023 14:06:11 Information getClientAuthLoginCredentials: Using account: com.microsoft.AzureVpnMac

    09/25/2023 14:06:11 Error getKeyChainSecret: Failed to retrieve KeyChain secret. Status code -25300

    09/25/2023 14:06:11 Warning removeClientAuthLoginCredentials: Failed to retrive previously saved ClientAuth: aad secret for Vpn connection: wan-mgmt-northeurope_vhub-mgmt-northeurope, so no cleanup is needed!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.