Azure VPN for Mac doesn't connect, when the audience attribute has an end of line

Josef 0 Reputation points
2025-10-20T10:02:16.9766667+00:00

Hi

I don't know if this is the right place to report this, but I will do it to help others having the same problem. Apparently the Azure VPN client for MacOS, version 2.7.101 has a problem, when an end of line is present on the audience attribute like this:

      <audience>c632b3df-fb67-4d84-bdcf-b95ad541b5c8
</audience>

You will get this error:

AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope c632b3df-fb67-4d84-bdcf-b95ad541b5c8/.default openid profile offline_access is not valid. The scope format is invalid. Scope must be in a valid URI form https://example/scope or a valid Guid <guid/scope>

User's image

Under Windows and Linux, the client will connect, so, the MacOS won't trim the attribute value. The solution is to remove the end of line:

<audience>c632b3df-fb67-4d84-bdcf-b95ad541b5c8</audience>

I guess you will have to do the same for the other attributes too in order to avoid this issue.

Best regards
Josef

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.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Priya ranjan Jena 1,510 Reputation points Microsoft External Staff Moderator
    2025-10-21T15:25:47.8766667+00:00

    Hi Josef,

    Welcome to Microsoft Q&A forum & thank you for informing us about the bug above & providing the solution as well.

    Just wanted some more info on the same, please help us in providing.

    1.Could you please share the more details on above bug or issue if you have?

    2.Did you raise any support ticket to avoid the issue, if yes, could you please share the support ticket in private message?

    Thanks

    0 comments No comments

Your answer

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