Azure VMSS derregister with Azure Devops Deploymentgroup as needed

Shwetanshu Mehta 1 Reputation point
2020-06-18T21:59:16.977+00:00

I have two scenarios where I'd have to deregister the VMs from Deployment Groups:

1) When a new VM is spun up, its added to a temp deployment group, updated with the latest code, then added to the main active DG where builds are released.

2) When Scale Down or instance replacement occurs.

What'd be the way to go on about it, I have a wrapper script in Custom Script Extension that calls another Script in Azure Repos which based on the VMSS registers it in the appropriate group and triggers release pipeline with latest build (Using Arguments). I am currently stuck on how to proceed with next steps mentioned above.

For 1) I used az devops to trigger a pipeline. So is there a way to wait for the pipeline to complete successfully ?

Any help or direction would be appreciated.

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
352 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 24,441 Reputation points
    2020-08-06T09:34:37.517+00:00

    anonymous user

    Apologize for the delayed response.

    Just checking if you got the info you are looking for?

    As I understand deployment groups is a devops related feature and Azure DevOps is not yet on boarded to this forum.

    Would request you to post your query DevOps community here, it will have visibility across the DevOps community which is a better suited audience for such types of issues.

    0 comments No comments