diff --git a/infra/main.bicep b/infra/main.bicep index d6d5e41..90b004f 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -151,7 +151,14 @@ module storage 'core/storage/storage-account.bicep' = { name: 'Standard_GRS' } containers: [] - queues: [] + queues: [ + { + name: 'indexing' + } + { + name: 'ingestion' + } + ] } } diff --git a/infrastructure/deployment.json b/infrastructure/deployment.json index 545057e..8739acc 100644 --- a/infrastructure/deployment.json +++ b/infrastructure/deployment.json @@ -407,6 +407,16 @@ "value": { "name": "Standard_GRS" } + }, + "queues": { + "value": [ + { + "name": "indexing" + }, + { + "name": "ingestion" + } + ] } }, "template": { @@ -421,6 +431,9 @@ }, "sku": { "type": "object" + }, + "queues": { + "type": "array" } }, "resources": [ @@ -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": {