How can we improve Azure DevOps?

Allow service connections to be parameterized in task groups

Task groups allows us to combine tasks across our release environments, except for since most of our tasks interact with Azure they require a service connection parameter. Please make the service connections parameterizable as well. I've tried putting a variable in there with the name of the service connection but it doesn't seem to work.

81 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Sean Fisher shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    We are happy to let you know that your suggestion is already supported in team services and TFS 2018.

    Following is an example of what to expect.
    1. Create a release definition with Azure resource group deployment tasks.
    2. In all tasks, choose a valid endpoint. You’ll need to do it multiple times and a variable cannot be used here
    3. Create a task group with the tasks above. It would not have Azure subscription as a parameter.
    4. Go to the task group and for each task in the group, you can update the subscription to $(AzureSubscription)
    5. On saving of the task group, the Azure subscription would be bubbled up a as a parameter

    Shashank Bansal
    Program Manager

    17 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • John Downs commented  ·   ·  Flag as inappropriate

        Thanks Shashank. However this really feels like a workaround rather than a proper fix. Having to use task groups isn't ideal - it's not obvious, and it also means that any time we do this we end up having to create additional task groups, which will quickly become unmanageable. Are there plans to support this in the main release definition editor?

      • Janis commented  ·   ·  Flag as inappropriate

        I was very surprised that something basic as this is not supported in VSTS. Using Task Groups is a must to guarantee consistency when creating deployment steps and when promoting the deployments through environments. Our Prod environment sits in a different subscription and this means I need to create a separate deployment process for Prod.

      • Alan Isherwood commented  ·   ·  Flag as inappropriate

        This is a must for our environment. If this cannot be addressed then we will have to roll our own Power Shell to work round this missing feature.

      • Shane commented  ·   ·  Flag as inappropriate

        This one feature of not allowing service endpoints to be part of configurable task groups is what's keeping our deployment process copy and paste pasta. Help us out!

      • Reilly Mulligan commented  ·   ·  Flag as inappropriate

        My team has individual Azure subscriptions per Geo, and we are dependent on other teams who take follow this model, so code the replication of functionality across our release definitions is ridiculous. Without this feature, there is no way for us to centralize functionality.

      • Will McMilleon commented  ·   ·  Flag as inappropriate

        From a user point of view, it makes no sense that this would not be supported. Can we hear what the complication is which prevents this from going forward?

      • Anonymous commented  ·   ·  Flag as inappropriate

        This is extremely crucial for our project as we're about to go to production soon and I don't see a point to having two separate copies of task groups to maintain just because I cannot make subscription name use a variable.

      • Ns commented  ·   ·  Flag as inappropriate

        Can't even begin to count how much time this consumes. Please get it in asap!

      • Stoimen Stoimenov commented  ·   ·  Flag as inappropriate

        We are creating service fabric clusters from arm templates and registering them automatically as service endpoints. Unfortunately the endpoint connection in the build task has to be manually selected and cannot be set using a build variable. This kind of breaks our CD process and currently we are looking into rewriting the whole task with pure powershell simply because the endpoints are unusable

      • john m commented  ·   ·  Flag as inappropriate

        this is the same as an earlier comment to provide params for subscriptions . .

        can blend these together. .

      • Samuel Ledoux commented  ·   ·  Flag as inappropriate

        It would be very nice to be able to pass the connected service as a variable to all the tasks so we could have a task group to reduce the maintenance between all our release environments.

      • Alastair commented  ·   ·  Flag as inappropriate

        An example of this is where we follow a standard pattern for our app service deployments with staging, swapping and stopping the app service. We have to create specific task groups for each subscription (dev and prod) and each product.

      • LouisG commented  ·   ·  Flag as inappropriate

        It would be very usefull when we have to trigger a single release on different environments, across different Azure subscriptions.

      Feedback and Knowledge Base