如何为 SSL IP 地址更改做好准备How to prepare for an SSL IP address change

如果收到有关 Azure 应用服务应用的 SSL IP 地址即将更改的通知,请遵照本文中的说明释放现有的 SSL IP 地址并分配新地址。If you received a notification that the SSL IP address of your Azure App Service app is changing, follow the instructions in this article to release existing SSL IP address and assign a new one.

释放 SSL IP 地址并分配新地址Release SSL IP addresses and assign new ones

  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. 在左侧导航窗格中,单击“设置”标头下的“SSL 设置”。 Under the Settings header, click SSL settings in the left navigation.

  5. 在“TLS/SSL 绑定”部分,选择主机名记录。In the TLS/SSL bindings section, select the host name record. 在打开的编辑器中,从“SSL 类型”下拉菜单中选择“SNI SSL”,然后单击“添加绑定”。 In the editor that opens, choose SNI SSL on the SSL Type drop-down menu and click Add Binding. 如果出现操作成功的消息,则表示已释放现有的 IP 地址。When you see the operation success message, the existing IP address has been released.

  6. 在“SSL 绑定”部分,再次选择包含证书的同一主机名记录。In the SSL bindings section, again select the same host name record with the certificate. 在打开的编辑器中,这次请从“SSL 类型”下拉菜单中选择“基于 IP 的 SSL”,然后单击“添加绑定”。 In the editor that opens, this time choose IP Based SSL on the SSL Type drop-down menu and click Add Binding. 如果出现操作成功的消息,表示已获取新的 IP 地址。When you see the operation success message, you’ve acquired a new IP address.

  7. 如果在域注册门户(第三方 DNS 提供程序或 Azure DNS)中配置了 A 记录(直接指向你的 IP 地址的 DNS 记录),请将现有 IP 地址替换为新生成的 IP 地址。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 newly generated one. 遵照下一部分中的说明可以找到新 IP 地址。You can find the new IP address by following the instructions in the next section.

在 Azure 门户中找到新的 SSL IP 地址Find the new SSL IP address in the Azure Portal

  1. 等待几分钟时间,然后打开 Azure 门户Wait a few minutes, and then 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 地址”的部分。Under the Settings header, click Properties in the left navigation, and find the section labeled Virtual IP address.

  5. 复制 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.