-
Notifications
You must be signed in to change notification settings - Fork 1
/
webPubSub.bicep
51 lines (45 loc) · 1.03 KB
/
webPubSub.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// an azure webpubsub service
@description('The name for your new Web PubSub instance.')
@maxLength(63)
@minLength(3)
param serviceName string = 'webpubsub-${uniqueString(resourceGroup().id)}'
@description('The region in which to create the new instance, defaults to the same location as the resource group.')
param location string = resourceGroup().location
@description('Unit count')
@allowed([
1
2
5
10
20
50
100
])
param unitCount int = 1
@description('SKU name')
@allowed([
'Standard_S1'
'Free_F1'
])
param sku string = 'Standard_S1'
@description('Pricing tier')
@allowed([
'Free'
'Standard'
])
param pricingTier string = 'Standard'
resource webPubSub 'Microsoft.SignalRService/webPubSub@2021-10-01' = {
name: serviceName
location: location
sku: {
capacity: unitCount
name: sku
tier: pricingTier
}
properties: {
publicNetworkAccess: 'Disabled'
}
}
output serviceId string = webPubSub.id
output serviceName string = webPubSub.name
output serviceEndpoint string = webPubSub.properties.hostName