如何为入站 IP 地址更改做准备How to prepare for an inbound IP address change

如果收到“Azure 应用服务”应用的入站 IP 地址将要更改的通知,请按照本文中的说明进行操作。If you received a notification that the inbound IP address of your Azure App Service app is changing, follow the instructions in this article.

确定是否需要做什么Determine if you have to do anything

  • 选项 1:如果“应用服务”应用没有自定义域,则不需要执行任何操作。Option 1: If your App Service app does not have a Custom Domain, no action is required.

  • 选项 2:如果在域注册门户(第三方 DNS 提供程序或 Azure DNS)中仅配置了一条 CNAME 记录(指向 URI 的 DNS 记录),则不需要执行任何操作。Option 2: If only a CNAME record (DNS record pointing to a URI) is configured in your Domain Registration Portal (third party DNS Provider or Azure DNS), no action is required.

  • 选项 3:如果在域注册门户(第三方 DNS 提供程序或 Azure DNS)中配置了 A 记录(直接指向你的 IP 地址的 DNS 记录),请将现有 IP 地址替换为新 IP 地址。Option 3: If an A record (DNS record pointing directly to your IP address) is configured in your Domain Registration Portal (third party DNS Provider or Azure DNS), replace the existing IP address with the new one. 遵照下一部分中的说明可以找到新 IP 地址。You can find the new IP address by following the instructions in the next section.

  • 选项 4:如果应用程序位于负载均衡器、IP 筛选器或需要应用程序 IP 地址的任何其他 IP 机制之后,请将现有 IP 地址替换为新 IP 地址。Option 4: If your application is behind a load balancer, IP Filter, or any other IP mechanism that requires your app's IP address, replace the existing IP address with the new one. 遵照下一部分中的说明可以找到新 IP 地址。You can find the new IP address by following the instructions in the next section.

在 Azure 门户中找到新的入站 IP 地址Find the new inbound IP Address in the Azure portal

为应用提供的新入站 IP 地址位于门户的“虚拟 IP 地址” 字段中。The new inbound IP address that is being given to your app is in the portal in the Virtual IP address field. 这个新 IP 地址和旧 IP 地址现在都已连接到你的应用,之后旧 IP 地址将断开连接。Both this new IP address and the old one are connected to your app now, and later the old one will be disconnected.

  1. 打开 Azure 门户Open the Azure portal.

  2. 在左侧导航菜单中选择“应用服务”。 In the left-hand navigation menu, select App Services.

  3. 从列表中选择自己的应用服务应用。Select your App Service app from the list.

  4. 如果应用是一个函数应用,请参阅函数应用入站 IP 地址If the app is a function app, see Function app inbound IP address.

  5. 在“设置” 标题下,单击左侧导航栏中的“属性” ,找到标有“虚拟 IP 地址” 的部分。Under the Settings header, click Properties in the left navigation, and find the section labeled Virtual IP address.

  6. 复制 IP 地址并重新配置域记录或 IP 机制。Copy the IP address and reconfigure your domain record or IP mechanism.

后续步骤Next steps

本文介绍了如何对 Azure 发起的 IP 地址更改做好准备。This article explained how to prepare for an IP address change that was initiated by Azure. 有关 Azure 应用服务中的 IP 地址的详细信息,请参阅 Azure 应用服务中的入站和出站 IP 地址For more information about IP addresses in Azure App Service, see Inbound and outbound IP addresses in Azure App Service.