Home
%3CLINGO-SUB%20id%3D%22lingo-sub-918691%22%20slang%3D%22en-US%22%3ERe%3A%20Bring%20your%20data%20to%20Azure%20Database%20for%20PostgreSQL%20Hyperscale%20(Citus)%20using%20Azure%20Data%20Factory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-918691%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20works%20well%20for%20certain%20sources%20but%20fails%20when%20copying%20from%20an%20SQL%20database.%20See%26nbsp%3B%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2Fbd53305d-301e-4847-abf7-8cab7ace5087%2Fazure-data-factory-copy-pipeline-failing-if-more-than-6-columns%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2Fbd53305d-301e-4847-abf7-8cab7ace5087%2Fazure-data-factory-copy-pipeline-failing-if-more-than-6-columns%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-857975%22%20slang%3D%22en-US%22%3EBring%20your%20data%20to%20Azure%20Database%20for%20PostgreSQL%20Hyperscale%20(Citus)%20using%20Azure%20Data%20Factory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-857975%22%20slang%3D%22en-US%22%3E%3CP%3EA%20core%20value%20proposition%20for%20running%20your%20PostgreSQL%20databases%20in%20a%20fully%20managed%20service%20such%20as%20Azure%20Database%20for%20PostgreSQL%20is%20richer%20native%20integrations%20with%20Azure%20services%20in%20cloud%20ecosystem.%20Today%2C%20we%20are%20happy%20to%20announce%20that%20Azure%20Database%20for%20PostgreSQL%20is%20now%20a%20supported%20sink%20destination%20in%20Azure%20Data%20Factory.%20Azure%20Data%20Factory%20is%20a%20fully%20managed%20data%20integration%20service%20that%20allows%20you%20to%20create%20data-driven%20workflows%20in%20a%20code%20free%20visual%20environment%20in%20Azure%20for%20orchestrating%20and%20automating%20data%20movement%20and%20data%20transformation.%20Let%E2%80%99s%20dig%20in%20to%20see%20how%20you%20can%20leverage%20Azure%20Data%20factory%20for%20secure%20one-time%20data%20movement%20or%20running%20continuous%20data%20pipelines%20which%20loads%20data%20into%20Azure%20Database%20for%20PostgreSQL%20from%20disparate%20data%20sources%20running%20on-premises%2C%20in%20Azure%20or%20other%20cloud%20providers%20for%20analytics%20and%20reporting.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20Data%20Factory%20supports%20collectively%20across%20Azure%2C%20on-premises%2C%20multi-cloud%2C%20and%20SaaS%20platforms%20orchestrating%20secure%20data%20transfer.%20PostgreSQL%20is%20the%20most%20loved%20database%20by%20developer%20community%20owing%20to%20rich%20feature%20support%20and%20extensibility.%20PostgreSQL%2C%20with%20its%20superior%20native%20JSON%2C%20geo-spatial%20data%20processing%20capabilities%2C%20and%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Database-for-MySQL%2FPython-Azure-Database-for-MySQL%2Fba-p%2F841926%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EPython%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Database-for-PostgreSQL%2FR-Azure-Database-for-PostgreSQL%2Fba-p%2F805676%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3ER%3C%2FA%3E%20support%20is%20an%20attractive%20data%20platform%20for%20data%20science.%20The%20sink%20support%20for%20Azure%20Database%20for%20PostgreSQL%20now%20allows%20you%20to%20bring%20your%20data%20(relational%2C%20NoSQL%2C%20data%20lake%20files)%20to%20your%20favorite%20open%20source%20database%20for%20storage%2C%20processing%20and%20reporting.%3C%2FP%3E%0A%3CP%3EWith%20our%20single%20server%20deployment%20option%2C%20you%20get%20a%20fully%20managed%2C%20secure%2C%20community%20version%20of%20PostgreSQL%20allowing%20you%20to%20scale-up%20or%20down%20on-demand.%20For%20developers%20and%20enterprises%20looking%20to%20scale%20their%20workload%20as%20data%20volume%20grows%2C%20we%20recommend%20Hyperscale%20(Citus)%20deployment.%20Hyperscale%20(Citus)%20scales%20out%20your%20data%20across%20multiple%20physical%20nodes%2C%20with%20the%20underlying%20data%20being%20sharded%20into%20much%20smaller%20bits%20while%20data%20remains%20hosted%20in%20the%20familiar%20open%20source%20PostgreSQL%20database.%26nbsp%3B%20For%20customers%2C%20native%20integration%20of%20Azure%20Data%20Factory%20with%20Azure%20Database%20for%20PostgreSQL%20unlocks%20many%20possible%20hybrid%20scenarios%20and%20multi-cloud%20architectures.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20525px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132034i6F4B0D87F3A2718B%2Fimage-dimensions%2F525x294%3Fv%3D1.0%22%20width%3D%22525%22%20height%3D%22294%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2017761152%22%20id%3D%22toc-hId-2017761152%22%3E%3CSTRONG%3EBuilding%20your%20data%20pipeline%20in%20ADF%20to%20load%20data%20into%20PostgreSQL%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3EIn%20Azure%20Data%20Factory%2C%20you%20can%20use%20the%20Copy%20activity%20to%20copy%20data%20among%20data%20stores%20located%20on-premises%20and%20in%20the%20cloud.%20After%20you%20copy%20the%20data%2C%20you%20can%20use%20other%20activities%20to%20further%20transform%20and%20analyze%20it%20as%20described%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fdata-factory%2Fcopy-activity-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20If%20you%20want%20to%20copy%20the%20data%20from%20file%20system%20or%20cloud-based%20object%20stores%2C%20the%20copy%20activity%20can%20also%20read%20from%20files%20in%20these%20formats%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EText%3C%2FLI%3E%0A%3CLI%3EJSON%3C%2FLI%3E%0A%3CLI%3EAvro%3C%2FLI%3E%0A%3CLI%3EORC%3C%2FLI%3E%0A%3CLI%3EParquet%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFor%20up-to-date%20information%20on%20supported%20data%20stores%20and%20file%20formats%2C%20refer%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fdata-factory%2Fcopy-activity-overview%23supported-data-stores-and-formats%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eservice%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20copy%20data%20from%20a%20source%20to%20a%20sink%2C%20the%20service%20that%20runs%20the%20Copy%20activity%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EReads%20data%20from%20a%20source%20data%20store.%3C%2FLI%3E%0A%3CLI%3EPerforms%20serialization%2Fdeserialization%2C%20compression%2Fdecompression%2C%20column%20mapping%2C%20and%20so%20on.%20It%20performs%20these%20operations%20based%20on%20the%20configuration%20of%20the%20input%20dataset%2C%20output%20dataset%2C%20and%20Copy%20activity.%3C%2FLI%3E%0A%3CLI%3EWrites%20data%20to%20the%20sink%2Fdestination%20data%20store.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20a%20high%20level%2C%20to%20use%20the%20Copy%20activity%20in%20Azure%20Data%20Factory%2C%20you%20need%20to%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3ECreate%20linked%20services%20for%20the%20source%20data%20store%20and%20the%20sink%20data%20store%20-%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3ELinked%20services%20are%20much%20like%20connection%20strings%2C%20which%20define%20the%20connection%20information%20that's%20needed%20for%20Data%20Factory%20to%20connect%20to%20external%20resources.%26nbsp%3B%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3E%3CSTRONG%3ECreate%20datasets%20for%20the%20source%20and%20sink%20-%3C%2FSTRONG%3EDatasets%20define%20the%20schema%2C%20table%20name%2C%20or%20filename%20in%20linked%20services%20created%20in%20previous%20step%2C%20where%20the%20data%20can%20be%20sourced%20or%20targeted%20for%20copy%20activity.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3E%3CSTRONG%3ECreate%20a%20pipeline%20with%20the%20Copy%20activity%20-%26nbsp%3B%3C%2FSTRONG%3EIn%20the%20step%20you%20map%20the%20source%2C%20sink%20datasets%20created%20in%20previous%20step%20and%20do%20the%20column%20mapping%20to%20ensure%20there%20are%20no%20data%20conversion%20error.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EFor%20latest%20up%20to%20date%20information%20on%20the%20Copy%20activity%2C%20please%20refer%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fcopy-activity-overview%23configuration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20author%20and%20run%20a%20Copy%20activity%20data%20pipeline%20in%20Azure%20Data%20Factory%20by%20using%20following%20toolchain%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Portal%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-copy-data-tool%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECopy%20Data%20Tool%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20PowerShell%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-dot-net%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E.Net%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-python%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPython%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-rest-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EREST%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-resource-manager-template%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Resource%20Manager%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20blog%20post%20walks%20through%20the%20Azure%20portal%20UI%20experience.%20After%20you%20create%20the%20Azure%20Data%20Factory%20service%20via%20the%20portal%20by%20using%20the%20steps%20mentioned%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EQuickStart%20documentation%3C%2FA%3E%2C%20the%20%3CSTRONG%3ELet%E2%80%99s%20get%20started%3C%2FSTRONG%3E%20page%20appears.%20On%20the%20%3CSTRONG%3ELet's%20get%20started%3C%2FSTRONG%3E%20page%2C%20select%20the%20pencil%20icon%20on%20the%20left-hand%20navigation%20bar%20to%20switch%20to%20the%20%3CSTRONG%3EAuthor%3C%2FSTRONG%3E%20tab.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20569px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132035i952DAB6C85FA20C8%2Fimage-dimensions%2F569x249%3Fv%3D1.0%22%20width%3D%22569%22%20height%3D%22249%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--534395809%22%20id%3D%22toc-hId--534395809%22%3E%3CSTRONG%3ECreate%20linked%20services%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3EAfter%20displaying%20the%20Author%20tab%2C%20create%20the%20Linked%20Service%20by%20selecting%20%3CSTRONG%3EConnections%3C%2FSTRONG%3E%20and%20then%20selecting%20the%20New%20button%20on%20the%20toolbar%2C%20as%20mentioned%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%23create-a-linked-service%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E%20and%20shown%20below.%20For%20Azure%20Database%20for%20PostgreSQL%20service%2C%20you%20need%20to%20provide%20the%20server%20name%2C%20port%2C%20database%20name%2C%20username%2C%20and%20password%20for%20a%20user%20with%20permissions%20to%20connect%20to%20the%20Azure%20Database%20for%20PostgreSQL%20server%20and%20perform%20schema%20discovery%2C%20read%2C%20and%20write%20data%20to%20the%20table.%20In%20this%20step%2C%20you%20define%20the%20connections%20for%20source%20and%20target%20Linked%20Services.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20648px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132033iECA2393CEC300C2B%2Fimage-dimensions%2F648x361%3Fv%3D1.0%22%20width%3D%22648%22%20height%3D%22361%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1208414526%22%20id%3D%22toc-hId-1208414526%22%3E%3CSTRONG%3ECreate%20datasets%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3EIn%20this%20procedure%2C%20you%20create%20two%20datasets%20for%20source%20and%20target%20by%20selecting%20the%20%E2%80%98%2B%E2%80%99%20sign%20and%20then%20selecting%20%3CSTRONG%3EDatasets%3C%2FSTRONG%3E%20as%20per%20the%20.%20Under%20Connections%20tab%2C%20you%20map%20it%20to%20the%20Azure%20Database%20for%20PostgreSQL%20Linked%20Service%20defined%20in%20previous%20step%20by%20selecting%20it%20from%20the%20dropdown.%20Next%2C%20you%20identify%20the%20destination%20table%20from%20dropdown%20in%20Azure%20Database%20for%20PostgreSQL%20server%20as%20shown%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20657px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132036i6ACFC511D41E1653%2Fimage-dimensions%2F657x318%3Fv%3D1.0%22%20width%3D%22657%22%20height%3D%22318%22%20alt%3D%22clipboard_image_3.png%22%20title%3D%22clipboard_image_3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1343742435%22%20id%3D%22toc-hId--1343742435%22%3E%3CSTRONG%3ECreate%20a%20pipeline%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3ENext%2C%20create%20a%20pipeline%20for%20data%20movement%20and%20transformation%20by%20selecting%20the%20%E2%80%98%2B%E2%80%99%20(plus)%20sign%20and%20then%20selecting%20%3CSTRONG%3EPipeline%3C%2FSTRONG%3E%20as%20per%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%23create-a-pipeline%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%20In%20the%20pipeline%2C%20map%20the%20source%20datasets%20and%20the%20sink%20datasets%20created%20in%20previous%20step%20and%20perform%20column%20mapping%20to%20ensure%20that%20there%20are%20no%20data%20conversion%20errors%20moving%20from%20source%20to%20target%2C%20as%20shown%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20609px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132038i1FB5606601A87452%2Fimage-dimensions%2F609x271%3Fv%3D1.0%22%20width%3D%22609%22%20height%3D%22271%22%20alt%3D%22clipboard_image_4.png%22%20title%3D%22clipboard_image_4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20after%20defining%20and%20creating%20the%20pipeline%2C%20on%20the%20toolbar%20above%20the%20canvas%2C%20select%20%3CSTRONG%3EValidate%3C%2FSTRONG%3E%20to%20validate%20pipeline%20settings.%20Confirm%20that%20the%20pipeline%20has%20been%20successfully%20validated.%20To%20close%20the%20validation%20output%2C%20select%20the%20%3CSTRONG%3E%26gt%3B%26gt%3B%3C%2FSTRONG%3E%20(right%20arrow)%20button.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-399067900%22%20id%3D%22toc-hId-399067900%22%3E%3CSTRONG%3EDebug%20and%20run%20the%20Pipeline%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3EAfter%20validation%2C%20on%20the%20pipeline%20toolbar%20above%20the%20canvas%2C%20select%20%3CSTRONG%3EDebug%3C%2FSTRONG%3E%20to%20trigger%20a%20test%20run.%20You%20can%20view%20the%20status%20of%20the%20pipeline%20run%20on%20the%26nbsp%3B%3CSTRONG%3EOutput%3C%2FSTRONG%3E%26nbsp%3Btab%20of%20the%20pipeline%20settings%2C%20at%20the%20bottom.%3C%2FP%3E%0A%3CP%3EAfter%20the%20data%20pipeline%20run%20is%20successful%2C%20you%20can%20deploy%20the%20pipeline%20and%20trigger%20the%20run%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%23trigger-the-pipeline-manually%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emanually%3C%2FA%3E%20or%20on%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%23trigger-the-pipeline-on-a-schedule%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eschedule%3C%2FA%3E.%20To%20monitor%20the%20pipeline%20runs%2C%20you%20can%20switch%20to%20the%20%3CSTRONG%3EMonitor%3C%2FSTRONG%3E%20tab%20on%20the%20left%20and%20use%20select%20%3CSTRONG%3ERefresh%3C%2FSTRONG%3E%20to%20refresh%20the%20list%2C%20as%20shown%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20636px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F132037i1FDA815B9CE92899%2Fimage-dimensions%2F636x167%3Fv%3D1.0%22%20width%3D%22636%22%20height%3D%22167%22%20alt%3D%22clipboard_image_5.png%22%20title%3D%22clipboard_image_5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2141878235%22%20id%3D%22toc-hId-2141878235%22%3E%3CSTRONG%3ENext%20steps%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CP%3EGet%20started%20by%20creating%20a%20Data%20pipeline%20using%20one%20of%20the%20preferred%20toolchains%20bringing%20data%20from%20disparate%20data%20sources%20into%20Azure%20Database%20for%20PostgreSQL%20as%20a%20destination%20target.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20looking%20for%20a%20jumpstart%2C%20you%20can%20follow%20our%20Azure%20QuickStart%20template%20below%20which%20creates%20a%20data%20pipeline%20that%20copies%20from%20a%20folder%20in%20Azure%20blob%20storage%20to%20a%20table%20in%20Azure%20Database%20for%20PostgreSQL%20using%20ADF%20v2.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%23create%2FMicrosoft.Template%2Furi%2Fhttps%253A%252F%252Fraw.githubusercontent.com%252FAzure%252Fazure-quickstart-templates%252Fmaster%252F101-data-factory-v2-blob-to-postgresql-copy%252Fazuredeploy.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F1-CONTRIBUTION-GUIDE%2Fimages%2Fdeploytoazure.png%22%20border%3D%220%22%20%2F%3E%20%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--410278726%22%20id%3D%22toc-hId--410278726%22%3E%3CSTRONG%3EResources%3C%2FSTRONG%3E%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fconnector-azure-database-for-postgresql%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECopy%20Data%20to%20and%20from%20Azure%20Database%20for%20PostgreSQL%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EData%20Factory%20UI%20in%20the%20Azure%20portal%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-copy-data-tool%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECopy%20Data%20tool%20in%20the%20Azure%20portal%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPowerShell%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-dot-net%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E.NET%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-python%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPython%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-rest-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EREST%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-resource-manager-template%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Resource%20Manager%20template%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFor%20any%20questions%20or%20feedback%20about%20Azure%20Database%20for%20PostgreSQL%2C%20please%20reach%20out%20to%20the%20%3CA%20href%3D%22mailto%3AAskAzureDBforPostgreSQL%40service.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAskAzureDBforPostgreSQL%40service.microsoft.com%3C%2FA%3E%20alias.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EParikshit%20Savjani%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EPrincipal%20Program%20Manager%2C%20Microsoft%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-857975%22%20slang%3D%22en-US%22%3E%3CP%3EA%20core%20value%20proposition%20for%20running%20your%20PostgreSQL%20databases%20in%20a%20fully%20managed%20service%20such%20as%20Azure%20Database%20for%20PostgreSQL%20is%20richer%20native%20integrations%20with%20Azure%20services%20in%20cloud%20ecosystem.%20Today%2C%20we%20are%20happy%20to%20announce%20that%20Azure%20Database%20for%20PostgreSQL%20is%20now%20a%20supported%20sink%20destination%20in%20Azure%20Data%20Factory.%3C%2FP%3E%3C%2FLINGO-TEASER%3E

