Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(azure): add azure service bus #601

Merged
merged 5 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .azure/infrastructure/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ param slackNotifierSku SlackNotifierSku
import { Sku as PostgresSku } from '../modules/postgreSql/create.bicep'
param postgresSku PostgresSku

import { Sku as ServiceBusSku } from '../modules/serviceBus/main.bicep'
param serviceBusSku ServiceBusSku

import { Sku as RedisSku } from '../modules/redis/main.bicep'
param redisSku RedisSku
@minLength(1)
Expand Down Expand Up @@ -84,6 +87,16 @@ module appInsights '../modules/applicationInsights/create.bicep' = {
}
}

module serviceBus '../modules/serviceBus/main.bicep' = {
scope: resourceGroup
name: 'serviceBus'
params: {
namePrefix: namePrefix
location: location
sku: serviceBusSku
}
}

// #######################################
// Create references to existing resources
// #######################################
Expand Down
6 changes: 6 additions & 0 deletions .azure/infrastructure/production.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ param redisSku = {
family: 'C'
capacity: 1
}

param serviceBusSku = {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
6 changes: 6 additions & 0 deletions .azure/infrastructure/soak.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ param redisSku = {
family: 'C'
capacity: 1
}

param serviceBusSku = {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
6 changes: 6 additions & 0 deletions .azure/infrastructure/staging.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ param redisSku = {
family: 'C'
capacity: 1
}

param serviceBusSku = {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
6 changes: 6 additions & 0 deletions .azure/infrastructure/test.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ param redisSku = {
family: 'C'
capacity: 1
}

param serviceBusSku = {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
21 changes: 21 additions & 0 deletions .azure/modules/serviceBus/main.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
param namePrefix string
param location string

@export()
type Sku = {
name: 'Basic' | 'Standard' | 'Premium'
tier: 'Basic' | 'Standard' | 'Premium'
@minValue(1)
capacity: int
}
param sku Sku

resource serviceBusNamespace 'Microsoft.ServiceBus/namespaces@2022-10-01-preview' = {
name: '${namePrefix}-service-bus'
location: location
sku: sku
identity: {
type: 'SystemAssigned'
}
properties: {}
}
Loading