From 5c788d3209fc5a5677cfdc068b661e7d56b74bbe Mon Sep 17 00:00:00 2001 From: Brian Moore Date: Tue, 7 Jan 2020 10:49:41 -0600 Subject: [PATCH] updates to use tenantResourceId() function --- ARM/deployments/landingZoneMgStructure.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ARM/deployments/landingZoneMgStructure.json b/ARM/deployments/landingZoneMgStructure.json index 3739fc1..412547e 100644 --- a/ARM/deployments/landingZoneMgStructure.json +++ b/ARM/deployments/landingZoneMgStructure.json @@ -2,9 +2,9 @@ "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { - "rootGroupParentId": { + "rootGroupParentName": { "type": "string", - "defaultValue": "/providers/Microsoft.Management/managementGroups/ARMMSP", + "defaultValue": "ARMMSP", "metadata": { "description": "This is the root management group, and all management groups will be child to this one." } @@ -51,7 +51,7 @@ "displayName": "[parameters('platformMgs')[copyIndex()]]", "details": { "parent": { - "id": "[parameters('rootGroupParentId')]" + "id": "[tenantResourceId('Microsoft.Management/managementGroups', parameters('rootGroupParentName'))]" } } } @@ -64,7 +64,7 @@ "displayName": "[parameters('landingZoneMg')]", "details": { "parent": { - "id": "[parameters('rootGroupParentId')]" + "id": "[tenantResourceId('Microsoft.Management/managementGroups', parameters('rootGroupParentName'))]" } } } @@ -84,11 +84,11 @@ "displayName": "[parameters('landingZonePortfolioMgs')[copyIndex()]]", "details": { "parent": { - "id": "[concat('/providers/Microsoft.Management/managementGroups/', parameters('landingZoneMg'))]" + "id": "[tenantResourceId('Microsoft.Management/managementGroups', parameters('landingZoneMg'))]" } } } } ], "outputs": {} -} \ No newline at end of file +}