A core value proposition for running your PostgreSQL databases in a fully managed service such as Azure Database for PostgreSQL is richer native integrations with Azure services in cloud ecosystem. Today, we are happy to announce that Azure Database for PostgreSQL is now a supported sink destination in Azure Data Factory. Azure Data Factory is a fully managed data integration service that allows you to create data-driven workflows in a code free visual environment in Azure for orchestrating and automating data movement and data transformation. Let’s dig in to see how you can leverage Azure Data factory for secure one-time data movement or running continuous data pipelines which loads data into Azure Database for PostgreSQL from disparate data sources running on-premises, in Azure or other cloud providers for analytics and reporting.

 

Azure Data Factory supports collectively across Azure, on-premises, multi-cloud, and SaaS platforms orchestrating secure data transfer. PostgreSQL is the most loved database by developer community owing to rich feature support and extensibility. PostgreSQL, with its superior native JSON, geo-spatial data processing capabilities, and Python and R support is an attractive data platform for data science. The sink support for Azure Database for PostgreSQL now allows you to bring your data (relational, NoSQL, data lake files) to your favorite open source database for storage, processing and reporting.

With our single server deployment option, you get a fully managed, secure, community version of PostgreSQL allowing you to scale-up or down on-demand. For developers and enterprises looking to scale their workload as data volume grows, we recommend Hyperscale (Citus) deployment. Hyperscale (Citus) scales out your data across multiple physical nodes, with the underlying data being sharded into much smaller bits while data remains hosted in the familiar open source PostgreSQL database.  For customers, native integration of Azure Data Factory with Azure Database for PostgreSQL unlocks many possible hybrid scenarios and multi-cloud architectures.

 

 

