diff --git a/.azure/modules/serviceBus/addDataOwnerRoles.bicep b/.azure/modules/serviceBus/addDataOwnerRoles.bicep index fe263062a..aa0dd5b1a 100644 --- a/.azure/modules/serviceBus/addDataOwnerRoles.bicep +++ b/.azure/modules/serviceBus/addDataOwnerRoles.bicep @@ -4,7 +4,7 @@ param serviceBusNamespaceName string @description('Array of principal IDs to assign the Azure Service Bus Data Owner role to') param principalIds array -resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2022-10-01-preview' existing = { +resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2023-01-01-preview' existing = { name: serviceBusNamespaceName } diff --git a/.azure/modules/serviceBus/main.bicep b/.azure/modules/serviceBus/main.bicep index dca532ff6..74607b134 100644 --- a/.azure/modules/serviceBus/main.bicep +++ b/.azure/modules/serviceBus/main.bicep @@ -32,7 +32,7 @@ param sku Sku var serviceBusNameMaxLength = 50 var serviceBusName = uniqueResourceName('${namePrefix}-service-bus', serviceBusNameMaxLength) -resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2022-10-01-preview' = { +resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2023-01-01-preview' = { name: serviceBusName location: location sku: sku