Skip to content

Commit

Permalink
Fix: Add Missing Queues to Infrastructure Script (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
aymenfurter authored Oct 20, 2024
1 parent 9f91831 commit 59e2ac3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
9 changes: 8 additions & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,14 @@ module storage 'core/storage/storage-account.bicep' = {
name: 'Standard_GRS'
}
containers: []
queues: []
queues: [
{
name: 'indexing'
}
{
name: 'ingestion'
}
]
}
}

Expand Down
35 changes: 35 additions & 0 deletions infrastructure/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,16 @@
"value": {
"name": "Standard_GRS"
}
},
"queues": {
"value": [
{
"name": "indexing"
},
{
"name": "ingestion"
}
]
}
},
"template": {
Expand All @@ -421,6 +431,9 @@
},
"sku": {
"type": "object"
},
"queues": {
"type": "array"
}
},
"resources": [
Expand All @@ -437,7 +450,29 @@
"supportsHttpsTrafficOnly": true,
"minimumTlsVersion": "TLS1_2"
}
},
{
"type": "Microsoft.Storage/storageAccounts/queueServices",
"apiVersion": "2022-05-01",
"name": "[format('{0}/default', parameters('name'))]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('name'))]"
],
"properties": {}
},
{
"type": "Microsoft.Storage/storageAccounts/queueServices/queues",
"apiVersion": "2022-05-01",
"name": "[format('{0}/default/{1}', parameters('name'), parameters('queues')[copyIndex()].name)]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/queueServices', parameters('name'), 'default')]"
],
"copy": {
"name": "queuesCopy",
"count": "[length(parameters('queues'))]"
}
}

],
"outputs": {
"id": {
Expand Down

0 comments on commit 59e2ac3

Please sign in to comment.