Fixed IP from SaaS

NAVupNorth
Member Posts: 14
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
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!
"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!
0
Answers
-
You could use the HttpClient and Get the page at https://whatismyipaddress.com/ or similar to see from what IP the page is requested.0
-
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.
0 -
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-0003ff68992e0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions