Skip to content

Commit 400d1f8

Browse files
fix: Oneclick deployment issue fix (#1859)
1 parent fc269f5 commit 400d1f8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

infra/main.bicep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,9 @@ output AZURE_TENANT_ID string = tenant().tenantId
13721372
output DOCUMENT_PROCESSING_QUEUE_NAME string = queueName
13731373
output ORCHESTRATION_STRATEGY string = orchestrationStrategy
13741374
output BACKEND_URL string = backendUrl
1375-
output AzureWebJobsStorage string = function.outputs.AzureWebJobsStorage
1375+
output AzureWebJobsStorage string = hostingModel == 'code'
1376+
? function.outputs.AzureWebJobsStorage
1377+
: function_docker.outputs.AzureWebJobsStorage
13761378
output FRONTEND_WEBSITE_NAME string = hostingModel == 'code'
13771379
? web.outputs.FRONTEND_API_URI
13781380
: web_docker.outputs.FRONTEND_API_URI

infra/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.36.1.42791",
8-
"templateHash": "15961130919109930926"
8+
"templateHash": "11323213671656453502"
99
}
1010
},
1111
"parameters": {
@@ -11417,7 +11417,7 @@
1141711417
},
1141811418
"AzureWebJobsStorage": {
1141911419
"type": "string",
11420-
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('rgName')), 'Microsoft.Resources/deployments', parameters('functionName')), '2022-09-01').outputs.AzureWebJobsStorage.value]"
11420+
"value": "[if(equals(parameters('hostingModel'), 'code'), reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('rgName')), 'Microsoft.Resources/deployments', parameters('functionName')), '2022-09-01').outputs.AzureWebJobsStorage.value, reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('rgName')), 'Microsoft.Resources/deployments', format('{0}-docker', parameters('functionName'))), '2022-09-01').outputs.AzureWebJobsStorage.value)]"
1142111421
},
1142211422
"FRONTEND_WEBSITE_NAME": {
1142311423
"type": "string",

0 commit comments

Comments
 (0)