I currently Have an Azure VNET which cannot resolve my Dynamics 365 domain name when I try to query the API.
This VNET is setup with private DNS zones for an azure APIM instance and for my test, I allowed all ports in the associated Network security group.
I have a VM within this VNET And I am trying to query the Dynamics 365 API from it (using a powershell script).
The domain name of this endpoint is sandbox.operations.eu.dynamics.com. When I try to query this api from my VM am getting the following error:
The remote name could not be resolved: 'xxxx-xxxx.sandbox.operations.eu.dynamics.com'
The strange thing is that When I try to query this API from my laptop (outside this VM), it is working fine. I have also tried to query other APis like the like reqres.in from my VM and it worked fine, I am only experiencing this issue with my Dynamics domain name.
What could i do to fix it ?