From b58ff42a5153dd1901e3139d960729f3a977a634 Mon Sep 17 00:00:00 2001 From: Ganga Mahesh Siddem Date: Wed, 16 Mar 2022 12:32:35 -0700 Subject: [PATCH] Gangams/msi onboarding arm template updates for AKS (#721) * msi arm template updates * handle space in location --- .../onboarding-using-msi-auth/existingClusterOnboarding.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/onboarding/aks/onboarding-using-msi-auth/existingClusterOnboarding.json b/scripts/onboarding/aks/onboarding-using-msi-auth/existingClusterOnboarding.json index c77e3203d..d5b613537 100644 --- a/scripts/onboarding/aks/onboarding-using-msi-auth/existingClusterOnboarding.json +++ b/scripts/onboarding/aks/onboarding-using-msi-auth/existingClusterOnboarding.json @@ -35,7 +35,7 @@ "dcrResourceTagValues": { "type": "object", "metadata": { - "description": "Existing or new tags on DCR Cluster Resource" + "description": "Existing or new tags on DCR Resource" } } }, @@ -43,9 +43,10 @@ "clusterSubscriptionId": "[split(parameters('aksResourceId'),'/')[2]]", "clusterResourceGroup": "[split(parameters('aksResourceId'),'/')[4]]", "clusterName": "[split(parameters('aksResourceId'),'/')[8]]", + "clusterLocation": "[replace(parameters('aksResourceLocation'),' ', '')]", "workspaceSubscriptionId": "[split(parameters('workspaceResourceId'),'/')[2]]", "workspaceResourceGroup": "[split(parameters('workspaceResourceId'),'/')[4]]", - "dcrName": "[Concat('MSCI', '-', split(parameters('workspaceResourceId'),'/')[8])]", + "dcrName": "[Concat('MSCI', '-', variables('clusterName'), '-', variables('clusterLocation'))]", "associationName": "ContainerInsightsExtension", "dataCollectionRuleId": "[resourceId(variables('workspaceSubscriptionId'), variables('workspaceResourceGroup'), 'Microsoft.Insights/dataCollectionRules', variables('dcrName'))]" },