graphql-engine

Hasura GraphQL Engine on Azure

This manifest is about using Hasura with an existing database. If you’re looking for a manifest that provisions a new Postgres server also, checkout ../azure-container-with-pg directory.

Click the button below to create a Hasura GraphQL Engine container on Azure Container Instances backed by an existing Postgres server (e.g. Azure Database for PostgreSQL). For a more detailed step-by-step guide on deplopying individual resources to Azure using the CLI, refer to the documentation.

Deploy to Azure Button

(The button opens Azure Portal, you might want to do a Ctrl+Click, to get it on a new tab)

Pre-requisites

Instructions

Once you click the button, it will take you to the Azure Portal, where you might be prompted to login first.

A custom deployment screen will show up - enter the following information, as shown in the screenshot that follows:

(Note: Make sure you’ve allowed access for Azure services to the Postgres Server. This setting can be found under the connection security tab on Azure Portal.)

Azure Portal screenshot

Once all entries are filled, agree to the terms and click the Purchase button.

The deployment will start now.

Click on the Notification Bell icon on the header bar and then click on Deployment in Progress link.

On this screen, you can see progress for various steps in the deployment.

Azure Portal deployment screen
screenshot

Once all steps are completed, click on the Outputs link on the sidebar.

Azure Portal deployment output
screenshot

The FQDN and IP address are shown in this screen. Copy the FQDN and paste it into a browser. It will open up the Hasura GraphQL Engine console.

http://hasura-graphql-engine.centralindia.azurecontainer.io

Console

Track Tables

Once you open the console, switch to Data tab and you’ll be able to see the tables in the database. You might have to switch the schema (dropdown on the top of sidebar) if your tables are not in the default public schema.

Console Track Table

Next steps