We have an Azure DevOps classic release pipeline setup to deploy SQL code to our SQL Server databases via SQL query files. We're running into an issue due to our databases setup with Availability Groups - when we create a release and deploy to our deployment groups the servers which are backups in the Availability Groups error out (see picture below) and mark the release as 'Partially Succeeded'.
I'd like to be able to determine which server is marked as the backup in the AG and skip this server. Any ideas if something like this is possible or any reference articles available?
Thanks!