You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deploy-rest.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Deploy resources with REST API and template
3
3
description: Use Azure Resource Manager and Resource Manager REST API to deploy resources to Azure. The resources are defined in a Resource Manager template.
4
4
ms.topic: conceptual
5
-
ms.date: 06/04/2019
5
+
ms.date: 05/20/2020
6
6
---
7
7
# Deploy resources with ARM templates and Resource Manager REST API
8
8
@@ -17,25 +17,33 @@ You can target your deployment to a management group, an Azure subscription, or
17
17
To deploy to a **resource group**, use [Deployments - Create](/rest/api/resources/deployments/createorupdate). The request is sent to:
18
18
19
19
```HTTP
20
-
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-05-01
20
+
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
21
21
```
22
22
23
23
To deploy to a **subscription**, use [Deployments - Create At Subscription Scope](/rest/api/resources/deployments/createorupdateatsubscriptionscope). The request is sent to:
24
24
25
25
```HTTP
26
-
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-05-01
26
+
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
27
27
```
28
28
29
29
For more information about subscription level deployments, see [Create resource groups and resources at the subscription level](deploy-to-subscription.md).
30
30
31
31
To deploy to a **management group**, use [Deployments - Create At Management Group Scope](/rest/api/resources/deployments/createorupdateatmanagementgroupscope). The request is sent to:
32
32
33
33
```HTTP
34
-
PUT https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-05-01
34
+
PUT https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
35
35
```
36
36
37
37
For more information about management group level deployments, see [Create resources at the management group level](deploy-to-management-group.md).
38
38
39
+
To deploy to a **tenant**, use [Deployments - Create Or Update At Tenant Scope](/rest/api/resources/deployments/createorupdateattenantscope). The request is sent to:
40
+
41
+
```HTTP
42
+
PUT https://management.azure.com/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
43
+
```
44
+
45
+
For more information about management group level deployments, see [Create resources at the tenant level](deploy-to-tenant.md).
46
+
39
47
The examples in this article use resource group deployments.
40
48
41
49
## Deploy with the REST API
@@ -45,7 +53,7 @@ The examples in this article use resource group deployments.
45
53
1. If you don't have an existing resource group, create a resource group. Provide your subscription ID, the name of the new resource group, and location that you need for your solution. For more information, see [Create a resource group](/rest/api/resources/resourcegroups/createorupdate).
46
54
47
55
```HTTP
48
-
PUT https://management.azure.com/subscriptions/<YourSubscriptionId>/resourcegroups/<YourResourceGroupName>?api-version=2019-05-01
56
+
PUT https://management.azure.com/subscriptions/<YourSubscriptionId>/resourcegroups/<YourResourceGroupName>?api-version=2019-10-01
49
57
```
50
58
51
59
With a request body like:
@@ -64,7 +72,7 @@ The examples in this article use resource group deployments.
64
72
1. To deploy a template, provide your subscription ID, the name of the resource group, the name of the deployment in the request URI.
65
73
66
74
```HTTP
67
-
PUT https://management.azure.com/subscriptions/<YourSubscriptionId>/resourcegroups/<YourResourceGroupName>/providers/Microsoft.Resources/deployments/<YourDeploymentName>?api-version=2019-05-01
75
+
PUT https://management.azure.com/subscriptions/<YourSubscriptionId>/resourcegroups/<YourResourceGroupName>/providers/Microsoft.Resources/deployments/<YourDeploymentName>?api-version=2019-10-01
68
76
```
69
77
70
78
In the request body, provide a link to your template and parameter file. For more information about the parameter file, see [Create Resource Manager parameter file](parameter-files.md).
@@ -178,7 +186,7 @@ The examples in this article use resource group deployments.
178
186
1. To get the status of the template deployment, use [Deployments - Get](/rest/api/resources/deployments/get).
179
187
180
188
```HTTP
181
-
GET https://management.azure.com/subscriptions/<YourSubscriptionId>/resourcegroups/<YourResourceGroupName>/providers/Microsoft.Resources/deployments/<YourDeploymentName>?api-version=2018-05-01
189
+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
0 commit comments