How To Figure Out Azure Function IP Address

How To Figure Out IP Address For Azure Functions

This Azure tutorial will discuss how to figure out Azure functions IP address.

How To Figure Out IP Address For Azure Functions? You can find out the IP Address of the Azure Function using the Azure Portal, and also, you can find the Outbound Ip Address of the Azure Functions using the Azure Resource Explorer.

Below, we will discuss the steps to figure out IP Addresses of the Azure Function App in detail.

How To Figure Out Azure functions IP address

Well, Let me clarify one thing here when we are thinking of the IP Address for Azure Functions: It is the IP address of the Azure Function App, not the individual Azure Function.

When we discuss the IP address of the Azure Function App, two categories of IP Addresses come into the picture.InBound IP address and OutBound IP Address.

How To Figure Out InBound IP Address For Azure Functions

Follow the below steps to figure out the inbound IP address for the Azure Functions using the Azure Portal.

1. Log in to the Azure Portal (https://portal.azure.com/)

2. The next step is to navigate to the Azure Function App for which you want to figure out

azure function ip address whitelist

3. the next step is to click on the Properties link from the left navigation on the Azure Function App page. You can see the IP Address under the Virtual IP Address, as highlighted below.

azure function static ip

This is how you can Figure Out InBound IP addresses for Azure Functions using the Azure Portal.

How To Figure Out OutBound IP Address For Azure Functions

Now, we will discuss How To Figure Out OutBound IP addresses for Azure Functions using the Azure Resource Explorer.

1. Log in to the Azure Resource Explorer (https://resources.azure.com/)

Once you are logged in to the Azure Resource Explorer, The next step is to Expand the Subscription node and select your correct Subscription.

azure function ip address

2. Now, you need to select Microsoft. Web and then choose Sites.

azure function ip

3. Now search for the Azure Function for which you want to see the outbound IP address. As mentioned below, you can see the IP addresses for the outbound IP addresses and possible Outbound IP addresses in the JSON panel.

azure function get ip address

Azure Function Outbound IP Addresses using PowerShell

You can also get the Outbound IP Addresses of the Azure Function using PowerShell. You can use the below PowerShell cmdlets to get the OutboundIpAddresses.

(Get-AzWebApp -ResourceGroup newresgroup -name BlobTriggerAzureFunctionApp).OutboundIpAddresses

The complete script will be as follows. For Tenant (Provide the tenant ID) and Subscription (Provide the Subscription ID)

Connect-AzAccount -Tenant xxxxx-0310-474d-xxxx-42df2d549228 -Subscription rttyyu-fggg-4518-9c9c-hjjkjhhhjj
(Get-AzWebApp -ResourceGroup newresgroup -name BlobTriggerAzureFunctionApp).OutboundIpAddresses

You can see the Output below

function app ip address

You can retrieve the PossibleOutboundIpAddress for the Azure Functions using the below PowerShell cmdlets.

(Get-AzWebApp -ResourceGroup newresgroup -name BlobTriggerAzureFunctionApp).PossibleOutboundIpAddresses

The Complete script will be as below

Connect-AzAccount -Tenant xxxxx-0310-474d-xxxx-42df2d549228 -Subscription rttyyu-fggg-4518-9c9c-hjjkjhhhjj
(Get-AzWebApp -ResourceGroup newresgroup -name BlobTriggerAzureFunctionApp).PossibleOutboundIpAddresses

You can see the output as below

how to find ip address in azure portal

This is how you can retrieve Azure Function Outbound IP Addresses using PowerShell

Figure Out IP Address For Azure Functions – Video Tutorial

IP Addresses In Azure Functions

One point to note here is that IP addresses are associated with the Function app, not individual functions. The incoming HTTP requests use the custom domain name (functionappname.azurewebsites.net) or a custom domain name to call individual functions as they can’t use the inbound IP address.

You may also like Following the Articles

Wrapping UP

In this article, we have discussed how to figure out Azure function IP address. I hope you have enjoyed it!