clipboard_image_0.png

Building your data pipeline in ADF to load data into PostgreSQL

In Azure Data Factory, you can use the Copy activity to copy data among data stores located on-premises and in the cloud. After you copy the data, you can use other activities to further transform and analyze it as described here. If you want to copy the data from file system or cloud-based object stores, the copy activity can also read from files in these formats:

  • Text
  • JSON
  • Avro
  • ORC
  • Parquet

For up-to-date information on supported data stores and file formats, refer to the service documentation.

 

To copy data from a source to a sink, the service that runs the Copy activity:

  1. Reads data from a source data store.
  2. Performs serialization/deserialization, compression/decompression, column mapping, and so on. It performs these operations based on the configuration of the input dataset, output dataset, and Copy activity.
  3. Writes data to the sink/destination data store.

 

At a high level, to use the Copy activity in Azure Data Factory, you need to:

  1. Create linked services for the source data store and the sink data store - Linked services are much like connection strings, which define the connection information that's needed for Data Factory to connect to external resources. 
  1. Create datasets for the source and sink -Datasets define the schema, table name, or filename in linked services created in previous step, where the data can be sourced or targeted for copy activity.
  1. Create a pipeline with the Copy activity - In the step you map the source, sink datasets created in previous step and do the column mapping to ensure there are no data conversion error.

