Fixed IP from SaaS

NAVupNorthNAVupNorth Member Posts: 13
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

  • DuikmeesterDuikmeester Hoorn, The NetherlandsMember Posts: 303
    You could use the HttpClient and Get the page at https://whatismyipaddress.com/ or similar to see from what IP the page is requested.
  • NAVupNorthNAVupNorth Member Posts: 13
    That's a brilliant suggestion, thanks, I've done it with https://checkip.amazonaws.com/

    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.



  • NAVupNorthNAVupNorth Member Posts: 13
    Just to close this, Microsoft support say it's not possible to get a fixed IP address at the moment, it can change whenever they update the customer's instance. The only way to guarantee whitelisting the right one is to whitelist all addresses assigned to the data centre which could be tens of thousands.

    Please upvote this idea: https://experience.dynamics.com/ideas/idea/?ideaid=a40b6cb7-d546-ea11-b698-0003ff68992e
Sign In or Register to comment.