Azure DevOps Pipeline Deployment to Postgres DB - postgresql

I have a requirement of Azure DevOps to automate deployment to Azure PostgreSQL DB. I can find the Task for Azure SQL Database, but not for PostgreSQL.
Is there some Extensions or Plugins , or such things, which is needed for the Task.
Or how to find the Task.
DB - Azure Database for PostgreSQL.

I got a way using YUNIQL.
You will find this plugin in Studio and it is configurable for PostgreSQL. You have to follow the documentation.

Related

dacpac creation from Azure Synapse dedicated SQL Pool using Azure DevOps

I have created the sql dacpac file from azure SQL database using Devops pipeline inbuilt task 'Azure SQL database deployment'. Now I am trying to create dacpac file from azure synapse SQL Pool. but I didn't find any related task or PowerShell script to do the same.
can you please pour your valuable suggestion?
Thanks
You can leverage the same task for SQL Dedicated pool deployment as well. There is no separate task for it
https://datasharkx.wordpress.com/2021/03/11/automated-deployment-of-azure-sql-database-azure-sql-data-warehouse-through-azure-devops-via-service-principal-part-1/
https://datasharkx.wordpress.com/2021/03/12/automated-deployment-of-azure-sql-database-azure-sql-data-warehouse-through-azure-devops-via-service-principal-part-2/
To create a DACPAC, in build pipeline you can leverage visual studio build task with latest version.

Can I use this tool to migrate from OnPrem to Cloud?

Can I use this tool for migrating workitems from OnPrem to Cloud version of Azure DevOps?
We can use the data migration tool for Azure DevOps. This tool provide the high fidelity way to migrate collection databases from Azure DevOps Server to Azure DevOps Services.
This means you can also use this tool to migrate your workItem from Server to Cloud.
You can refer the guidance doc: Migrate data from Azure DevOps Server to Azure DevOps Services
And here you can download the tool:https://www.microsoft.com/en-us/download/details.aspx?id=54274

Data Migration Assistant for PostgreSQL to migrate to Azure PostgreSQL (not DMS)

Whenever we migrate on-premises SQL to Azure SQL , we can use Data Migration Assistant (DMA) for assessment (and also Data Migration Service (DMS) for migration)
I know that we have DMS which can help in migrating on-premises PostgreSQL to Azure PostgreSQL
Do we have Data Migration Assistant Tool to migrate Postgres to Azure PostgreSQL PaaS (we want to assess before migration) ? Basically the need is to where the data is compatible to be migrated to Azure , before running the azure DMS
Please help.
At the moment there isn't a Microsoft's tool that execute the assessment for an on-premises PostgreSQL Database for Azure migration.
I think CloudPilot of UnifyCloud can be used.

How to deploy SQL Database in Bitbucket pipeline to Azure

Asking for an opinion or direction on the current problem.
We are using bitbucket pipeline to deploy ci/cd web applications to Azure. Now what is remaining - the database, also being hosted on Azure.
From my research - everything on SQL Database Projects deployments usually utilizes Azure DevOps pipelines (connects to github repo, allows plural environments, has a built-in SqlAgent allows deploy SQL db to the target server via dacpac file. It allows CI with every check-in, every time you push changes. Nice!
But what if can not (for some reason) use Azure DevOps and have to utilize Bitbucket pipelines instead. is that possible? how? via scripting? a tool? to call in the command line? Any help - highly appreciated.
It's true that in Azure DevOps it is easier to deploy (Azure) SQL Database, as Azure DevOps offers many tasks (including 3rd party custom tasks you can find in Microsoft MarketPlace).
However, no matter what tool will you use, you should be able to do the same, knowing the concept of deployment of a specific service.
I don't know BitBucket very well, but I bet the product has the capability to execute some commands, including PowerShell commands as well. If so, you must do 2 steps in your pipeline to publish Azure SQL database:
1) Create server and (empty) database - perhaps BitBucket offers some task for creating services in Azure (from ARM template or other way). If not - you can always use CLI or PowerShell to do so. More info: az cli server
2) Deploy the database or changes to it. This step is always to compare DACPAC file (which is compiled version of SQL Server database project) to target database on the server. The result is T-SQL (differential) script which must be executed against the target database. There is only one way to do so - sqlpackage.exe - tool provided by Microsoft. You can find the whole documentation here and plenty of examples on how to use it on the Internet.
Let me know if that helps.

CI/CD of Database in multiple instance - Azure Devops

I have written a step to deploy database build in respective database. But at a time, i am able to deploy one database ie one step for one db. is it possible to deploy same db build in multiple db at a step in relase?
is it possible to deploy same db build in multiple db at a step in relase?
AFAIK, there is no build-in task to do it. But you could create a powershell/batch script that loops runs the sqlpackage.exe to deploy DAC to multiple db at a step in relase:
You could check the similar thread Deployment to several databases using SQL Server Data Tools and Team foundation Server for some details.
Besides, there are many extensions in Marketplace can do it, so choose some of them that meet your requirement:
https://marketplace.visualstudio.com/search?term=sql&target=AzureDevOps&category=All%20categories&visibilityQuery=all&sortBy=Relevance
Hope this helps.