How can I determine the IP address of an Azure hosted WebApp

前端 未结 6 528
迷失自我
迷失自我 2020-12-15 19:32

I am using Azure platform for a webapp. I need to find out IP address of my web app so that I can whitelist it to an external server where I have created APIs. Is NSLookup t

相关标签:
6条回答
  • 2020-12-15 20:13

    Run nslookup yourapp.azurewebsites.net in a Windows command prompt.

    0 讨论(0)
  • 2020-12-15 20:16

    In web app -> Properties -> OUTBOUND IP ADDRESSES It will have list of outbound ip which should be whitelisted

    0 讨论(0)
  • 2020-12-15 20:20

    Well, that would be one way, but PowerShell would be better.

    Get-AzureRmWebApp -Name $WebAppName$
    $webapp.outboundipaddresses
    

    for me it returns a bunch of IP addresses

    0 讨论(0)
  • 2020-12-15 20:27

    The quickest way would be to login to the Azure portal and select your web app from the resources menu. Once you have the blade open for your web application there are two types of IP addresses. Inbound and outbound. For outbound IP, click properties from the resources menu. This will display a list of all possible outbound IP addresses.

    For inbound IP address, click on Custom Domains from the properties menu and your external IP will appear there.

    0 讨论(0)
  • 2020-12-15 20:27

    With the new Azure CLI (v2) it's very easy
    az webapp show -n mywebsite -g MyResGroup --query "outboundIpAddresses"

    0 讨论(0)
  • 2020-12-15 20:37

    We can also find the outbound Ip Addresses at Azure resource portal, like the following screenshot:

    0 讨论(0)
提交回复
热议问题