From fca18b77b78c7f11191f829ea6ea20a19ac11883 Mon Sep 17 00:00:00 2001 From: Piotr Wachulec Date: Sat, 20 Apr 2024 08:03:20 +0200 Subject: [PATCH] Add queue for process tags command handling --- src/infra/vm-start-stop.bicep | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/infra/vm-start-stop.bicep b/src/infra/vm-start-stop.bicep index 9940e4b..cc10787 100644 --- a/src/infra/vm-start-stop.bicep +++ b/src/infra/vm-start-stop.bicep @@ -25,6 +25,8 @@ param logAnalyticsWorkspaceName string @description('Resource group name where LAW is placed') param logAnalyticsWorkspaceResourceGroupName string +var timeTriggerServiceBusQueueName = 'time-trigger-service-bus-queue' + resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = { name: storageAccountName location: location @@ -118,6 +120,11 @@ resource serviceBus 'Microsoft.ServiceBus/namespaces@2022-10-01-preview' = { } } +resource serviceBusQueue 'Microsoft.ServiceBus/namespaces/queues@2022-10-01-preview' = { + parent: serviceBus + name: timeTriggerServiceBusQueueName +} + resource law 'Microsoft.OperationalInsights/workspaces@2023-09-01' existing = { name: logAnalyticsWorkspaceName scope: resourceGroup(logAnalyticsWorkspaceResourceGroupName)