使用 Azure 和 Azure Stack Hub 部署可跨云缩放的应用Deploy an app that scales cross-cloud using Azure and Azure Stack Hub

适用于:Azure Stack Hub 集成系统和 Azure Stack Hub 开发工具包Applies to: Azure Stack Hub integrated systems and Azure Stack Hub Development Kit

了解如何创建可提供手动触发过程的跨云解决方案,以通过流量管理器使用自动缩放功能从 Azure Stack Hub 托管的 Web 应用切换到 Azure 托管的 Web 应用。Learn how to create a cross-cloud solution to provide a manually triggered process for switching from an Azure Stack Hub hosted web app to an Azure hosted web app with autoscaling via traffic manager. 此过程确保云实用工具在承受负载时保持灵活性和可伸缩性。This process ensures flexible and scalable cloud utility when under load.

使用此模式时,租户可能尚未准备好在公有云中运行你的应用。With this pattern, your tenant may not be ready to run your app in the public cloud. 但是,要让企业在本地环境中保持用于处理应用需求高峰的容量,在经济上似乎不切实际。However, it may not be economically feasible for the business to maintain the capacity required in their on-premises environment to handle spikes in demand for the app. 租户可以通过其本地解决方案使用公有云的弹性。Your tenant can make use of the elasticity of the public cloud with their on-premises solution.

在此解决方案中,你将构建一个示例环境来完成以下任务:In this solution, you'll build a sample environment to:

  • 创建多节点 Web 应用。Create a multi-node web app.
  • 配置和管理持续部署 (CD) 过程。Configure and manage the Continuous Deployment (CD) process.
  • 将 Web 应用发布到 Azure Stack Hub。Publish the web app to Azure Stack Hub.
  • 创建发布。Create a release.
  • 了解如何监视和跟踪部署。Learn to monitor and track your deployments.

Tip

hybrid-pillars.pnghybrid-pillars.png
Azure Stack Hub 是 Azure 的扩展。Azure Stack Hub is an extension of Azure. Azure Stack Hub 将云计算的灵活性和创新性带入本地环境,并支持唯一的混合云,支持在任何地方生成和部署混合应用。Azure Stack Hub brings the agility and innovation of cloud computing to your on-premises environment, enabling the only hybrid cloud that allows you to build and deploy hybrid apps anywhere.

混合应用程序的设计注意事项一文回顾了设计、部署和运行混合应用程序所需的软件质量要素(位置、可伸缩性、可用性、复原能力、可管理性和安全性)。The article Design Considerations for Hybrid Applications reviews pillars of software quality (placement, scalability, availability, resiliency, manageability, and security) for designing, deploying, and operating hybrid applications. 这些设计注意事项有助于优化混合应用设计,从而最大限度地减少生产环境中的难题。The design considerations assist in optimizing hybrid app design, minimizing challenges in production environments.

先决条件Prerequisites

问题和注意事项Issues and considerations

可伸缩性Scalability

跨云缩放的关键要素是能按需在公共和本地云基础结构之间提供即时缩放功能,证明服务可保持一致且可靠。The key component of cross-cloud scaling is the ability to deliver immediate and on-demand scaling between public and on-premises cloud infrastructure, providing consistent and reliable service.

可用性Availability

确定通过本地硬件配置和软件部署来配置本地部署的应用,以实现高可用性。Ensure locally deployed apps are configured for high-availability through on-premises hardware configuration and software deployment.

可管理性Manageability

跨云解决方案确保在环境之间提供无缝的管理和熟悉的界面。The cross-cloud solution ensures seamless management and familiar interface between environments. 建议使用 PowerShell 进行跨平台管理。PowerShell is recommended for cross-platform management.

跨云缩放Cross-cloud scaling

获取自定义域并配置 DNSObtain a custom domain and configure DNS

