Skip to content

Commit 3a6891f

Browse files
authored
Merge pull request #115892 from tfitzmac/0520rest
add tenant level to rest deploy
2 parents fb504f8 + e7dd5d7 commit 3a6891f

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

articles/azure-resource-manager/templates/deploy-rest.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Deploy resources with REST API and template
33
description: Use Azure Resource Manager and Resource Manager REST API to deploy resources to Azure. The resources are defined in a Resource Manager template.
44
ms.topic: conceptual
5-
ms.date: 06/04/2019
5+
ms.date: 05/20/2020
66
---
77
# Deploy resources with ARM templates and Resource Manager REST API
88

@@ -14,27 +14,35 @@ You can either include your template in the request body or link to a file. When
1414

1515
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.
1616

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:
1818

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+
```
2222

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:
2424

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+
```
2828

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).
3030

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:
3232

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+
```
3636

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).
3846

3947
The examples in this article use resource group deployments.
4048

@@ -45,7 +53,7 @@ The examples in this article use resource group deployments.
4553
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).
4654

4755
```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
4957
```
5058

5159
With a request body like:
@@ -64,7 +72,7 @@ The examples in this article use resource group deployments.
6472
1. To deploy a template, provide your subscription ID, the name of the resource group, the name of the deployment in the request URI.
6573

6674
```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
6876
```
6977

7078
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.
178186
1. To get the status of the template deployment, use [Deployments - Get](/rest/api/resources/deployments/get).
179187

180188
```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
182190
```
183191

184192
## Next steps

0 commit comments

Comments
 (0)