更新 Azure Stack Hub 上的 Azure 应用服务Update Azure App Service on Azure Stack Hub

重要

在部署或更新应用服务资源提供程序 (RP) 之前,如有必要,请将 Azure Stack Hub 更新到支持的版本(或部署最新的 Azure Stack 开发工具包)。Update Azure Stack Hub to a supported version (or deploy the latest Azure Stack Development Kit) if necessary, before deploying or updating the App Service resource provider (RP). 请务必阅读 RP 发行说明,了解新功能、修补程序以及可能影响部署的任何已知问题。Be sure to read the RP release notes to learn about new functionality, fixes, and any known issues that could affect your deployment.

支持的 Azure Stack Hub 版本Supported Azure Stack Hub version 应用服务 RP 版本App Service RP version
20082008 2020.Q3 安装程序发行说明2020.Q3 Installer (release notes)
20052005 2020.Q2 安装程序发行说明2020.Q2 Installer (release notes)
20022002 2020.Q2 安装程序发行说明2020.Q2 Installer (release notes)

在本文中,你将了解如何升级在连接到 Internet 的 Azure Stack Hub 环境中部署的 Azure 应用服务资源提供程序In this article, you learn how to upgrade the Azure App Service resource provider deployed in an internet-connected Azure Stack Hub environment.

重要

在运行升级之前,必须完成在 Azure Stack Hub 上部署 Azure 应用服务Prior to running the upgrade, you must complete deployment of Azure App Service on Azure Stack Hub.

运行 Azure 应用服务资源提供程序安装程序Run the Azure App Service resource provider installer

在此过程中,升级操作将会:During this process, the upgrade will:

  • 检测以前部署的 Azure 应用服务。Detect prior deployment of Azure App Service.
  • 准备要部署的所有 OSS 库的所有更新包和新版本。Prepare all update packages and new versions of all OSS Libraries to be deployed.
  • 上传到存储。Upload to storage.
  • 升级所有 Azure 应用服务角色(控制器、管理、前端、发布者和辅助角色)。Upgrade all Azure App Service roles (Controllers, Management, Front-End, Publisher, and Worker roles).
  • 更新 Azure 应用服务规模集定义。Update Azure App Service scale set definitions.
  • 更新 Azure 应用服务资源提供程序清单。Update Azure App Service resource provider manifest.

重要

Azure 应用服务安装程序必须在可访问“Azure Stack Hub 管理”Azure 资源管理器终结点的计算机上运行。The Azure App Service installer must be run on a machine which can reach the Azure Stack Hub admin Azure Resource Manager endpoint.

若要升级 Azure Stack Hub 上的 Azure 应用服务部署,请按照以下步骤操作:To upgrade your deployment of Azure App Service on Azure Stack Hub, follow these steps:

  1. 下载 Azure 应用服务安装程序Download the Azure App Service Installer.

  2. 以管理员身份运行 appservice.exe。Run appservice.exe as an admin.

    屏幕截图,显示如何在应用服务安装程序中启动部署或升级过程。

  3. 单击“部署 Azure 应用服务或升级到最新版本”。Click Deploy Azure App Service or upgrade to the latest version.

  4. 查看并接受 Microsoft 软件许可条款,然后单击“下一步”。Review and accept the Microsoft Software License Terms and then click Next.

  5. 查看并接受第三方许可条款,然后单击“下一步”。Review and accept the third-party license terms and then click Next.

  6. 确保 Azure Stack Hub Azure 资源管理器终结点和 Active Directory 租户信息正确。Make sure that the Azure Stack Hub Azure Resource Manager endpoint and Active Directory Tenant info is correct. 如果在 ASDK 部署过程中使用了默认设置,则此处可以接受默认值。If you used the default settings during ASDK deployment, you can accept the default values here. 但是,如果在部署 Azure Stack Hub 时自定义了选项,则必须编辑此窗口中的值。However, if you customized the options when you deployed Azure Stack Hub, you must edit the values in this window. 例如,如果使用域后缀 mycloud.com,则必须将 Azure Stack Hub Azure 资源管理器终结点更改为 management.region.mycloud.comFor example, if you use the domain suffix mycloud.com, your Azure Stack Hub Azure Resource Manager endpoint must change to management.region.mycloud.com. 确认信息后,单击“下一步”。After you confirm your info, click Next.

    屏幕截图,显示要在应用服务安装程序中的何处配置 ARM 终结点。

  7. 在下一页上执行以下操作:On the next page:

    1. 选择要使用的连接方法 - “凭据”或“服务主体” Select the connection method you wish to use - Credential or Service Principal

      • 凭据Credential
        • 如果使用 Azure Active Directory (Azure AD),请输入在部署 Azure Stack Hub 时提供的 Azure AD 管理员帐户和密码。If you're using Azure Active Directory (Azure AD), enter the Azure AD admin account and password that you provided when you deployed Azure Stack Hub. 选择“连接” 。Select Connect.
        • 如果使用 Active Directory 联合身份验证服务 (AD FS),请提供管理员帐户。If you're using Active Directory Federation Services (AD FS), provide your admin account. 例如,cloudadmin@azurestack.local。For example, cloudadmin@azurestack.local. 输入密码,然后选择“连接”。Enter your password, and then select Connect.
      • 服务主体Service Principal
        • 使用的服务主体必须对“默认提供程序订阅”拥有“所有者”权限 The service principal that you use must have Owner rights on the Default Provider Subscription
        • 提供“服务主体 ID”、“证书文件”和“密码”,然后选择“连接” 。Provide the Service Principal ID, Certificate File, and Password and select Connect.
    2. 在“Azure Stack Hub 订阅”中,选择“默认提供程序订阅”。 In Azure Stack Hub Subscriptions, select the Default Provider Subscription. Azure Stack Hub 上的 Azure 应用服务 必须 部署在 默认提供程序订阅 中。Azure App Service on Azure Stack Hub must be deployed in the Default Provider Subscription.

    3. 在“Azure Stack Hub 位置”中,选择要部署到的区域所对应的位置。In the Azure Stack Hub Locations, select the location that corresponds to the region you're deploying to. 例如,若要部署到 ASDK,请选择“本地”。For example, select local if you're deploying to the ASDK.

    4. 如果检测到现有的 Azure 应用服务部署,则资源组和存储帐户会被填充并不可用。If an existing Azure App Service deployment is detected, then the resource group and storage account are populated and unavailable.

    屏幕截图,显示在应用服务安装程序中的何处指定 Azure Stack Hub 订阅信息。

  8. 在摘要页上执行以下操作:On the summary page:

    1. 验证所做的选择。Verify the selections you made. 若要进行更改,请使用“上一步”按钮访问前面的页面。To make changes, use the Previous buttons to visit previous pages.

    2. 如果配置正确,则选中此复选框。If the configurations are correct, select the check box.

    3. 若要开始升级,请单击“下一步”。To start the upgrade, click Next.

      屏幕截图,显示安装程序中的应用服务升级摘要。

  9. 升级进度页:Upgrade progress page:

    1. 跟踪升级进度。Track the upgrade progress. Azure Stack Hub 上的 Azure 应用服务升级持续时间取决于部署的角色实例数目。The duration of the upgrade of Azure App Service on Azure Stack Hub varies depending on the number of role instances deployed.

    2. 升级成功完成后,单击“退出”。After the upgrade successfully completes, click Exit.

      屏幕截图,显示应用服务安装程序中的部署进度。

后续步骤Next steps

准备 Azure Stack Hub 上的 Azure 应用服务的其他管理操作:Prepare for additional admin operations for Azure App Service on Azure Stack Hub: