From f25b7f375772808bbdf0ad6e0598f212ce0c9e81 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 23:49:31 +0000 Subject: [PATCH 1/3] Initial plan From 97b764a43d5a19dd3bfa934ed6d5368f26347e5e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 23:52:33 +0000 Subject: [PATCH 2/3] Switch DTS from Dedicated to Consumption SKU in all Bicep templates Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com> --- .../infra/app/dts.bicep | 6 +- .../infra/main.bicep | 2 +- .../dotnet/HelloCities/infra/app/dts.bicep | 6 +- .../dotnet/HelloCities/infra/app/dts.json | 71 +++++++++++++++++++ .../dotnet/HelloCities/infra/main.bicep | 2 +- .../dotnet/OrderProcessor/infra/app/dts.bicep | 6 +- .../dotnet/OrderProcessor/infra/main.bicep | 2 +- .../dotnet/PdfSummarizer/infra/app/dts.bicep | 6 +- .../dotnet/PdfSummarizer/infra/main.bicep | 2 +- .../python/pdf-summarizer/infra/app/dts.bicep | 6 +- .../python/pdf-summarizer/infra/main.bicep | 2 +- samples/infra/app/dts.bicep | 6 +- samples/infra/app/dts.json | 71 +++++++++++++++++++ samples/infra/main.bicep | 2 +- .../AutoscalingInACA/infra/app/dts.bicep | 6 +- .../AutoscalingInACA/infra/app/dts.json | 71 +++++++++++++++++++ .../AutoscalingInACA/infra/main.bicep | 2 +- 17 files changed, 248 insertions(+), 21 deletions(-) create mode 100644 samples/durable-functions/dotnet/HelloCities/infra/app/dts.json create mode 100644 samples/infra/app/dts.json create mode 100644 samples/scenarios/AutoscalingInACA/infra/app/dts.json diff --git a/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/app/dts.bicep b/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/app/dts.bicep +++ b/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/main.bicep b/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/main.bicep index 569cf33..8bceb3e 100644 --- a/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/main.bicep +++ b/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator/infra/main.bicep @@ -118,7 +118,7 @@ var functionAppName = !empty(apiServiceName) ? apiServiceName : '${abbrs.webSite var deploymentStorageContainerName = 'app-package-${take(functionAppName, 32)}-${take(toLower(uniqueString(functionAppName, resourceToken)), 7)}' var name = toLower('${aiHubName}') var projectName = toLower('${aiProjectName}') -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param dtsName string = '' param taskHubName string = '' diff --git a/samples/durable-functions/dotnet/HelloCities/infra/app/dts.bicep b/samples/durable-functions/dotnet/HelloCities/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/durable-functions/dotnet/HelloCities/infra/app/dts.bicep +++ b/samples/durable-functions/dotnet/HelloCities/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/durable-functions/dotnet/HelloCities/infra/app/dts.json b/samples/durable-functions/dotnet/HelloCities/infra/app/dts.json new file mode 100644 index 0000000..6523861 --- /dev/null +++ b/samples/durable-functions/dotnet/HelloCities/infra/app/dts.json @@ -0,0 +1,71 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.40.2.10011", + "templateHash": "16233265315335606423" + } + }, + "parameters": { + "ipAllowlist": { + "type": "array" + }, + "location": { + "type": "string" + }, + "tags": { + "type": "object", + "defaultValue": {} + }, + "name": { + "type": "string" + }, + "taskhubname": { + "type": "string" + }, + "skuName": { + "type": "string" + }, + "skuCapacity": { + "type": "int", + "defaultValue": 0 + } + }, + "resources": [ + { + "type": "Microsoft.DurableTask/schedulers", + "apiVersion": "2025-11-01", + "name": "[parameters('name')]", + "location": "[parameters('location')]", + "tags": "[parameters('tags')]", + "properties": { + "ipAllowlist": "[parameters('ipAllowlist')]", + "sku": "[if(equals(parameters('skuName'), 'Dedicated'), createObject('name', parameters('skuName'), 'capacity', parameters('skuCapacity')), createObject('name', parameters('skuName')))]" + } + }, + { + "type": "Microsoft.DurableTask/schedulers/taskHubs", + "apiVersion": "2025-11-01", + "name": "[format('{0}/{1}', parameters('name'), parameters('taskhubname'))]", + "dependsOn": [ + "[resourceId('Microsoft.DurableTask/schedulers', parameters('name'))]" + ] + } + ], + "outputs": { + "dts_NAME": { + "type": "string", + "value": "[parameters('name')]" + }, + "dts_URL": { + "type": "string", + "value": "[reference(resourceId('Microsoft.DurableTask/schedulers', parameters('name')), '2025-11-01').endpoint]" + }, + "TASKHUB_NAME": { + "type": "string", + "value": "[parameters('taskhubname')]" + } + } +} \ No newline at end of file diff --git a/samples/durable-functions/dotnet/HelloCities/infra/main.bicep b/samples/durable-functions/dotnet/HelloCities/infra/main.bicep index 2d6d897..42ae879 100644 --- a/samples/durable-functions/dotnet/HelloCities/infra/main.bicep +++ b/samples/durable-functions/dotnet/HelloCities/infra/main.bicep @@ -49,7 +49,7 @@ param functionSkuTier string = 'ElasticPremium' // Uses main.parameters.json fir param functionReservedPlan bool = true // Set to false to get a Windows OS plan param dtsLocation string = location -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param durableFunctionServiceName string = '' diff --git a/samples/durable-functions/dotnet/OrderProcessor/infra/app/dts.bicep b/samples/durable-functions/dotnet/OrderProcessor/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/durable-functions/dotnet/OrderProcessor/infra/app/dts.bicep +++ b/samples/durable-functions/dotnet/OrderProcessor/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/durable-functions/dotnet/OrderProcessor/infra/main.bicep b/samples/durable-functions/dotnet/OrderProcessor/infra/main.bicep index 83284db..b580764 100644 --- a/samples/durable-functions/dotnet/OrderProcessor/infra/main.bicep +++ b/samples/durable-functions/dotnet/OrderProcessor/infra/main.bicep @@ -50,7 +50,7 @@ param functionSkuTier string = 'ElasticPremium' // Uses main.parameters.json fir param functionReservedPlan bool = true // Set to false to get a Windows OS plan param dtsLocation string = location -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param durableFunctionServiceName string = '' diff --git a/samples/durable-functions/dotnet/PdfSummarizer/infra/app/dts.bicep b/samples/durable-functions/dotnet/PdfSummarizer/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/durable-functions/dotnet/PdfSummarizer/infra/app/dts.bicep +++ b/samples/durable-functions/dotnet/PdfSummarizer/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/durable-functions/dotnet/PdfSummarizer/infra/main.bicep b/samples/durable-functions/dotnet/PdfSummarizer/infra/main.bicep index 349cfce..9fabf89 100644 --- a/samples/durable-functions/dotnet/PdfSummarizer/infra/main.bicep +++ b/samples/durable-functions/dotnet/PdfSummarizer/infra/main.bicep @@ -50,7 +50,7 @@ param functionSkuTier string = 'ElasticPremium' // Uses main.parameters.json fir param functionReservedPlan bool = true // Set to false to get a Windows OS plan param dtsLocation string = location -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param documentIntelligenceSkuName string // Set in main.parameters.json diff --git a/samples/durable-functions/python/pdf-summarizer/infra/app/dts.bicep b/samples/durable-functions/python/pdf-summarizer/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/durable-functions/python/pdf-summarizer/infra/app/dts.bicep +++ b/samples/durable-functions/python/pdf-summarizer/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/durable-functions/python/pdf-summarizer/infra/main.bicep b/samples/durable-functions/python/pdf-summarizer/infra/main.bicep index 8ceee8c..bc6201b 100644 --- a/samples/durable-functions/python/pdf-summarizer/infra/main.bicep +++ b/samples/durable-functions/python/pdf-summarizer/infra/main.bicep @@ -50,7 +50,7 @@ param functionSkuTier string = 'ElasticPremium' // Uses main.parameters.json fir param functionReservedPlan bool = true // Set to false to get a Windows OS plan param dtsLocation string = location -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param documentIntelligenceSkuName string // Set in main.parameters.json diff --git a/samples/infra/app/dts.bicep b/samples/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/infra/app/dts.bicep +++ b/samples/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/infra/app/dts.json b/samples/infra/app/dts.json new file mode 100644 index 0000000..6523861 --- /dev/null +++ b/samples/infra/app/dts.json @@ -0,0 +1,71 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.40.2.10011", + "templateHash": "16233265315335606423" + } + }, + "parameters": { + "ipAllowlist": { + "type": "array" + }, + "location": { + "type": "string" + }, + "tags": { + "type": "object", + "defaultValue": {} + }, + "name": { + "type": "string" + }, + "taskhubname": { + "type": "string" + }, + "skuName": { + "type": "string" + }, + "skuCapacity": { + "type": "int", + "defaultValue": 0 + } + }, + "resources": [ + { + "type": "Microsoft.DurableTask/schedulers", + "apiVersion": "2025-11-01", + "name": "[parameters('name')]", + "location": "[parameters('location')]", + "tags": "[parameters('tags')]", + "properties": { + "ipAllowlist": "[parameters('ipAllowlist')]", + "sku": "[if(equals(parameters('skuName'), 'Dedicated'), createObject('name', parameters('skuName'), 'capacity', parameters('skuCapacity')), createObject('name', parameters('skuName')))]" + } + }, + { + "type": "Microsoft.DurableTask/schedulers/taskHubs", + "apiVersion": "2025-11-01", + "name": "[format('{0}/{1}', parameters('name'), parameters('taskhubname'))]", + "dependsOn": [ + "[resourceId('Microsoft.DurableTask/schedulers', parameters('name'))]" + ] + } + ], + "outputs": { + "dts_NAME": { + "type": "string", + "value": "[parameters('name')]" + }, + "dts_URL": { + "type": "string", + "value": "[reference(resourceId('Microsoft.DurableTask/schedulers', parameters('name')), '2025-11-01').endpoint]" + }, + "TASKHUB_NAME": { + "type": "string", + "value": "[parameters('taskhubname')]" + } + } +} \ No newline at end of file diff --git a/samples/infra/main.bicep b/samples/infra/main.bicep index 3770525..8ce28c8 100644 --- a/samples/infra/main.bicep +++ b/samples/infra/main.bicep @@ -20,7 +20,7 @@ param containerAppsEnvName string = '' param containerAppsAppName string = '' param containerRegistryName string = '' param dtsLocation string = 'centralus' -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param dtsName string = '' param taskHubName string = '' diff --git a/samples/scenarios/AutoscalingInACA/infra/app/dts.bicep b/samples/scenarios/AutoscalingInACA/infra/app/dts.bicep index 5a08700..6280e5a 100644 --- a/samples/scenarios/AutoscalingInACA/infra/app/dts.bicep +++ b/samples/scenarios/AutoscalingInACA/infra/app/dts.bicep @@ -4,7 +4,7 @@ param tags object = {} param name string param taskhubname string param skuName string -param skuCapacity int +param skuCapacity int = 0 resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { location: location @@ -12,9 +12,11 @@ resource dts 'Microsoft.DurableTask/schedulers@2025-11-01' = { name: name properties: { ipAllowlist: ipAllowlist - sku: { + sku: skuName == 'Dedicated' ? { name: skuName capacity: skuCapacity + } : { + name: skuName } } } diff --git a/samples/scenarios/AutoscalingInACA/infra/app/dts.json b/samples/scenarios/AutoscalingInACA/infra/app/dts.json new file mode 100644 index 0000000..6523861 --- /dev/null +++ b/samples/scenarios/AutoscalingInACA/infra/app/dts.json @@ -0,0 +1,71 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.40.2.10011", + "templateHash": "16233265315335606423" + } + }, + "parameters": { + "ipAllowlist": { + "type": "array" + }, + "location": { + "type": "string" + }, + "tags": { + "type": "object", + "defaultValue": {} + }, + "name": { + "type": "string" + }, + "taskhubname": { + "type": "string" + }, + "skuName": { + "type": "string" + }, + "skuCapacity": { + "type": "int", + "defaultValue": 0 + } + }, + "resources": [ + { + "type": "Microsoft.DurableTask/schedulers", + "apiVersion": "2025-11-01", + "name": "[parameters('name')]", + "location": "[parameters('location')]", + "tags": "[parameters('tags')]", + "properties": { + "ipAllowlist": "[parameters('ipAllowlist')]", + "sku": "[if(equals(parameters('skuName'), 'Dedicated'), createObject('name', parameters('skuName'), 'capacity', parameters('skuCapacity')), createObject('name', parameters('skuName')))]" + } + }, + { + "type": "Microsoft.DurableTask/schedulers/taskHubs", + "apiVersion": "2025-11-01", + "name": "[format('{0}/{1}', parameters('name'), parameters('taskhubname'))]", + "dependsOn": [ + "[resourceId('Microsoft.DurableTask/schedulers', parameters('name'))]" + ] + } + ], + "outputs": { + "dts_NAME": { + "type": "string", + "value": "[parameters('name')]" + }, + "dts_URL": { + "type": "string", + "value": "[reference(resourceId('Microsoft.DurableTask/schedulers', parameters('name')), '2025-11-01').endpoint]" + }, + "TASKHUB_NAME": { + "type": "string", + "value": "[parameters('taskhubname')]" + } + } +} \ No newline at end of file diff --git a/samples/scenarios/AutoscalingInACA/infra/main.bicep b/samples/scenarios/AutoscalingInACA/infra/main.bicep index 3770525..8ce28c8 100644 --- a/samples/scenarios/AutoscalingInACA/infra/main.bicep +++ b/samples/scenarios/AutoscalingInACA/infra/main.bicep @@ -20,7 +20,7 @@ param containerAppsEnvName string = '' param containerAppsAppName string = '' param containerRegistryName string = '' param dtsLocation string = 'centralus' -param dtsSkuName string = 'Dedicated' +param dtsSkuName string = 'Consumption' param dtsCapacity int = 1 param dtsName string = '' param taskHubName string = '' From cbb0f28dd9799560e42e327690ca1b8999af8ab4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 23:54:08 +0000 Subject: [PATCH 3/3] Remove Bicep-generated JSON artifacts and update gitignore Co-authored-by: greenie-msft <56556602+greenie-msft@users.noreply.github.com> --- .gitignore | 7 +- .../dotnet/HelloCities/infra/app/dts.json | 71 ------------------- samples/infra/app/dts.json | 71 ------------------- .../AutoscalingInACA/infra/app/dts.json | 71 ------------------- 4 files changed, 6 insertions(+), 214 deletions(-) delete mode 100644 samples/durable-functions/dotnet/HelloCities/infra/app/dts.json delete mode 100644 samples/infra/app/dts.json delete mode 100644 samples/scenarios/AutoscalingInACA/infra/app/dts.json diff --git a/.gitignore b/.gitignore index 0d78fcb..2ae3bab 100644 --- a/.gitignore +++ b/.gitignore @@ -431,4 +431,9 @@ buildNumber.properties *.iml *.iws *.ipr -out/ \ No newline at end of file +out/ + +# Bicep-generated ARM template JSON files +**/infra/**/*.json +!**/infra/**/*.parameters.json +!**/infra/**/abbreviations.json diff --git a/samples/durable-functions/dotnet/HelloCities/infra/app/dts.json b/samples/durable-functions/dotnet/HelloCities/infra/app/dts.json deleted file mode 100644 index 6523861..0000000 --- a/samples/durable-functions/dotnet/HelloCities/infra/app/dts.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.40.2.10011", - "templateHash": "16233265315335606423" - } - }, - "parameters": { - "ipAllowlist": { - "type": "array" - }, - "location": { - "type": "string" - }, - "tags": { - "type": "object", - "defaultValue": {} - }, - "name": { - "type": "string" - }, - "taskhubname": { - "type": "string" - }, - "skuName": { - "type": "string" - }, - "skuCapacity": { - "type": "int", - "defaultValue": 0 - } - }, - "resources": [ - { - "type": "Microsoft.DurableTask/schedulers", - "apiVersion": "2025-11-01", - "name": "[parameters('name')]", - "location": "[parameters('location')]", - "tags": "[parameters('tags')]", - "properties": { - "ipAllowlist": "[parameters('ipAllowlist')]", - "sku": "[if(equals(parameters('skuName'), 'Dedicated'), createObject('name', parameters('skuName'), 'capacity', parameters('skuCapacity')), createObject('name', parameters('skuName')))]" - } - }, - { - "type": "Microsoft.DurableTask/schedulers/taskHubs", - "apiVersion": "2025-11-01", - "name": "[format('{0}/{1}', parameters('name'), parameters('taskhubname'))]", - "dependsOn": [ - "[resourceId('Microsoft.DurableTask/schedulers', parameters('name'))]" - ] - } - ], - "outputs": { - "dts_NAME": { - "type": "string", - "value": "[parameters('name')]" - }, - "dts_URL": { - "type": "string", - "value": "[reference(resourceId('Microsoft.DurableTask/schedulers', parameters('name')), '2025-11-01').endpoint]" - }, - "TASKHUB_NAME": { - "type": "string", - "value": "[parameters('taskhubname')]" - } - } -} \ No newline at end of file diff --git a/samples/infra/app/dts.json b/samples/infra/app/dts.json deleted file mode 100644 index 6523861..0000000 --- a/samples/infra/app/dts.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.40.2.10011", - "templateHash": "16233265315335606423" - } - }, - "parameters": { - "ipAllowlist": { - "type": "array" - }, - "location": { - "type": "string" - }, - "tags": { - "type": "object", - "defaultValue": {} - }, - "name": { - "type": "string" - }, - "taskhubname": { - "type": "string" - }, - "skuName": { - "type": "string" - }, - "skuCapacity": { - "type": "int", - "defaultValue": 0 - } - }, - "resources": [ - { - "type": "Microsoft.DurableTask/schedulers", - "apiVersion": "2025-11-01", - "name": "[parameters('name')]", - "location": "[parameters('location')]", - "tags": "[parameters('tags')]", - "properties": { - "ipAllowlist": "[parameters('ipAllowlist')]", - "sku": "[if(equals(parameters('skuName'), 'Dedicated'), createObject('name', parameters('skuName'), 'capacity', parameters('skuCapacity')), createObject('name', parameters('skuName')))]" - } - }, - { - "type": "Microsoft.DurableTask/schedulers/taskHubs", - "apiVersion": "2025-11-01", - "name": "[format('{0}/{1}', parameters('name'), parameters('taskhubname'))]", - "dependsOn": [ - "[resourceId('Microsoft.DurableTask/schedulers', parameters('name'))]" - ] - } - ], - "outputs": { - "dts_NAME": { - "type": "string", - "value": "[parameters('name')]" - }, - "dts_URL": { - "type": "string", - "value": "[reference(resourceId('Microsoft.DurableTask/schedulers', parameters('name')), '2025-11-01').endpoint]" - }, - "TASKHUB_NAME": { - "type": "string", - "value": "[parameters('taskhubname')]" - } - } -} \ No newline at end of file diff --git a/samples/scenarios/AutoscalingInACA/infra/app/dts.json b/samples/scenarios/AutoscalingInACA/infra/app/dts.json deleted file mode 100644 index 6523861..0000000 --- a/samples/scenarios/AutoscalingInACA/infra/app/dts.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.40.2.10011", - "templateHash": "16233265315335606423" - } - }, - "parameters": { - "ipAllowlist": { - "type": "array" - }, - "location": { - "type": "string" - }, - "tags": { - "type": "object", - "defaultValue": {} - }, - "name": { - "type": "string" - }, - "taskhubname": { - "type": "string" - }, - "skuName": { - "type": "string" - }, - "skuCapacity": { - "type": "int", - "defaultValue": 0 - } - }, - "resources": [ - { - "type": "Microsoft.DurableTask/schedulers", - "apiVersion": "2025-11-01", - "name": "[parameters('name')]", - "location": "[parameters('location')]", - "tags": "[parameters('tags')]", - "properties": { - "ipAllowlist": "[parameters('ipAllowlist')]", - "sku": "[if(equals(parameters('skuName'), 'Dedicated'), createObject('name', parameters('skuName'), 'capacity', parameters('skuCapacity')), createObject('name', parameters('skuName')))]" - } - }, - { - "type": "Microsoft.DurableTask/schedulers/taskHubs", - "apiVersion": "2025-11-01", - "name": "[format('{0}/{1}', parameters('name'), parameters('taskhubname'))]", - "dependsOn": [ - "[resourceId('Microsoft.DurableTask/schedulers', parameters('name'))]" - ] - } - ], - "outputs": { - "dts_NAME": { - "type": "string", - "value": "[parameters('name')]" - }, - "dts_URL": { - "type": "string", - "value": "[reference(resourceId('Microsoft.DurableTask/schedulers', parameters('name')), '2025-11-01').endpoint]" - }, - "TASKHUB_NAME": { - "type": "string", - "value": "[parameters('taskhubname')]" - } - } -} \ No newline at end of file