使用 Azure 资源管理器查看部署历史记录View deployment history with Azure Resource Manager

使用 Azure 资源管理器可以查看部署历史记录并检查过去部署中的特定操作。Azure Resource Manager enables you to view your deployment history and examine specific operations in past deployments. 你可以查看已部署的资源,并获取有关任何错误的信息。You can see the resources that were deployed, and get information about any errors.

有关解决特定部署错误的帮助,请参阅解决使用 Azure 资源管理器将资源部署到 Azure 时的常见错误For help with resolving particular deployment errors, see Resolve common errors when deploying resources to Azure with Azure Resource Manager.

获取部署和相关 IDGet deployments and correlation ID

可通过 Azure 门户、PowerShell、Azure CLI 或 REST API 查看部署详细信息。You can view details about a deployment through the Azure portal, PowerShell, Azure CLI, or REST API. 每个部署都有一个相关 ID,用于跟踪相关的事件。Each deployment has a correlation ID, which is used to track related events. 与技术支持人员合作排查部署问题时,它非常有用。It can be helpful when working with technical support to troubleshoot a deployment.

  1. 选择要检查的资源组。Select the resource group you want to examine.

  2. 选择“部署”下面的链接。 Select the link under Deployments.

    选择部署历史记录

  3. 从部署历史记录中选择一个部署。Select one of the deployments from the deployment history.

    选择部署

  4. 会显示部署摘要,包括相关 ID。A summary of the deployment is displayed, including the correlation ID.

    部署摘要

获取部署操作和错误消息Get deployment operations and error message

每个部署可能包括多个操作。Each deployment can include multiple operations. 若要查看某个部署的更多详细信息,请参阅部署操作。To see more details about a deployment, view the deployment operations. 当部署失败时,部署操作会包含一条错误消息。When a deployment fails, the deployment operations include an error message.

  1. 在部署的摘要上,选择“操作详细信息”。 On the summary for a deployment, select Operation details.

    选择部署操作

  2. 会看到部署的该步骤的详细信息。You see the details for that step of the deployment. 发生错误时,详细信息会包含错误消息。When an error occurs, the details include the error message.

    显示操作详细信息

后续步骤Next steps