--- title: "Set up Azure Relay for Database connection" slug: "set-up-azure-relay-for-database-connection" tags: ["Flow topic"] status: "update" updated: 2026-09-16T13:21:36Z published: 2026-09-22T13:19:01Z canonical: "docs.staedean.com/set-up-azure-relay-for-database-connection" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up Azure Relay for Database connection You can connect D365 F&SCM to an external on-premises database. If you connect to an external on-premises database, you must connect through firewalls. With Connectivity studio, you can connect to an external on-premises database using an Azure Relays. To establish a connection between an external on-premises database and D365 F&SCM with Connectivity studio, these elements must be in place: 1. Azure Relays namespace. 2. BIS Azure Relays client installed on the external on-premises server. 3. Data Source Name (DSN) on external on-premises server. 4. Database connector and ODBC document in Connectivity studio on D365 F&SCM. This picture gives an architectural overview of the Azure Relays solution in Connectivity studio with the required elements. (Note: The numbers in the picture correspond with the before-mentioned element numbers.): ![](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/Azure%20Relays%20for%20Database%20Connection.png) Prerequisites to establish this connection: - Azure subscription. - D365 F&SCM with Connectivity studio installed. - External on-premises server and database. ## Flow diagram [Embedded content](https://viewer.diagrams.net/?tags=%7B%7D&lightbox=1&highlight=0000ff&edit=_blank&layers=1&nav=1&title=Set%20up%20Azure%20Service%20Bus%20for%20Database%20connection.drawio&dark=auto#R%3Cmxfile%3E%3Cdiagram%20name%3D%22Page-1%22%20id%3D%220%22%3E7Vhrb9sgFP01kbYPlvzIsu5jk2Zdpa2TZk39TMyNTYshAvLqr98F41fdVUnaVVPVSBFw4F7wOQeMPEpm5e5SkVXxQ1Lgoziku1FyMYrjaByNsbDIvkK%2BTKIKyBWjflALpOwePBh6dM0o6N5AIyU3bNUHMykEZKaHEaXktj9sKXl%2F1hXJYQCkGeFD9IZRU1To2aewxb8By4t65ij0PSWpB3tAF4TKbQdK5qNkpqQ0Va3czYBb8mpeqrivf%2BltFqZAmEMCtCHKDIN8Hm329SNjGLKLjem2YAbSFclszxYFRqwwJcdWhNUl43wmuVQuLlkul3GWIa6NknfQ6Qndr%2BmpibQ5CGe5wHqGCwIcPt2AMgz5P%2FcdJaPUrmy6lMJ4f0RI3rRa94bwtV932j6gTQK7zgN6Si5BlmDUHocUHdXGXqJtq%2FDEQ3WSz76970cQb6%2B8SdwqgBUvgmv%2B1qB%2BLm6tSeOQkwXwKnSmgBhA7Px%2BrWz5CzixKxSkBO3Id1NxJu6qCExMiSFBSQTar7RSIiIzjUXmsgXE5gqUzRQ0eQIbtSAaAr9bUB%2BXuraIIfquS5d30NN2UXItKFCv53GWWYSQwOS1LXOcOc6G5ogeuiPuu6NpH2EPbHYc8qRjrgTuZaeMFMFKQck0HpFxeMMEtQceygNqw6xxwgD%2F06t0aK%2FDLcWq6YLOZMG2mirwEwULpnueO8Rp8bvTnu20Uw6iI5zWnE19o12gulikcq2cya7xhMHiw0V6%2FfGEw6prLDdWu8Tu4AqoFge5KXl307PdlExexE2DqwcI%2Bl9dPOKXvXjM68f799eOs%2BMFGqhhN5EnH%2Bjg9jsUqNrlD%2B%2BQXd0wS%2BqbUplC5lIQPm%2FRaX%2BvtWO%2BS7ny4C0Ys%2Fc0k7WRfcWP2WfotnN787ficqI1yxrRcPk5mMcvOx2R7DvMsE2fmudSHp9GebPMN0J5%2FIqUJ6dTHr8hypNXpHx8OuXJG6Hcv%2B1ennBstp8LXF%2Fno0sy%2FwM%3D%3C%2Fdiagram%3E%3C%2Fmxfile%3E) ## Related - [Connect D365 F&SCM on-premises database with external database](/connect-d365-fscm-on-premises-database-with-external-database.md)