The core components of the procedure are as follows
- task: AzurePowerShell@5
inputs:
azureSubscription: 'Visual Studio Enterprise Subscription(<
sub
id>)'
ScriptType: 'FilePath'
ScriptPath: './azbackup.ps1'
errorActionPreference: 'continue'
azurePowerShellVersion: 'LatestVersion'
Following section describes the minutes steps to setup the DevOps Pipeline, attach the code to the pipeline, start the initial job, monitor the job completion and see how it works in the schedule we set in the policy
Link to the GitHub repo
Hope, the above procedure will help you to setup Azure Backup of Windows/Linux virtual machines in Azure infrastructure. As the procedure follows a DevOps CI/DC approach using PowerShell script, you can easily customize for your similar requirements