Skip to content

Commit

Permalink
Use dynamic url
Browse files Browse the repository at this point in the history
  • Loading branch information
moarychan authored and stliu committed Sep 1, 2023
1 parent 039021e commit 91f240e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infra/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 91f240e

Please sign in to comment.