DR PIPELINES

Version 3.1 by Nikhil Singh on 2026/01/23 10:27

1. Managed Instance Restore

Pipeline: https://dev.azure.com/ebsphere/ebsphere/_build?definitionId=17

This pipeline restores one or more databases from a source Azure SQL Managed Instance to a target Managed Instance, primarily for disaster recovery scenarios. It supports geo-restore, optional Start/stop, storage resizing (upscale/downscale), Deletion of restored databases, Pre-Delete (checks if database exists first and then deletes to allow restore) . Databases can be selected individually or via wildcard filters (for example, *Live*), and the pipeline produces a detailed execution report published to both Azure DevOps artifacts and Azure Blob Storage.

2. Managed Instance Object Migration

Pipeline: https://dev.azure.com/ebsphere/ebsphere/_build?definitionId=23

This pipeline migrates server-level and database-level objects between Azure SQL Managed Instances, including logins, triggers, and schedules. It uses dbatools to selectively migrate objects based on filters or run all supported object types in a single execution. The pipeline supports wildcard-based login selection, exclusion lists, verbose logging, and controlled execution through flags, and publishes detailed migration output as Azure DevOps build artifacts.

3. Extract DB Objects

Pipeline: https://dev.azure.com/ebsphere/ebsphere/_build?definitionId=28

This pipeline exports selected server-level and database-related objects from a source Azure SQL Managed Instance, including logins, triggers, schedules, agent jobs, and server roles. It uses dbatools to selectively extract individual object types or all supported objects in a single run, with optional verbose logging. The extracted objects are packaged and published to Blob Storage and as Azure DevOps build artifacts for later review or deployment.

4. Deploy DB Objects

Pipeline: https://dev.azure.com/ebsphere/ebsphere/_build?definitionId=29

The Deploy DB Objects pipeline deploys previously extracted SQL Managed Instance objects to a target Managed Instance using artifacts stored in Azure Blob Storage. It supports selective deployment through wildcard filters, optional verbose logging, and handles objects such as agent jobs and related server-level components. The pipeline authenticates to Azure, retrieves the specified object set, applies it to the target instance, and publishes deployment results as Azure DevOps build artifacts.

5. Stop Managed Instance

Pipeline: https://dev.azure.com/ebsphere/ebsphere/_build?definitionId=30

The Stop Managed Instance (DR) pipeline automatically stops the designated disaster recovery Azure SQL Managed Instance on a scheduled basis to reduce operational costs when the instance is not in use. It authenticates to Azure using a service connection, executes a PowerShell script to stop the target Managed Instance. Pipeline is scheduled for 6 pm every day.

Tags:
    

Need help?

If you need help with XWiki you can contact: