Skip to content

Commit 9aaa32d

Browse files
Add STORAGE_QUEUE_ACCOUNT env var for processor container app
The processor code reads STORAGE_QUEUE_ACCOUNT (not STORAGE_ACCOUNT_NAME) to build the queue service URL. Without it, the default value 'http://<storage queue url>' was used, causing a double-prefixed URL (https://http://...) and DNS resolution failure for host 'http'. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6b72d16 commit 9aaa32d

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
22

33
name: container-migration-solution-accelerator
4-
metadata:
5-
template: container-migration-solution-accelerator@1.0
4+
#metadata:
5+
# template: container-migration-solution-accelerator@1.0
66

77
requiredVersions:
88
azd: '>=1.18.2 != 1.23.9'

infra/avm/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ module ca_processor './modules/compute/container-app.bicep' = {
446446
{ name: 'COSMOS_DB_PROCESS_LOG_CONTAINER', value: 'agent_telemetry' }
447447
{ name: 'STORAGE_ACCOUNT_BLOB_URL', value: storage_account.outputs.blobEndpoint }
448448
{ name: 'STORAGE_ACCOUNT_NAME', value: storage_account.outputs.name }
449+
{ name: 'STORAGE_QUEUE_ACCOUNT', value: storage_account.outputs.name }
449450
{ name: 'STORAGE_ACCOUNT_PROCESS_CONTAINER', value: processBlobContainerName }
450451
{ name: 'STORAGE_ACCOUNT_PROCESS_QUEUE', value: processQueueName }
451452
{ name: 'STORAGE_ACCOUNT_QUEUE_URL', value: '${storage_account.outputs.serviceEndpoints.queue}' }

infra/avm/main.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.43.8.12551",
9-
"templateHash": "7007616429319982719"
9+
"templateHash": "8048225901792134665"
1010
}
1111
},
1212
"parameters": {
@@ -26574,6 +26574,10 @@
2657426574
"name": "STORAGE_ACCOUNT_NAME",
2657526575
"value": "[reference('storage_account').outputs.name.value]"
2657626576
},
26577+
{
26578+
"name": "STORAGE_QUEUE_ACCOUNT",
26579+
"value": "[reference('storage_account').outputs.name.value]"
26580+
},
2657726581
{
2657826582
"name": "STORAGE_ACCOUNT_PROCESS_CONTAINER",
2657926583
"value": "[variables('processBlobContainerName')]"

infra/bicep/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ module ca_processor './modules/compute/container-app.bicep' = {
425425
{ name: 'COSMOS_DB_PROCESS_LOG_CONTAINER', value: 'agent_telemetry' }
426426
{ name: 'STORAGE_ACCOUNT_BLOB_URL', value: storage_account.outputs.blobEndpoint }
427427
{ name: 'STORAGE_ACCOUNT_NAME', value: storage_account.outputs.name }
428+
{ name: 'STORAGE_QUEUE_ACCOUNT', value: storage_account.outputs.name }
428429
{ name: 'STORAGE_ACCOUNT_PROCESS_CONTAINER', value: processBlobContainerName }
429430
{ name: 'STORAGE_ACCOUNT_PROCESS_QUEUE', value: processQueueName }
430431
{ name: 'STORAGE_ACCOUNT_QUEUE_URL', value: '${storage_account.outputs.serviceEndpoints.queue}' }

infra/bicep/main.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.43.8.12551",
8-
"templateHash": "14953942141545849982"
8+
"templateHash": "3814539587045672304"
99
}
1010
},
1111
"parameters": {
@@ -2279,6 +2279,10 @@
22792279
"name": "STORAGE_ACCOUNT_NAME",
22802280
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', take(format('module.storage-account.{0}', parameters('solutionName')), 64)), '2025-04-01').outputs.name.value]"
22812281
},
2282+
{
2283+
"name": "STORAGE_QUEUE_ACCOUNT",
2284+
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', take(format('module.storage-account.{0}', parameters('solutionName')), 64)), '2025-04-01').outputs.name.value]"
2285+
},
22822286
{
22832287
"name": "STORAGE_ACCOUNT_PROCESS_CONTAINER",
22842288
"value": "[variables('processBlobContainerName')]"

0 commit comments

Comments
 (0)