{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["availability","callout","img","partial","faq","faq-item"]},"type":"markdown","userRole":"Users, Editors, and Admins","accountType":"All accounts","plan":"Exclusive to select subscription plans"},"seo":{"title":"Integrate Microsoft Azure for PostgreSQL with Databox","description":"Connect Azure PostgreSQL to Databox to query your data, build datasets with SQL, and visualize results alongside your other tools.","siteUrl":"https://help.databox.com","llmstxt":{"title":"Databox Knowledge Base","description":"Databox is a business analytics platform that consolidates data in one place, enabling real-time performance tracking and insights by mixing and matching data from various sources for a comprehensive view.","details":{"content":"This knowledge base covers everything from account setup and integrations to building Databoards, creating custom metrics, and using AI-powered features."},"sections":[{"title":"General","includeFiles":["docs/general/*.md","docs/general/visualization-types/*.md","docs/general/templates/*.md"],"excludeFiles":[]},{"title":"AI","includeFiles":["docs/ai/*.md"],"excludeFiles":[]},{"title":"Account Management","includeFiles":["docs/account-management/**/*.md"],"excludeFiles":[]},{"title":"Databoards","includeFiles":["docs/databoards/**/*.md"],"excludeFiles":[]},{"title":"Data Management","includeFiles":["docs/data-management/**/*.md"],"excludeFiles":[]},{"title":"Metrics","includeFiles":["docs/metrics/**/*.md"],"excludeFiles":[]},{"title":"Forecasts","includeFiles":["docs/forecasts/*.md"],"excludeFiles":[]},{"title":"Goals","includeFiles":["docs/goals/*.md"],"excludeFiles":[]},{"title":"Reports","includeFiles":["docs/reports/*.md"],"excludeFiles":[]},{"title":"Notifications","includeFiles":["docs/notifications/*.md"],"excludeFiles":[]},{"title":"Pricing and Billing","includeFiles":["docs/pricing-and-billing/*.md"],"excludeFiles":[]},{"title":"Mobile","includeFiles":["docs/mobile/*.md"],"excludeFiles":[]},{"title":"Support","includeFiles":["docs/support/*.md"],"excludeFiles":[]},{"title":"Integrations","includeFiles":["docs/integrations/**/*.md"],"excludeFiles":[]}],"hide":false,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"integrate-microsoft-azure-for-postgresql-with-databox","__idx":0},"children":["Integrate Microsoft Azure for PostgreSQL with Databox"]},{"$$mdtype":"Tag","name":"Availability","attributes":{"users":"users","accounts":"all","plans":"exclusive"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Azure Database for PostgreSQL is a fully managed relational database service built on the PostgreSQL community edition. It handles provisioning, patching, backups, and scaling automatically, and is available in two deployment modes: Flexible Server and Single Server. Connecting Azure Database for PostgreSQL to Databox lets you pull data directly from your managed database, build datasets using SQL queries, and visualize business-critical figures alongside data from your other connected tools."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connection","__idx":1},"children":["Connection"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you've already established a connection, you can ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/add-a-data-source"},"children":["reuse"]}," it to add new data sources to your Databox account."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-1-create-a-read-only-postgresql-role-for-databox","__idx":2},"children":["Step 1: Create a read-only PostgreSQL role for Databox"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Databox only reads data from your database — it never writes to it. Create a dedicated PostgreSQL role with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SELECT"]},"-only privileges on the schemas and tables you want to expose. You can run these commands using the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query editor"]}," in the Azure portal, or via a PostgreSQL client connected to your instance."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"CREATE ROLE databox WITH LOGIN PASSWORD 'your_secure_password';\nGRANT CONNECT ON DATABASE your_database TO databox;\nGRANT USAGE ON SCHEMA public TO databox;\nGRANT SELECT ON ALL TABLES IN SCHEMA public TO databox;\nALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO databox;\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["your_database"]}," with the name of the database you want to connect, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["your_secure_password"]}," with a strong password. If you need to expose tables in additional schemas, repeat the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GRANT USAGE"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GRANT SELECT"]}," statements for each schema."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Callout","attributes":{"type":"note"},"children":["Avoid the following special characters in your password, as they can cause encoding issues when establishing the connection: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["`"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\""]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\\"]},", and spaces."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-enable-public-access-on-your-azure-postgresql-instance","__idx":3},"children":["Step 2: Enable public access on your Azure PostgreSQL instance"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Databox connects to Azure Database for PostgreSQL over a public endpoint. The steps differ depending on whether you are using Flexible Server or Single Server."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Flexible Server:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://portal.azure.com"},"children":["Azure portal"]},", go to your Azure Database for PostgreSQL Flexible Server resource."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Networking"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connectivity method"]},", select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Public access (allowed IP addresses)"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," to apply the change."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Single Server:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://portal.azure.com"},"children":["Azure portal"]},", go to your Azure Database for PostgreSQL Single Server resource."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection security"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow access to Azure services"]}," to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No"]}," (unless required for other integrations)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Confirm that ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Public access"]}," is enabled. If not, enable it and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"Callout","attributes":{"type":"note"},"children":["The server's fully qualified hostname is shown on the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Overview"]}," page of your instance (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["myserver.postgres.database.azure.com"]},"). Copy this value — you will need it in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-4-enter-your-azure-postgresql-connection-details-in-databox"},"children":["Step 4"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-add-the-databox-ip-to-your-firewall-rules","__idx":4},"children":["Step 3: Add the Databox IP to your firewall rules"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Azure Database for PostgreSQL uses firewall rules to control inbound network access. Add a rule that permits connections from the Databox IP address."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Flexible Server:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://portal.azure.com"},"children":["Azure portal"]},", go to your Flexible Server resource."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Networking"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Firewall rules"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add current client IP address"]}," or click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add firewall rule"]}," to enter a custom range."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start IP address"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End IP address"]}," both to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Give the rule a name (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Databox"]},") and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Single Server:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://portal.azure.com"},"children":["Azure portal"]},", go to your Single Server resource."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection security"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Firewall rules"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add client IP"]}," or enter values manually:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Rule name"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Databox"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start IP"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End IP"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-enter-your-azure-postgresql-connection-details-in-databox","__idx":5},"children":["Step 4: Enter your Azure PostgreSQL connection details in Databox"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In Databox, go to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Sources > + New connection"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Search for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Microsoft Azure for PostgreSQL"]}," and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Fill in the connection form:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data source name"]}," — a label for this connection in Databox."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Host"]}," — the fully qualified server name of your Azure PostgreSQL instance, found on the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Overview"]}," page in the Azure portal (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["myserver.postgres.database.azure.com"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Port"]}," — the port your instance listens on. The default for Azure Database for PostgreSQL is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5432"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["User"]}," — the PostgreSQL role name created in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-1-create-a-read-only-postgresql-role-for-databox"},"children":["Step 1"]},". For Flexible Server, use the plain role name (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["databox"]},"). For Single Server, Azure requires the format ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["username@servername"]}," (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["databox@myserver"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]}," — the password for that role."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database name"]}," (optional) — the specific database to connect to. Leave blank to connect at the server level."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Timezone"]}," — the time zone used to interpret date values in query results. Defaults to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Etc/UTC"]},"."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Toggle ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use SSL/TLS"]}," to enable encrypted connections."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]},"."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integrate-microsoft-azure-for-postgresql-with-databox_1.166a9fce56f5f3fd7b0104143cb5f058797a93920c0732ff1eb71413cdc8a7de.4783b0ec.png","alt":"connect","withLightbox":true,"className":"ss-img"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"datasets","__idx":6},"children":["Datasets"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Microsoft Azure for PostgreSQL integration supports the creation of ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/understanding-datasets"},"children":["datasets"]},", which allow you to define and shape the specific data you want to use for reporting in Databox. Datasets make it easier to focus on the most relevant information, enabling you to filter, visualize, and analyze metrics across projects, teams, and clients without writing complex queries each time."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"steps-to-create-a-dataset","__idx":7},"children":["Steps to create a dataset"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select a table"]},": Pick the appropriate schema within that database."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select columns"]},": Browse and select the specific columns (fields) from your tables or views to include in your dataset. These columns define the structure and content of your dataset."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"optional-write-sql","__idx":8},"children":["Optional: Write SQL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more advanced use cases, you can write a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["custom SQL query"]}," instead of selecting columns manually. This allows you to:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Join multiple tables"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Apply filters and aggregations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Format or transform data before importing it into Databox"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your query must return a valid tabular result to be used as a dataset."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"additional-resources","__idx":9},"children":["Additional resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://learn.microsoft.com/en-us/azure/postgresql/"},"children":["Azure Database for PostgreSQL documentation"]}," — Official Microsoft docs for Azure Database for PostgreSQL, covering Flexible Server and Single Server deployment modes, connectivity, security, backups, high availability, and monitoring."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking"},"children":["Azure Database for PostgreSQL Flexible Server networking overview"]}," — Guidance on public access, private access (VNet integration), and firewall rule configuration for Flexible Server."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"resources","__idx":10},"children":["Resources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For comprehensive details on metrics, data availability, templates, specifications, usage guidelines, and other key information, refer to the resources listed below."]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":240},"children":[{"$$mdtype":"Tag","name":"IntegrationResources","attributes":{"integrationKey":"microsoft-azure-for-postgresql","hideMetrics":true},"children":[]}]},{"$$mdtype":"Tag","name":"Faq","attributes":{},"children":[{"$$mdtype":"Tag","name":"FaqItem","attributes":{"question":"Does Databox support Azure Active Directory (Entra ID) authentication?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No. Databox connects to Azure Database for PostgreSQL using standard PostgreSQL username and password authentication. Azure Active Directory (Microsoft Entra ID) authentication is not supported. Make sure the role you create in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#step-1-create-a-read-only-postgresql-role-for-databox"},"children":["Step 1"]}," uses standard PostgreSQL authentication, not Azure AD authentication."]}]},{"$$mdtype":"Tag","name":"FaqItem","attributes":{"question":"What should I do if Databox cannot connect to my Azure PostgreSQL instance?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check the following in order:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Public access"]}," is enabled on the instance (under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Networking"]}," for Flexible Server, or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection security"]}," for Single Server)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["firewall rule"]}," exists with both start and end IP set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52.4.198.118"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The PostgreSQL role was created with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LOGIN"]}," privileges and the correct password."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You are using the correct username format for your deployment mode (see below)."]}]}]},{"$$mdtype":"Tag","name":"FaqItem","attributes":{"question":"What username format should I use for Azure Database for PostgreSQL?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The required format depends on your deployment mode. Flexible Server accepts plain role names (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["databox"]},"). Single Server requires the format ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["username@servername"]}," (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["databox@myserver"]},"), where ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["myserver"]}," is the part of your hostname before ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".postgres.database.azure.com"]},". If the connection fails with an authentication error, check that you are using the correct format for your deployment mode."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[" "]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":4,"cardMinWidth":160},"children":[{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Ask Genie","icon":"genie","to":"https://app.databox.com/genie","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Get instant answers or help with your data using the in-app AI assistant."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Talk to an expert","icon":"assistance","to":"https://meetings.hubspot.com/databox-meeting/account-management","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For customers: Get help with your setup, strategy, or making the most of Databox."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Book a demo","icon":"eye-open","to":"https://meetings.hubspot.com/databox-meeting/ref-knowledge-base","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["New to Databox? See how it works and get guidance on getting started."]}]},{"$$mdtype":"Tag","name":"FooterCard","attributes":{"title":"Send an email","icon":"help","to":"mailto:help@databox.com","variant":"elevated"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Reach out to support for help with your account, data, or technical issues."]}]}]}]},"headings":[{"value":"Integrate Microsoft Azure for PostgreSQL with Databox","id":"integrate-microsoft-azure-for-postgresql-with-databox","depth":1},{"value":"Connection","id":"connection","depth":2},{"value":"Step 1: Create a read-only PostgreSQL role for Databox","id":"step-1-create-a-read-only-postgresql-role-for-databox","depth":3},{"value":"Step 2: Enable public access on your Azure PostgreSQL instance","id":"step-2-enable-public-access-on-your-azure-postgresql-instance","depth":3},{"value":"Step 3: Add the Databox IP to your firewall rules","id":"step-3-add-the-databox-ip-to-your-firewall-rules","depth":3},{"value":"Step 4: Enter your Azure PostgreSQL connection details in Databox","id":"step-4-enter-your-azure-postgresql-connection-details-in-databox","depth":3},{"value":"Datasets","id":"datasets","depth":2},{"value":"Steps to create a dataset","id":"steps-to-create-a-dataset","depth":3},{"value":"Optional: Write SQL","id":"optional-write-sql","depth":3},{"value":"Additional resources","id":"additional-resources","depth":3},{"value":"Resources","id":"resources","depth":2}],"frontmatter":{"slug":"integrate-microsoft-azure-for-postgresql-with-databox","seo":{"title":"Integrate Microsoft Azure for PostgreSQL with Databox","description":"Connect Azure PostgreSQL to Databox to query your data, build datasets with SQL, and visualize results alongside your other tools."},"keywords":{"includes":["Azure for PostgreSQL integration","connect Azure for PostgreSQL to Databox","Azure PostgreSQL dataset","Azure PostgreSQL custom SQL query","Azure PostgreSQL read-only role","Azure PostgreSQL firewall rule Databox","whitelist Databox IP Azure PostgreSQL","Azure for PostgreSQL SSL TLS","Azure PostgreSQL public access","Azure PostgreSQL cannot connect","Azure PostgreSQL port 5432"]},"metadata":{"userRole":"Users, Editors, and Admins","accountType":"All accounts","plan":"Exclusive to select subscription plans"}},"lastModified":"2026-04-17T19:27:17.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/integrate-microsoft-azure-for-postgresql-with-databox","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}