更新域的 DNS 区域文件。Update the DNS zone file for the domain. 然后,Azure AD 将会验证自定义域名的所有权。Azure AD will verify ownership of the custom domain name. Azure DNS 用于 Azure 中的 Azure/Office 365/外部 DNS 记录,或在其他 DNS 注册机构中添加 DNS 条目。Use Azure DNS for Azure/Office 365/external DNS records within Azure, or add the DNS entry at a different DNS registrar.

  1. 向公共注册机构注册自定义域。Register a custom domain with a public registrar.

  2. 登录到域的域名注册机构。Sign in to the domain name registrar for the domain. 可能需要由获批准的管理员进行 DNS 更新。An approved admin may be required to make DNS updates.

  3. 通过添加 Azure AD 提供的 DNS 条目来更新域的 DNS 区域文件。Update the DNS zone file for the domain by adding the DNS entry provided by Azure AD. (DNS 条目不影响邮件路由或 Web 托管行为。)(The DNS entry won't affect mail routing or web hosting behaviors.)

在 Azure Stack Hub 中创建默认的多节点 Web 应用Create a default multi-node web app in Azure Stack Hub

设置混合持续集成和持续部署 (CI/CD),以将 Web 应用部署到 Azure 和 Azure Stack Hub,并自动将更改推送到这两个云中。Set up hybrid continuous integration and continuous deployment (CI/CD) to deploy web apps to Azure and Azure Stack Hub and to autopush changes to both clouds.

Note

需要在 Azure Stack Hub 上创建适当的合成映像用于运行 Windows Server 和 SQL,并需要部署应用服务。Azure Stack Hub with proper images syndicated to run (Windows Server and SQL) and App Service deployment are required. 有关详细信息,请查看应用服务文档开始使用 Azure Stack Hub 上的应用服务之前For more information, review the App Service documentation Before you get started with App Service on Azure Stack Hub.

向 Azure Repos 中添加代码Add Code to Azure Repos

Azure ReposAzure Repos

  1. 使用在 Azure Repos 上拥有项目创建权限的帐户登录到 Azure Repos。Sign in to Azure Repos with an account that has project creation rights on Azure Repos.

    混合 CI/CD 可同时应用到应用代码和基础结构代码。Hybrid CI/CD can apply to both app code and infrastructure code. 使用 Azure 资源管理器模板进行专用与托管的云开发。Use Azure Resource Manager templates for both private and hosted cloud development.

    连接到 Azure Repos 上的项目

  2. 创建并打开默认 Web 应用以克隆存储库Clone the repository by creating and opening the default web app.

    在 Azure Web 应用中克隆存储库

为这两个云中的应用服务创建独立的 Web 应用部署Create self-contained web app deployment for App Services in both clouds

  1. 编辑 WebApplication.csproj 文件。Edit the WebApplication.csproj file. 选择 Runtimeidentifier 并添加 win10-x64Select Runtimeidentifier and add win10-x64. (请参阅独立部署文档。)(See Self-contained Deployment documentation.)

    编辑 Web 应用项目文件

  2. 使用团队资源管理器将代码签入 Azure Repos。Check in the code to Azure Repos using Team Explorer.

  3. 确认应用代码已签入到 Azure Repos。Confirm that the app code has been checked into Azure Repos.

创建生成定义Create the build definition

  1. 登录到 Azure Pipelines 以确认能够创建生成定义。Sign in to Azure Pipelines to confirm the ability to create build definitions.

  2. 添加 -r win10-x64 代码。Add -r win10-x64 code. 使用 .NET Core 触发独立部署时需要添加此代码。This addition is necessary to trigger a self-contained deployment with .NET Core.

    将代码添加到 Web 应用

  3. 运行生成。Run the build. 独立部署生成过程将发布可在 Azure 和 Azure Stack Hub 上运行的项目。The self-contained deployment build process will publish artifacts that run on Azure and Azure Stack Hub.

使用 Azure 托管代理Use an Azure hosted agent

在 Azure Pipelines 中使用托管生成代理是生成和部署 Web 应用的便捷做法。Using a hosted build agent in Azure Pipelines is a convenient option to build and deploy web apps. 维护和升级由 Azure 自动执行,使开发周期持续而不间断。Maintenance and upgrades are done automatically by Azure, enabling a continuous and uninterrupted development cycle.

管理和配置 CD 过程Manage and configure the CD process

Azure Pipelines 和 Azure DevOps Services 提供高度可配置、可管理的管道,用于将内容发布到多个环境(例如开发、过渡、QA 和生产环境);在特定的阶段要求审批。Azure Pipelines and Azure DevOps Services provide a highly configurable and manageable pipeline for releases to multiple environments such as development, staging, QA, and production environments; including requiring approvals at specific stages.

创建发布定义Create release definition

  1. 在 VSO 的“生成和发布”部分的“发布”选项卡下,选择加号按钮添加新的发布。 Select the plus button to add a new release under the Releases tab in the Build and Release section of VSO.

    创建发布定义

  2. 应用“Azure 应用服务部署”模板。Apply the Azure App Service Deployment template.

    应用 Azure 应用服务部署模板

  3. 在“添加项目”下,为 Azure 云生成应用添加项目。 Under Add artifact, add the artifact for the Azure Cloud build app.

    向 Azure 云生成添加项目

  4. 在“管道”选项卡下选择环境的“阶段和任务”链接,并设置 Azure 云环境值。 Under Pipeline tab, select the Phase, Task link of the environment and set the Azure cloud environment values.

    设置 Azure 云环境值

  5. 设置环境名称,并选择 Azure 云终结点的 Azure 订阅Set the environment name and select the Azure subscription for the Azure Cloud endpoint.

    选择 Azure 云终结点的 Azure 订阅

  6. 在“应用服务名称”下,设置所需的 Azure 应用服务名称。 Under App service name, set the required Azure app service name.

    设置 Azure 应用服务名称

  7. 在 Azure 云托管环境的“代理队列”下输入“Hosted VS2017”。 Enter "Hosted VS2017" under Agent queue for Azure cloud hosted environment.

    为 Azure 云托管环境设置代理队列

  8. 在“部署 Azure 应用服务”菜单中,为环境选择有效的包或文件夹In Deploy Azure App Service menu, select the valid Package or Folder for the environment. 选择文件夹位置旁边的“确定”。 Select OK to folder location.

    选择 Azure 应用服务环境的包或文件夹

    选择 Azure 应用服务环境的包或文件夹

  9. 保存所有更改并返回发布管道Save all changes and go back to release pipeline.

    在发布管道中保存更改

  10. 选择 Azure Stack Hub 应用的生成以添加新项目。Add a new artifact selecting the build for the Azure Stack Hub app.

    为 Azure Stack Hub 应用添加新项目

  11. 通过应用 Azure 应用服务部署额外添加一个环境。Add one more environment by applying the Azure App Service Deployment.

    将环境添加到 Azure 应用服务部署

  12. 将新环境命名为 Azure Stack。Name the new environment Azure Stack.

    为 Azure 应用服务部署中的环境命名

  13. 在“任务”选项卡下找到 Azure Stack 环境。 Find the Azure Stack environment under Task tab.

    Azure Stack 环境

  14. 选择 Azure Stack 终结点的订阅。Select the subscription for the Azure Stack endpoint.

    选择 Azure Stack 终结点的订阅

  15. 将 Azure Stack Web 应用名称设置为应用服务名称。Set the Azure Stack web app name as the App service name.

    设置 Azure Stack Web 应用名称

  16. 选择“Azure Stack 代理”。Select the Azure Stack agent.

    选择“Azure Stack 代理”

  17. 在“部署 Azure 应用服务”部分下,为环境选择有效的包或文件夹Under the Deploy Azure App Service section, select the valid Package or Folder for the environment. 选择文件夹位置旁边的“确定”。 Select OK to folder location.

    选择 Azure 应用服务部署的文件夹

    选择 Azure 应用服务部署的文件夹

  18. 在“变量”选项卡下添加名为 VSTS\_ARM\_REST\_IGNORE\_SSL\_ERRORS 的变量,将其值设置为 true,将范围设置为 Azure Stack。Under Variable tab add a variable named VSTS\_ARM\_REST\_IGNORE\_SSL\_ERRORS, set its value as true, and scope to Azure Stack.

    将变量添加到 Azure 应用部署

  19. 选择两个项目中的“持续”部署触发器图标,并启用“持续”部署触发器。 Select the Continuous deployment trigger icon in both artifacts and enable the Continues deployment trigger.

    选择持续部署触发器

  20. 选择 Azure Stack 环境中的“部署前”条件图标,并将触发器设置为“发布后”。 Select the Pre-deployment conditions icon in the Azure Stack environment and set the trigger to After release.

    选择部署前的条件

  21. 保存所有更改。Save all changes.

Note

任务的某些设置可能已在从模板创建发布定义时自动定义为环境变量Some settings for the tasks may have been automatically defined as environment variables when creating a release definition from a template. 无法在任务设置中修改这些设置;必须选择父环境项才能编辑这些设置。These settings can't be modified in the task settings; instead, the parent environment item must be selected to edit these settings.

通过 Visual Studio 发布到 Azure Stack HubPublish to Azure Stack Hub via Visual Studio

通过创建终结点,Visual Studio Online (VSTO) 生成可以将 Azure 服务应用部署到 Azure Stack Hub。By creating endpoints, a Visual Studio Online (VSTO) build can deploy Azure Service apps to Azure Stack Hub. Azure Pipelines 会连接到生成代理,而后者会连接到 Azure Stack Hub。Azure Pipelines connects to the build agent, which connects to Azure Stack Hub.

  1. 登录到 VSTO,然后导航到应用设置页。Sign in to VSTO and navigate to the app settings page.

  2. 在“设置”中,选择“安全性”。 On Settings, select Security.

  3. 在“VSTS 组”中,选择“终结点创建者”。 In VSTS Groups, select Endpoint Creators.

  4. 在“成员”选项卡上,选择“添加”。 On the Members tab, select Add.

  5. 在“添加用户和组”中输入用户名,然后从用户列表中选择该用户。 In Add users and groups, enter a user name and select that user from the list of users.

  6. 选择“保存更改”。 Select Save changes.

  7. 在“VSTS 组”列表中,选择“终结点管理员”。 In the VSTS Groups list, select Endpoint Administrators.

  8. 在“成员”选项卡上,选择“添加”。 On the Members tab, select Add.

  9. 在“添加用户和组”中输入用户名,然后从用户列表中选择该用户。 In Add users and groups, enter a user name and select that user from the list of users.

  10. 选择“保存更改”。 Select Save changes.

获取终结点信息后,可以使用 Azure Pipelines 到 Azure Stack Hub 的连接。Now that the endpoint information exists, the Azure Pipelines to Azure Stack Hub connection is ready to use. Azure Stack Hub 中的生成代理会从 Azure Pipelines 获取指令,然后,此代理会传达与 Azure Stack Hub 通信所需的终结点信息。The build agent in Azure Stack Hub gets instructions from Azure Pipelines, and then the agent conveys endpoint information for communication with Azure Stack Hub.

开发应用程序生成Develop the application build

Note

需要在 Azure Stack Hub 上创建适当的合成映像用于运行 Windows Server 和 SQL,并需要部署应用服务。Azure Stack Hub with proper images syndicated to run (Windows Server and SQL) and App Service deployment are required. 有关详细信息,请查看应用服务文档开始使用 Azure Stack Hub 上的应用服务之前For more information, review the App Service documentation Before you get started with App Service on Azure Stack Hub.

使用 Azure 资源管理器模板(例如 Azure Repos 中的 Web 应用代码)将内容部署到这两个云。Use Azure Resource Manager templates like web app code from Azure Repos to deploy to both clouds.

向 Azure Repos 项目添加代码Add code to an Azure Repos project

  1. 使用在 Azure Stack Hub 上拥有项目创建权限的帐户登录到 Azure Repos。Sign in to Azure Repos with an account that has project creation rights on Azure Stack Hub. 下一屏幕捕获显示如何连接到 HybridCICD 项目。The next screen capture shows how to connect to the HybridCICD project.

  2. 创建并打开默认 Web 应用以克隆存储库Clone the repository by creating and opening the default web app.

为这两个云中的应用服务创建独立的 Web 应用部署Create self-contained web app deployment for App Services in both clouds

  1. 编辑 WebApplication.csproj 文件:选择 Runtimeidentifier 并添加 win10-x64Edit the WebApplication.csproj file: Select Runtimeidentifier and then add win10-x64. 有关详细信息,请参阅独立部署文档。For more information, see Self-contained deployment documentation.

  2. 使用团队资源管理器将代码签入 Azure Repos。Use Team Explorer to check the code into Azure Repos.

  3. 确认应用代码已签入 Azure Repos。Confirm that the app code was checked into Azure Repos.

创建生成定义Create the build definition

  1. 使用可以创建生成定义的帐户登录到 Azure Pipelines。Sign in to Azure Pipelines with an account that can create a build definition.

  2. 导航到项目的“生成 Web 应用程序”页。 Navigate to the Build Web Application page for the project.

  3. 在“参数”中, 添加 -r win10-x64 代码。In Arguments, add -r win10-x64 code. 在 .NET Core 中触发独立部署时需要添加此代码。This addition is required to trigger a self-contained deployment with .NET Core.

  4. 运行生成。Run the build. 独立部署生成过程将发布可在 Azure 和 Azure Stack Hub 上运行的项目。The self-contained deployment build process will publish artifacts that can run on Azure and Azure Stack Hub.

使用 Azure 托管生成代理Use an Azure hosted build agent

在 Azure Pipelines 中使用托管生成代理是生成和部署 Web 应用的便捷做法。Using a hosted build agent in Azure Pipelines is a convenient option to build and deploy web apps. 维护和升级由 Azure 自动执行,使开发周期持续而不间断。Maintenance and upgrades are done automatically by Azure, enabling a continuous and uninterrupted development cycle.

配置持续部署 (CD) 过程Configure the continuous deployment (CD) process

Azure Pipelines 和 Azure DevOps Services 提供高度可配置、可管理的管道,用于将内容发布到多个环境(例如开发、过渡、质量保证 (QA) 和生产)。Azure Pipelines and Azure DevOps Services provide a highly configurable and manageable pipeline for releases to multiple environments such as development, staging, quality assurance (QA), and production. 此过程可能包括要求在应用程序生命周期的特定阶段进行审批。This process can include requiring approvals at specific stages of the application life cycle.

创建发布定义Create release definition

创建发布定义是应用程序生成过程中的最后一步。Creating a release definition is the final step in the application build process. 此发布定义用于创建一个发布并部署一个生成。This release definition is used to create a release and deploy a build.

  1. 登录到 Azure Pipelines,然后导航到项目的“生成和发布”。 Sign in to Azure Pipelines and navigate to Build and Release for the project.

  2. 在“发布”选项卡上选择“[ + ]”,然后选择“创建发布定义”。 On the Releases tab, select [ + ] and then pick Create release definition.

  3. 在“选择模板”上选择“Azure 应用服务部署”,然后选择“应用”。 On Select a Template, choose Azure App Service Deployment, and then select Apply.

  4. 在“添加项目”的“源(生成定义)”中,选择“Azure 云生成应用”。 On Add artifact, from the Source (Build definition), select the Azure Cloud build app.

  5. 在“管道”选项卡上选择“1 阶段,1 任务”链接,以便查看环境任务On the Pipeline tab, select the 1 Phase, 1 Task link to View environment tasks.

  6. 在“任务”选项卡上输入 Azure 作为“环境名称”,然后从“Azure 订阅”列表中选择“AzureCloud Traders-Web EP”。 On the Tasks tab, enter Azure as the Environment name and select the AzureCloud Traders-Web EP from the Azure subscription list.

  7. 输入 Azure 应用服务名称,即下一屏幕截图中的 northwindtradersEnter the Azure app service name, which is northwindtraders in the next screen capture.

  8. 从“代理队列”列表中选择“托管的 VS2017”作为“代理阶段” 。For the Agent phase, select Hosted VS2017 from the Agent queue list.

  9. 在“部署 Azure 应用服务”中,为环境选择有效的包或文件夹In Deploy Azure App Service, select the valid Package or folder for the environment.

  10. 确认“选择文件或文件夹”中的“Location”后,选择“确定”。 In Select File or Folder, select OK to Location.

  11. 保存所有更改后,回到“管道” 。Save all changes and go back to Pipeline.

  12. 在“管道”选项卡上选择“添加项目”,然后从“源(生成定义)”列表中选择“NorthwindCloud Traders-Vessel”。 On the Pipeline tab, select Add artifact, and choose the NorthwindCloud Traders-Vessel from the Source (Build Definition) list.

  13. 在“选择模板”中添加另一环境。 On Select a Template, add another environment. 选取“Azure 应用服务部署”,然后选择“应用”。 Pick Azure App Service Deployment and then select Apply.

  14. 输入 Azure Stack Hub 作为“环境名称”。 Enter Azure Stack Hub as the Environment name.

  15. 在“任务”选项卡上,找到并选择“Azure Stack Hub”。 On the Tasks tab, find and select Azure Stack Hub.

  16. 从“Azure 订阅”列表中选择“AzureStack Traders-Vessel EP”作为“Azure Stack Hub 终结点” 。From the Azure subscription list, select AzureStack Traders-Vessel EP for the Azure Stack Hub endpoint.

  17. 输入 Azure Stack Hub Web 应用名称作为应用服务名称Enter the Azure Stack Hub web app name as the App service name.

  18. 从“代理选择”下的“代理队列”列表中选取“AzureStack -b Douglas Fir” 。Under Agent selection, pick AzureStack -b Douglas Fir from the Agent queue list.

  19. 至于“部署 Azure 应用服务”,请为环境选择有效的包或文件夹For Deploy Azure App Service, select the valid Package or folder for the environment. 确认“选择文件或文件夹”中的“Location”文件夹后,选择“确定”。 On Select File Or Folder, select OK for the folder Location.

  20. 在“变量”选项卡上,找到名为 VSTS\_ARM\_REST\_IGNORE\_SSL\_ERRORS 的变量。 On the Variable tab, find the variable named VSTS\_ARM\_REST\_IGNORE\_SSL\_ERRORS. 将变量值设置为 true,将其范围设置为 Azure Stack HubSet the variable value to true, and set its scope to Azure Stack Hub.

  21. 在“管道”选项卡上,选择 NorthwindCloud Traders-Web 项目对应的“持续部署触发器”图标,然后将“持续部署触发器”设置为“启用”。 On the Pipeline tab, select the Continuous deployment trigger icon for the NorthwindCloud Traders-Web artifact and set the Continuous deployment trigger to Enabled. 针对“NorthwindCloud Traders-Vessel”项目执行相同的操作。 Do the same thing for the NorthwindCloud Traders-Vessel artifact.

  22. 至于 Azure Stack Hub 环境,请选择“部署前条件”图标,并将触发器设置为“发布后”。 For the Azure Stack Hub environment, select the Pre-deployment conditions icon set the trigger to After release.

  23. 保存所有更改。Save all changes.

Note

发布任务的某些设置将在从模板创建发布定义时自动定义为环境变量Some settings for release tasks are automatically defined as environment variables when creating a release definition from a template. 无法在任务设置中修改这些设置,但可以在父环境项中修改。These settings can't be modified in the task settings, but can be modified in the parent environment items.

创建发布Create a release

  1. 在“管道”选项卡上打开“发布”列表,然后选择“创建发布”。 On the Pipeline tab, open the Release list and select Create release.

  2. 输入发布的说明,查看是否选择了正确的项目,然后选择“创建”。 Enter a description for the release, check to see that the correct artifacts are selected, and then select Create. 片刻之后,将会出现一个横幅,指出已创建新的发布,发布名称以链接形式显示。After a few moments, a banner appears indicating that the new release was created and the release name is displayed as a link. 选择该链接,查看发布摘要页。Select the link to see the release summary page.

  3. 发布摘要页显示发布详细信息。The release summary page shows details about the release. 在下面的针对“Release-2”的屏幕捕获中,“环境”部分显示 Azure 的“部署状态”为“正在进行”,Azure Stack Hub 的状态为“成功” 。In the following screen capture for "Release-2", the Environments section shows the Deployment status for Azure as "IN PROGRESS", and the status for Azure Stack Hub is "SUCCEEDED". 当 Azure 环境的部署状态变为“成功”以后,会显示一个横幅,指示可以审批发布了。When the deployment status for the Azure environment changes to "SUCCEEDED", a banner appears indicating that the release is ready for approval. 如果部署挂起或失败,则会显示一个蓝色的 (i) 信息图标。When a deployment is pending or has failed, a blue (i) information icon is shown. 将鼠标悬停在图标上方即可看到一个弹出窗口,其中包含延迟或失败的原因。Hover over the icon to see a pop-up that contains the reason for delay or failure.

  4. 其他视图(例如发布列表)也会显示一个图标,指示正在等待审批。Other views, such as the list of releases, also display an icon that indicates approval is pending. 此图标的弹出窗口会显示环境名称以及与部署相关的更多详细信息。The pop-up for this icon shows the environment name and more details related to the deployment. 管理员可以很容易地查看发布的总体进度以及哪些发布正在等待审批。It's easy for an administrator see the overall progress of releases and see which releases are waiting for approval.

监视和跟踪部署Monitor and track deployments

  1. 在“Release-2”摘要页中选择“日志” 。On the Release-2 summary page, select Logs. 部署期间,此页显示代理的实时日志。During a deployment, this page shows the live log from the agent. 左窗格显示每个环境的部署过程中每个操作的状态。The left pane shows the status of each operation in the deployment for each environment.

  2. 选择部署前或部署后审批活动的“操作”列中的人员图标,查看部署批准者(或拒绝者)及其提供的消息。 Select the person icon in the Action column for a pre-deployment or post-deployment approval to see who approved (or rejected) the deployment, and the message they provided.

  3. 部署完成后,整个日志文件会显示在右窗格中。After the deployment finishes, the entire log file is displayed in the right pane. 选择左窗格中的任何步骤以查看单个步骤(例如“初始化作业”)的日志文件。 Select any Step in the left pane to see the log file for a single step, such as Initialize Job. 有了查看单个日志的功能,就可以更轻松地跟踪和调试整体部署的部件。The ability to see individual logs makes it easier to trace and debug parts of the overall deployment. 保存某个步骤的日志文件,或者以 Zip 格式下载所有日志Save the log file for a step, or Download all logs as zip.

  4. 打开“摘要”选项卡,查看有关该发布的常规信息。 Open the Summary tab to see general information about the release. 此视图详细显示了该发布所部署到的生成和环境、部署状态,以及有关该发布的其他信息。This view shows details about the build, the environments it was deployed to, deployment status, and other information about the release.

  5. 选择环境链接(“Azure”或“Azure Stack Hub”),查看部署到特定环境的现有部署和待定部署的相关信息 。Select an environment link (Azure or Azure Stack Hub) to see information about existing and pending deployments to a specific environment. 使用这些视图快速验证同一个生成是否已部署到这两个环境。Use these views as a quick way to verify that the same build was deployed to both environments.

  6. 在浏览器中打开已部署的生产应用Open the deployed production app in a browser. 例如,对于 Azure 应用服务网站,请打开 URL https://[your-app-name\].chinacloudsites.cnFor example, for the Azure App Services website, open the URL https://[your-app-name\].chinacloudsites.cn.

Azure 与 Azure Stack Hub 的集成提供可缩放的跨云解决方案Integration of Azure and Azure Stack Hub provides a scalable cross-cloud solution

灵活可靠的多云服务提供数据安全性、备份和冗余、一致且快速的可用性、可缩放的存储和分发,以及异地兼容的路由。A flexible and robust multi-cloud service provides data security, back up and redundancy, consistent and rapid availability, scalable storage and distribution, and geo-compliant routing. 此手动触发过程可确保在托管的 Web 应用之间提供高效可靠的负载切换,使关键数据即时可用。This manually triggered process ensures reliable and efficient load switching between hosted web apps and immediate availability of crucial data.