I have an app that calls an external service and the external service needs to whitelist the IP address I'm calling from. For SaaS, Microsoft says
"Outbound requests come from Business Central environment, such as code that uses the HttpClientdata type to send HTTP requests. The requests come from an IP address in the IP ranges of the Azure region in which the environment is hosted. You can see where an environment is hosted on the Environment details page in the Business Central admin center."
This is from
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/faq#which-ip-addresses-or-ranges-does-my-environment-s-api-use
It links to a document with all the Azure IP addresses which is a massive list. It's divided into types of service e.g. uksouth - ActionGroup, uksouth - AzureAPIManagement, uksouth - AzureAppService, etc.
So my question is - does anybody know what service httpClient outbound requests are made from so I can find the right addresses?
Thanks!
Answers
The address it's using is 51.104.37.86 which (after a crash course in CIDR notation!) is in the AzureCloud.ukwest range.
We've got a support ticket on with Microsoft so I'll update the ticket if they say anything useful, in case it helps someone else in future.
Please upvote this idea: https://experience.dynamics.com/ideas/idea/?ideaid=a40b6cb7-d546-ea11-b698-0003ff68992e