Skip to content

Add Azure deployment support for DTS projects #4566

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

Draft
wants to merge 26 commits into
base: mwf/convinced-gray
Choose a base branch
from

Conversation

MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented Jun 23, 2025

High level flow - if DTS project detected, check for necessary DTS app settings on the function app. If missing, prompt user to select existing or create new DTS. Then:

  • Prompt the user for a connected user assigned identity
  • Add Durable Task Contributor role if missing
  • Prepare that connection

Then resume deploy.

Of special note, I created a new FunctionAppUserAssignedIdentitiesListStep that can be used going forward to select existing function app identities to assign new roles to. It is currently missing the ability to create and assign new identities, which is a todo, but it works fine for selecting identities that are already associated with the function app. This PR is already pretty chonky as is so we can explore that implementation later.

Related: https://github.com/microsoft/azcode-internal/issues/212

Todo:

  • Better activity log integration coming in follow-up PR (Add DTS deploy activity log integration #4574)
  • I need to improve the logic so that it doesn't hard code the default connection keys
  • Create and assign new UAID in the new list step?

@MicroFish91 MicroFish91 changed the base branch from main to mwf/convinced-gray June 23, 2025 19:38
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.

1 participant