Skip to content

Support DTS consumption plan and remove preview flag#4951

Merged
nturinski merged 2 commits intomainfrom
nat/dts-consumption-sku
Mar 31, 2026
Merged

Support DTS consumption plan and remove preview flag#4951
nturinski merged 2 commits intomainfrom
nat/dts-consumption-sku

Conversation

@nturinski
Copy link
Copy Markdown
Member

Closes #4881

Summary

Adds a Consumption vs Dedicated SKU prompt when creating a Durable Task Scheduler, and removes the preview feature flag so DTS is available to all users.

Changes

  • DurableTaskSchedulerClient.ts — Added DurableTaskSchedulerSku enum (Consumption, Dedicated). createScheduler now accepts an optional sku param (defaults to Consumption). Capacity is set to 0 for Consumption, 1 for Dedicated.
  • createScheduler.ts — Added SchedulerSkuStep prompt step that asks users to pick Consumption (default) or Dedicated. Removed isDtsPreviewFeaturesEnabled() and the preview gate check.
  • DurableStorageTypePromptStep.ts — Removed (Preview) label from the DTS option in the durable storage type picker.
  • package.json — Removed azureFunctions.durableTaskScheduler.enablePreviewFeatures setting. Removed preview when conditions from the create scheduler command.
  • package.nls.json — Removed the preview setting description string.

- Add DurableTaskSchedulerSku enum (Consumption/Dedicated)
- Add SKU prompt step to scheduler creation wizard (defaults to Consumption)
- Pass SKU to createScheduler client method
- Remove enablePreviewFeatures setting and all preview flag checks
- Remove Preview label from DTS storage type picker

Closes #4881
Copilot AI review requested due to automatic review settings March 31, 2026 17:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Durable Task Scheduler (DTS) creation flow to support both Consumption and Dedicated SKUs (favoring Consumption), and removes the preview feature flag so DTS is broadly available.

Changes:

  • Added a DTS SKU concept (Consumption/Dedicated) and plumbed it into scheduler creation requests.
  • Added a SKU selection prompt step to the DTS “create scheduler” wizard and removed the preview-gate setting/checks.
  • Updated UI/config contributions by removing the preview flag setting and related when conditions.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tree/durableTaskScheduler/DurableTaskSchedulerClient.ts Adds SKU enum + optional sku param and maps it to ARM request sku.name/capacity.
src/commands/durableTaskScheduler/createScheduler.ts Adds SKU prompt step and removes preview feature gating logic.
src/commands/createFunction/durableSteps/DurableStorageTypePromptStep.ts Removes preview labeling for the DTS durable storage option.
package.json Removes preview setting + command visibility gating based on that setting.
package.nls.json Removes localized string for the deleted preview setting.

Comment thread src/commands/durableTaskScheduler/createScheduler.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nturinski nturinski marked this pull request as ready for review March 31, 2026 17:39
@nturinski nturinski requested a review from a team as a code owner March 31, 2026 17:40
@nturinski nturinski merged commit 35a2105 into main Mar 31, 2026
2 checks passed
@nturinski nturinski deleted the nat/dts-consumption-sku branch March 31, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support DTS consumption plan and remove preview flag

3 participants