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

通过 Azure 资源管理器,你能够查看部署历史记录。Azure Resource Manager enables you to view your deployment history. 可以检查过去的部署中的特定操作和部署的资源。You can examine specific operations in past deployments and see which resources were deployed. 此历史记录包含有关任何错误的信息。This history contains information about any errors.

一个资源组的部署历史记录限含 800 个部署。The deployment history for a resource group is limited to 800 deployments. 接近限制时,将自动从历史记录中删除部署。As you near the limit, deployments are automatically deleted from the history. 有关详细信息,请参阅从部署历史记录中自动删除For more information, see Automatic deletions from deployment history.

如需帮助解决特定部署错误,请参阅解决使用 Azure Resource Manager 将资源部署到 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. 如果你创建 Azure 支持请求,则客户支持可能会要求你提供相关 ID。If you create an Azure support request, support may ask you for the correlation ID. 客户支持使用相关 ID 来识别失败部署的操作。Support uses the correlation ID to identify the operations for the failed 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