Connect to and manage an Azure Database for PostgreSQL in Microsoft Purview
This article outlines how to register an Azure Database for PostgreSQL deployed with single server deployment option, as well as how to authenticate and interact with an Azure Database for PostgreSQL in Microsoft Purview. For more information about Microsoft Purview, read the introductory article.
Supported capabilities
| Metadata Extraction | Full Scan | Incremental Scan | Scoped Scan | Classification | Access Policy | Lineage | Data Sharing |
|---|---|---|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Yes | No | Limited** | No |
** Lineage is supported if dataset is used as a source/sink in Data Factory Copy activity
Important
Microsoft Purview only supports single server deployment option for Azure Database for PostgreSQL. Versions 8.x to 12.x
Prerequisites
An Azure account with an active subscription. Create an account for free.
An active Microsoft Purview account.
You will need to be a Data Source Administrator and Data Reader to register a source and manage it in the Microsoft Purview governance portal. See our Microsoft Purview Permissions page for details.
Register
This section describes how to register an Azure Database for PostgreSQL in Microsoft Purview using the Microsoft Purview governance portal.
Authentication for registration
Currently, to be able to manage and interact with an Azure Database for PostgreSQL single server, only SQL Authentication is supported.
SQL Authentication
Connecting to an Azure Database for PostgreSQL database requires the fully qualified server name and login credentials. You can follow the instructions in CONNECT AND QUERY to create a login for your Azure Database for PostgreSQL if you don't have this available. You will need username and password for the next steps.
- If you do not have an Azure Key vault already, follow this guide to create an Azure Key Vault.
- Navigate to your key vault in the Azure portal
- Select Settings > Secrets
- Select + Generate/Import and enter the Name and Value as the password from your Azure PostgreSQL Database
- Select Create to complete
- If your key vault is not connected to Microsoft Purview yet, you will need to create a new key vault connection
- Finally, create a new credential of type SQL authentication using the username and password to set up your scan
Steps to register
To register a new Azure Database for PostgreSQL in your data catalog, do the following:
Navigate to your Microsoft Purview account.
Select Data Map on the left navigation.
Select Register
On Register sources, select Azure Database for PostgreSQL. Select Continue.
On the Register sources Azure Database for PostgreSQL screen, do the following:
- Enter a Name for your data source. This will be the display name for this data source in your Catalog.
- Select From Azure subscription, select the appropriate subscription from the Azure subscription drop-down box and the appropriate server from the Server name drop-down box.
- Select Register to register the data source.
Scan
Follow the steps below to scan an Azure Database for PostgreSQL database to automatically identify assets and classify your data. For more information about scanning in general, see our introduction to scans and ingestion
Create and run scan
To create and run a new scan, do the following:
Select the Data Map tab on the left pane in the Microsoft Purview governance portal.
Select the Azure Database for PostgreSQL source that you registered.
Select New scan
Select the credential to connect to your data source.
You can scope your scan to specific folders or subfolders by choosing the appropriate items in the list.
Then select a scan rule set. You can choose between the system default, existing custom rule sets, or create a new rule set inline.
Choose your scan trigger. You can set up a schedule or run the scan once.
Review your scan and select Save and run.
View your scans and scan runs
To view existing scans, do the following:
Go to the Microsoft Purview governance portal. Select the Data Map tab under the left pane.
Select the desired data source. You will see a list of existing scans on that data source under Recent scans, or can view all scans under the Scans tab.
Select the scan that has results you want to view.
This page will show you all of the previous scan runs along with the status and metrics for each scan run. It will also display whether your scan was scheduled or manual, how many assets had classifications applied, how many total assets were discovered, the start and end time of the scan, and the total scan duration.
Manage your scans - edit, delete, or cancel
To manage or delete a scan, do the following:
Go to the Microsoft Purview governance portal. Select the Data Map tab under the left pane.
Select the desired data source. You will see a list of existing scans on that data source under Recent scans, or can view all scans under the Scans tab.
Select the scan you would like to manage. You can edit the scan by selecting Edit scan.
You can cancel an in progress scan by selecting Cancel scan run.
You can delete your scan by selecting Delete scan.
Note
- Deleting your scan does not delete catalog assets created from previous scans.
- The asset will no longer be updated with schema changes if your source table has changed and you re-scan the source table after editing the description in the schema tab of Microsoft Purview.
Next steps
Now that you have registered your source, follow the below guides to learn more about Microsoft Purview and your data.
Povratne informacije
Pošalјite i prikažite povratne informacije za