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
+26-18Lines changed: 26 additions & 18 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
@@ -14,27 +14,35 @@ You can either include your template in the request body or link to a file. When
14
14
15
15
You can target your deployment to a management group, an Azure subscription, or a resource group. In most cases, you'll target deployments to a resource group. Use management group or subscription deployments to apply policies and role assignments across the specified scope. You also use subscription deployments to create a resource group and deploy resources to it. Depending on the scope of the deployment, you use different commands.
16
16
17
-
To deploy to a **resource group**, use [Deployments - Create](/rest/api/resources/deployments/createorupdate). The request is sent to:
17
+
*To deploy to a **resource group**, use [Deployments - Create](/rest/api/resources/deployments/createorupdate). The request is sent to:
18
18
19
-
```HTTP
20
-
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-05-01
21
-
```
19
+
```HTTP
20
+
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
21
+
```
22
22
23
-
To deploy to a **subscription**, use [Deployments - Create At Subscription Scope](/rest/api/resources/deployments/createorupdateatsubscriptionscope). The request is sent to:
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
-
```HTTP
26
-
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-05-01
27
-
```
25
+
```HTTP
26
+
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
27
+
```
28
28
29
-
For more information about subscription level deployments, see [Create resource groups and resources at the subscription level](deploy-to-subscription.md).
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
-
To deploy to a **management group**, use [Deployments - Create At Management Group Scope](/rest/api/resources/deployments/createorupdateatmanagementgroupscope). The request is sent to:
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
-
```HTTP
34
-
PUT https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-05-01
35
-
```
33
+
```HTTP
34
+
PUT https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}?api-version=2019-10-01
35
+
```
36
36
37
-
For more information about management group level deployments, see [Create resources at the management group level](deploy-to-management-group.md).
37
+
For more information about management group level deployments, see [Create resources at the management group level](deploy-to-management-group.md).
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 tenant level deployments, see [Create resources at the tenant level](deploy-to-tenant.md).
38
46
39
47
The examples in this article use resource group deployments.
40
48
@@ -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