From 973f2ee945c2d0fd46ceedde5bcff4248cefc6ad Mon Sep 17 00:00:00 2001 From: luxu-ms Date: Fri, 26 Apr 2024 03:04:15 +0000 Subject: [PATCH] Rebuild ARM templates --- .../Todo-Mongo-AKS-LA/azuredeploy.json | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/Environments/Todo-Mongo-AKS-LA/azuredeploy.json b/Environments/Todo-Mongo-AKS-LA/azuredeploy.json index aab04df..4012e52 100644 --- a/Environments/Todo-Mongo-AKS-LA/azuredeploy.json +++ b/Environments/Todo-Mongo-AKS-LA/azuredeploy.json @@ -5,18 +5,10 @@ "_generator": { "name": "bicep", "version": "0.26.170.59819", - "templateHash": "16300934613283283194" + "templateHash": "6446845623446854055" } }, "parameters": { - "environmentName": { - "type": "string", - "minLength": 1, - "maxLength": 64, - "metadata": { - "description": "Name of the the environment which is used to generate a short unique hash used in all resources." - } - }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", @@ -198,10 +190,7 @@ }, "sharedAKSResourceGroup": "[format('{0}-{1}', parameters('sharedAKSProjectName'), parameters('sharedAKSEnvironmentName'))]", "abbrs": "[variables('$fxv#0')]", - "resourceToken": "[toLower(uniqueString(subscription().id, parameters('environmentName'), parameters('location')))]", - "tags": { - "azd-env-name": "[parameters('environmentName')]" - } + "resourceToken": "[toLower(uniqueString(subscription().id, resourceGroup().id, parameters('location')))]" }, "resources": [ { @@ -219,8 +208,7 @@ "name": "[format('{0}/{1}', if(not(empty(parameters('configStoreName'))), parameters('configStoreName'), format('{0}{1}', variables('abbrs').appConfigurationConfigurationStores, variables('resourceToken'))), 'AZURE_COSMOS_CONNECTION_STRING_KEY')]", "properties": { "value": "[reference(resourceId('Microsoft.Resources/deployments', 'cosmos'), '2022-09-01').outputs.connectionStringKey.value]", - "contentType": "[parameters('contentType')]", - "tags": "[variables('tags')]" + "contentType": "[parameters('contentType')]" }, "dependsOn": [ "[resourceId('Microsoft.AppConfiguration/configurationStores', if(not(empty(parameters('configStoreName'))), parameters('configStoreName'), format('{0}{1}', variables('abbrs').appConfigurationConfigurationStores, variables('resourceToken'))))]", @@ -233,8 +221,7 @@ "name": "[format('{0}/{1}', if(not(empty(parameters('configStoreName'))), parameters('configStoreName'), format('{0}{1}', variables('abbrs').appConfigurationConfigurationStores, variables('resourceToken'))), 'AZURE_COSMOS_DATABASE_NAME')]", "properties": { "value": "[reference(resourceId('Microsoft.Resources/deployments', 'cosmos'), '2022-09-01').outputs.databaseName.value]", - "contentType": "[parameters('contentType')]", - "tags": "[variables('tags')]" + "contentType": "[parameters('contentType')]" }, "dependsOn": [ "[resourceId('Microsoft.AppConfiguration/configurationStores', if(not(empty(parameters('configStoreName'))), parameters('configStoreName'), format('{0}{1}', variables('abbrs').appConfigurationConfigurationStores, variables('resourceToken'))))]", @@ -247,8 +234,7 @@ "name": "[format('{0}/{1}', if(not(empty(parameters('configStoreName'))), parameters('configStoreName'), format('{0}{1}', variables('abbrs').appConfigurationConfigurationStores, variables('resourceToken'))), 'AZURE_KEY_VAULT_ENDPOINT')]", "properties": { "value": "[reference(resourceId('Microsoft.Resources/deployments', 'keyvault'), '2022-09-01').outputs.endpoint.value]", - "contentType": "[parameters('contentType')]", - "tags": "[variables('tags')]" + "contentType": "[parameters('contentType')]" }, "dependsOn": [ "[resourceId('Microsoft.AppConfiguration/configurationStores', if(not(empty(parameters('configStoreName'))), parameters('configStoreName'), format('{0}{1}', variables('abbrs').appConfigurationConfigurationStores, variables('resourceToken'))))]", @@ -269,9 +255,6 @@ "location": { "value": "[parameters('location')]" }, - "tags": { - "value": "[variables('tags')]" - }, "principalId": { "value": "[parameters('principalId')]" } @@ -645,9 +628,6 @@ "location": { "value": "[parameters('location')]" }, - "tags": { - "value": "[variables('tags')]" - }, "keyVaultName": { "value": "[reference(resourceId('Microsoft.Resources/deployments', 'keyvault'), '2022-09-01').outputs.name.value]" }