Connection refused on Azure PostgreSQL

Greetings,

I am trying to install and configure Vault using Helm on Docker Desktop (Mac) on Kubernetes. I am able to get everything working except for the Azure PostgreSQL Connection. these are the links that I am using as references:

it fails on this command:

kubectl exec -it -n test-vault vault-0 vault write database/config/postgresdb
plugin_name=postgresql-database-plugin
allowed_roles=“my-role”
connection_url=“jdbc:postgresql://postgresdb.postgres.database.azure.com:5432/postgres?user={{username}}&password={{password}}&sslmode=require”
username=name
password=somepassword

Error writing data to database/config/postgresdb: Error making API request.
URL: PUT http://127.0.0.1:8200/v1/database/config/postgresdb
Code: 400. Errors: error creating database object: error verifying connection: dial tcp 127.0.0.1:5432: connect: connection refused

I was able to connect to the Azure PostgreSQL DB by using the host connection in my local terminal; so connecting to it works. Does anyone have any insight as to what may be the issue?

Docker Desktop v3.2.2
Kubernetes v1.19.7
Vault v1.6.3
Consul v1.9.4
Helm v3.5.3

Thank you in advance.