Hello everyone,
I am experiencing an issue with accessing my Azure Key Vault on my Mac. The error message I receive is:
The connection to data plane failed. Please refresh and try again. If Private Links are enabled on the vault and the issue persists please follow the steps in the following link https://go.microsoft.com/fwlink/?linkid=2156688.
Context:
Environment: I am using both Windows and Mac machines.
Setup:
Windows: Everything works as expected. I can connect to the Azure Key Vault without any issues.
Mac: I encounter the above error message.
Network: I am connecting through the Azure VPN client on both machines.
Private Endpoint: The Key Vault is configured with a private endpoint.
DNS Configuration: I have added the required DNS entries in my /etc/hosts
file on my Mac and prioritized IPv4 DNS servers.
Steps I’ve Taken So Far:
Configured /etc/hosts
: Added an entry for the Key Vault private endpoint.
Flushed DNS Cache: Ran sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
.
Tested DNS Resolution: Used nslookup
and dig
to verify DNS resolution, which shows the public IP address instead of the private IP.
Disabled IPv6: Temporarily disabled IPv6 to force the use of IPv4.
Observations:
On my Mac, nslookup
and dig
still resolve the Key Vault hostname to its public IP address, not the private IP address as configured in /etc/hosts
.
Everything works perfectly on Windows using the same Azure VPN client configuration.
Request for Help:
Has anyone encountered similar issues with the Azure VPN client on macOS?
Are there additional steps or configurations required on macOS to ensure the private endpoint is used correctly?
Could there be any specific settings in the Azure VPN client for macOS that I might be missing?
I have followed the guidance in the linked documentation but have not had any success in resolving this issue. Any insights or suggestions would be greatly appreciated!
Thank you in advance for your help