From 91f240e0c13fa33794b3ecff568adfd015f24572 Mon Sep 17 00:00:00 2001 From: Shili Chen Date: Thu, 31 Aug 2023 15:23:45 +0800 Subject: [PATCH] Use dynamic url --- infra/azuredeploy.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infra/azuredeploy.json b/infra/azuredeploy.json index 01cfee06c..3eeea3a3f 100644 --- a/infra/azuredeploy.json +++ b/infra/azuredeploy.json @@ -154,7 +154,6 @@ "applicationInsightsDashboardName": "[format('{0}{1}', variables('abbrs').portalDashboards, variables('resourceToken'))]", "userAssignedManagedIdentityName": "[format('{0}{1}', variables('abbrs').managedIdentityUserAssignedIdentities, variables('resourceToken'))]", "const_ownerRole": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '8e3af657-a8ff-443c-a75c-2fe8c4bcb635')]", - "const_scriptLocation": "https://raw.githubusercontent.com/Azure-Samples/spring-petclinic-microservices/azure/infra/scripts/", "const_uploadScriptName": "deploy-jar-to-asa.sh", "const_checkScriptName": "check-provision-state.ps1", "const_checkingBuilderStateDeploymentName": "checking-build-service-builder-state", @@ -481,7 +480,7 @@ }, "properties": { "azPowerShellVersion": "9.7", - "primaryScriptUri": "[uri(variables('const_scriptLocation'), variables('const_checkScriptName'))]", + "primaryScriptUri": "[uri(deployment().properties.templateLink.uri, concat('scripts/', variables('const_checkScriptName')))]", "environmentVariables": [ { "name": "SUBSCRIPTION_ID", @@ -1946,7 +1945,7 @@ }, "properties": { "AzCliVersion": "2.41.0", - "primaryScriptUri": "[uri(variables('const_scriptLocation'), variables('const_uploadScriptName'))]", + "primaryScriptUri": "[uri(deployment().properties.templateLink.uri, concat('scripts/', variables('const_uploadScriptName')))]", "environmentVariables": [ { "name": "SUBSCRIPTION_ID",