---
title: "Discussion on \"How to connect (and stay connected) to Azure SQL Database using managed identities in Node.js - Part 1: Initial Setup\" | Hashnode"
description: "Discussion on \"How to connect (and stay connected) to Azure SQL Database using managed identities in Node.js - Part 1: Initial Setup\". Traditionally, connecting to a SQL database within a Node.js app was fairly straightforward:\n\nCreate new SQL database\nSet new admin credentials (never keep defaults)\nAdd SQL server admin credentials to .env\nUse admin credentials to connect to SQL dat..."
url: "https://hashnode.com/posts/azure-sql-node-managed-id-part1/6286c46a7b02ca162edaf793"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to connect (and stay connected) to Azure SQL Database using managed identities in Node.js - Part 1: Initial Setup](https://richardcarrigan.hashnode.dev/azure-sql-node-managed-id-part1?utm_source=hashnode&utm_medium=feed)

Traditionally, connecting to a SQL database within a Node.js app was fairly straightforward: Create new SQL database Set new admin credentials (never keep defaults) Add SQL server admin credentials to .env Use admin credentials to connect to SQL dat...

May 19, 2022 · 7 min read · richardcarrigan.hashnode.dev  
Updated May 27, 2022  
Read the article

-   [#azure](https://hashnode.com/tag/azure)
-   [#sql](https://hashnode.com/tag/sql)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Richard Carrigan](https://hashnode.com/@richardcarrigan)

@richardcarrigan · Washington, US

  
[View profile](https://hashnode.com/@richardcarrigan)

MCT Alum | Azure Administrator | Full-Stack Developer | DevOps Enthusiast | Technical Problem-Solver

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
