Hi billa •,
Thanks for using Microsoft Q&A forum.
As I understand, you are Unable to copy the local postgresql database to azure postgresql database.
Could you please try using Azure Data Factory or Azure Synapse Analytics to achieve this illustrated here https://learn.microsoft.com/en-us/azure/data-factory/connector-azure-database-for-postgresql?tabs=data-factory.
Do let us know if you face any issue.
And if you are using Azure DevOps, we recommend you to write your query in Azure DevOps forum so that the community there could you you.
Thank you.