Prerequisites
- Azure Database for PostgreSQL instance
- Access to Azure Portal
- Xata account and project setup with a running
mainbranch - Network access to your Azure database
Install and Configure the Xata CLI
Install the Xata CLI:Find the Azure Database connection string
Azure connection strings typically look like this:Initialize Xata project
Go to a local folder that you want to save the Xata configuration to and initialize it like this:xata) or use the same that you have in Azure. If the database doesn’t exist, it will be created.
In case you need to redo this step, you can reset the configuration by deleting the .xata/project.json file and running xata init again.
Start the migration
Begin the data transfer:Verification
After migration, verify your data:-
Connect to Xata Branch:
-
Check Data Integrity: