Skip to content

Commit a37f618

Browse files
committed
update
1 parent b2ea9b4 commit a37f618

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed
25.7 KB
Loading
17.3 KB
Loading

articles/azure-resource-manager/resource-manager-deployment-operations.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Azure Resource Manager enables you to view your deployment history and examine s
1111

1212
For help with resolving particular deployment errors, see [Resolve common errors when deploying resources to Azure with Azure Resource Manager](resource-manager-common-deployment-errors.md).
1313

14-
## Get deployments
14+
## Get deployments and correlation ID
1515

1616
To get details about a deployment from the deployment history use portal, PowerShell, Azure CLI, or REST API.
1717

@@ -39,7 +39,7 @@ To list all deployments for a resource group, use the [Get-AzResourceGroupDeploy
3939
Get-AzResourceGroupDeployment -ResourceGroupName ExampleGroup
4040
```
4141

42-
To get a specific deployment from a resource group, use the **DeploymentName** parameter.
42+
To get a specific deployment from a resource group, add the **DeploymentName** parameter.
4343

4444
```azurepowershell-interactive
4545
Get-AzResourceGroupDeployment -ResourceGroupName ExampleGroup -DeploymentName ExampleDeployment
@@ -65,21 +65,27 @@ To get a specific deployment, use the [azure group deployment show](/cli/azure/g
6565
az group deployment show --resource-group ExampleGroup --name ExampleDeployment
6666
```
6767

68-
The correlation ID is used to track related events, and can be helpful when working with technical support to troubleshoot a deployment.
68+
The correlation ID is used to track related events. It can be helpful when working with technical support to troubleshoot a deployment. To get the correlation ID, use:
6969

7070
```azurecli-interactive
71-
az group deployment show -g ExampleGroup -n ExampleDeployment --query properties.correlationId
71+
az group deployment show --resource-group ExampleGroup --name ExampleDeployment --query properties.correlationId
7272
```
7373

7474
# [HTTP](#tab/http)
7575

76-
The following example shows how to get information about a deployment. For documentation about the latest API version, see the [Deployments - Get](/rest/api/resources/deployments/get) operation.
76+
To list the deployments for a resource group, use the [Deployments - List By Resource Group](/rest/api/resources/deployments/listbyresourcegroup) operation.
77+
78+
```
79+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/?api-version={api-version}
80+
```
81+
82+
To get a specific deployment. use the [Deployments - Get](/rest/api/resources/deployments/get) operation.
7783

7884
```
7985
GET https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{resource-group-name}/providers/microsoft.resources/deployments/{deployment-name}?api-version={api-version}
8086
```
8187

82-
In the response, note in particular the **provisioningState**, **correlationId**, and **error** elements. The **correlationId** is used to track related events, and can be helpful when working with technical support to troubleshoot a deployment.
88+
The response includes the correlation ID, which is used to track related events. It can be helpful when working with technical support to troubleshoot a deployment.
8389

8490
```json
8591
{
@@ -104,13 +110,13 @@ To get details about a deployment from the deployment history use portal, PowerS
104110

105111
# [Portal](#tab/azure-portal)
106112

107-
1. To see deployment operations, select **Operation details**.
113+
1. On the summary for a deployment, select **Operation details**.
108114

109-
![Select deployment operations](./media/resource-manager-deployment-operations/select-deployment-operations.png)
115+
![Select deployment operations](./media/resource-manager-deployment-operations/get-operation-details.png)
110116

111117
1. You see the details for that step of the deployment.
112118

113-
![Show operation details](./media/resource-manager-deployment-operations/show-operation-details.png)
119+
![Show operation details](./media/resource-manager-deployment-operations/see-operation-details.png)
114120

115121
# [PowerShell](#tab/azure-powershell)
116122

0 commit comments

Comments
 (0)