Using the Consumption hosting plan, there is no specific outgoing/public IP address for a Function, although you can look up ranges for the service or datacenter. My question is: for a specific instance or execution of a Function, can it tell at run-time what it's own public IP address is (or will be) without querying a service like ipchicken.com? Would querying an external service even work or be reliable for subsequent outgoing requests?
标签:
azure-functions
相关问题
- Debugging two Azure Functions projects locally
- How to Append a Text File in an Azure Blob with a
- Cannot use JpegBitmapEncoder in Azure Function
- How to deploy multiple Microsoft azure functions f
- Azure Function - Portal Code Deployment feature is
相关文章
- Azure Function App - Publish failed
- How to authenticate to an Azure Function using fun
- How do I write an azure function to trigger a azur
- No job functions found in Azure Functions project
- “Wake up” time of Azure Function triggered by Serv
- Azure functions - How to read form data
- Azure Functions - Import Custom Node Module
- Azure Function Docker not working with http trigge
The official guidance is that you need to use Data Center IP addresses to stay safe, the rest is not guaranteed. This is described in the second part of How do I determine the outbound IP addresses of my Azure App Service.
That's why they hide "Outbound IP Addresses" field in Properties of Function Apps.
However, it looks like those outbound IP addresses are safe to use in practice, so you can try that on your own risk. You can find them in Resource Explorer at URL like
https://resources.azure.com/subscriptions/{guid}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{functionapp}
underoutboundIpAddresses
property. There are alsopossibleOutboundIpAddresses
there, maybe it's safer to use those.See IP Address white-listing for Azure Function running under Consumption Plan for more comments from Azure users.