Skip to content

Commit 84b1a57

Browse files
committed
add tenant level to rest deploy
1 parent b330b7c commit 84b1a57

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 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

@@ -17,25 +17,33 @@ You can target your deployment to a management group, an Azure subscription, or
1717
To deploy to a **resource group**, use [Deployments - Create](/rest/api/resources/deployments/createorupdate). The request is sent to:
1818

1919
```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
2121
```
2222

2323
To deploy to a **subscription**, use [Deployments - Create At Subscription Scope](/rest/api/resources/deployments/createorupdateatsubscriptionscope). The request is sent to:
2424

2525
```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
2727
```
2828

2929
For more information about subscription level deployments, see [Create resource groups and resources at the subscription level](deploy-to-subscription.md).
3030

3131
To deploy to a **management group**, use [Deployments - Create At Management Group Scope](/rest/api/resources/deployments/createorupdateatmanagementgroupscope). The request is sent to:
3232

3333
```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
3535
```
3636

3737
For more information about management group level deployments, see [Create resources at the management group level](deploy-to-management-group.md).
3838

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+
3947
The examples in this article use resource group deployments.
4048

4149
## Deploy with the REST API
@@ -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)