Skip to main content
Version: Next

Azure Development Area

Overview Development Environment

A Kubernetes cluster is installed in Azure. The cluster contains all components for the deployment of the NAVIDA PRO backend in the development instances. A database is required for the microservices in order to be able to store the data persistently.

Alt text

DB Connection

A bastion host is set up to access internal services such as dashboards and the database. This ensures that no direct access to these services from outside is possible. You need an Azure account to connect to bastion.

Alt text

To connect to the Database directly you will first need to create a connection to the bastion host which requires an Azure Account, that we will have to authorize Once you have an account you need to install the azure cli https://learn.microsoft.com/en-us/cli/azure/install-azure-cli

After that, use the "az login --tenant f5342d95-aa7e-460f-b3ed-51b1514dd06a" command to log in.

Postgres

Install the following az extension: ssh. - only first time needed

az extension add -n ssh

Connect to the VM with the following command:

az network bastion ssh --name bastion_navida --resource-group NavidaRG --target-resource-id "/subscriptions/554fe451-6fa7-4ca0-9075-80f133ddad1e/resourceGroups/NavidaRG/providers/Microsoft.Compute/virtualMachines/NavidaPostgresDB" --auth-type AAD

Once the connection is established you have to forward the postgres port with the following command:

Tilde-C (~C)

This opens the 'ssh>'-prompt where you can forward

ssh> -L 5432:localhost:5432

NOTE for MacOS users: if you have troubles entering into ssh prompt, it might be that keyboard commands are disabled for ssh. If so, please add

EnableEscapeCommandline yes

line to your ~/.ssh/config file

Now you can use any tool to access the databases. Here is an example for DBeaver

Alt text