For latest up to date information on the Copy activity, please refer to the documentation.

 

You can author and run a Copy activity data pipeline in Azure Data Factory by using following toolchain

This blog post walks through the Azure portal UI experience. After you create the Azure Data Factory service via the portal by using the steps mentioned in the QuickStart documentation, the Let’s get started page appears. On the Let's get started page, select the pencil icon on the left-hand navigation bar to switch to the Author tab.

 

clipboard_image_1.png

Create linked services

After displaying the Author tab, create the Linked Service by selecting Connections and then selecting the New button on the toolbar, as mentioned in the documentation and shown below. For Azure Database for PostgreSQL service, you need to provide the server name, port, database name, username, and password for a user with permissions to connect to the Azure Database for PostgreSQL server and perform schema discovery, read, and write data to the table. In this step, you define the connections for source and target Linked Services.

 

clipboard_image_2.png

Create datasets

In this procedure, you create two datasets for source and target by selecting the ‘+’ sign and then selecting Datasets as per the . Under Connections tab, you map it to the Azure Database for PostgreSQL Linked Service defined in previous step by selecting it from the dropdown. Next, you identify the destination table from dropdown in Azure Database for PostgreSQL server as shown below.

 

clipboard_image_3.png

Create a pipeline

Next, create a pipeline for data movement and transformation by selecting the ‘+’ (plus) sign and then selecting Pipeline as per the documentation. In the pipeline, map the source datasets and the sink datasets created in previous step and perform column mapping to ensure that there are no data conversion errors moving from source to target, as shown below.

 

 

