本文内容

使用 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.

获取部署和相关 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.

获取部署操作和错误消息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.

若要获取部署操作，请使用以下操作。To get deployment operations, use the following operation.如需在请求中使用的最新 API 版本号，请参阅部署操作 - 列出。For the latest API version number to use in the request, see Deployment Operations - List.

GET https://management.chinacloudapi.cn/subscriptions/{subscription-id}/resourcegroups/{resource-group-name}/providers/microsoft.resources/deployments/{deployment-name}/operations?$skiptoken={skiptoken}&api-version={api-version}