-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathdts.bicep
More file actions
38 lines (30 loc) · 883 Bytes
/
dts.bicep
File metadata and controls
38 lines (30 loc) · 883 Bytes
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
@description('Name of the Durable Task Scheduler')
param name string
@description('Name of the task hub')
param taskhubname string
@description('Location for the resource')
param location string
@description('Tags for the resource')
param tags object = {}
@description('IP allowlist for the scheduler')
param ipAllowlist array = ['0.0.0.0/0']
@description('SKU name')
param skuName string = 'Consumption'
resource scheduler 'Microsoft.DurableTask/schedulers@2024-10-01-preview' = {
name: name
location: location
tags: tags
properties: {
ipAllowlist: ipAllowlist
sku: {
name: skuName
}
}
}
resource taskhub 'Microsoft.DurableTask/schedulers/taskHubs@2024-10-01-preview' = {
parent: scheduler
name: taskhubname
}
output dts_ID string = scheduler.id
output dts_URL string = scheduler.properties.endpoint
output TASKHUB_NAME string = taskhub.name