clipboard_image_4.png

 

Finally, after defining and creating the pipeline, on the toolbar above the canvas, select Validate to validate pipeline settings. Confirm that the pipeline has been successfully validated. To close the validation output, select the >> (right arrow) button.

Debug and run the Pipeline

After validation, on the pipeline toolbar above the canvas, select Debug to trigger a test run. You can view the status of the pipeline run on the Output tab of the pipeline settings, at the bottom.

After the data pipeline run is successful, you can deploy the pipeline and trigger the run manually or on a schedule. To monitor the pipeline runs, you can switch to the Monitor tab on the left and use select Refresh to refresh the list, as shown below.

 

clipboard_image_5.png

Next steps

Get started by creating a Data pipeline using one of the preferred toolchains bringing data from disparate data sources into Azure Database for PostgreSQL as a destination target.

 

If you are looking for a jumpstart, you can follow our Azure QuickStart template below which creates a data pipeline that copies from a folder in Azure blob storage to a table in Azure Database for PostgreSQL using ADF v2.

 


 

Resources

For any questions or feedback about Azure Database for PostgreSQL, please reach out to the AskAzureDBforPostgreSQL@service.microsoft.com alias.

 

Parikshit Savjani
Principal Program Manager, Microsoft

 

1 Comment
Regular Visitor

This works well for certain sources but fails when copying from an SQL database. See https://social.msdn.microsoft.com/Forums/en-US/bd53305d-301e-4847-abf7-8cab7ace5087/azure-data-facto...