---
title: "Discussion on \"Using Connect-AzAccount to Authenticate PowerShell and SMO to Azure SQL Databases\" | Hashnode"
description: "Discussion on \"Using Connect-AzAccount to Authenticate PowerShell and SMO to Azure SQL Databases\". Including support for MFA, Managed Identities, and Service Principals"
url: "https://hashnode.com/posts/using-connect-azaccount-to-authenticate-powershell-and-smo-to-azure-sql-databases/6261a862d82f4558aff860f8"
---

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

Discussion

# [Using Connect-AzAccount to Authenticate PowerShell and SMO to Azure SQL Databases](https://w3bward.hashnode.dev/using-connect-azaccount-to-authenticate-powershell-and-smo-to-azure-sql-databases?utm_source=hashnode&utm_medium=feed)

Including support for MFA, Managed Identities, and Service Principals

Apr 21, 2022 · 6 min read · w3bward.hashnode.dev  
Updated Apr 29, 2022  
Read the article

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

## Written by

[Bradley Edwards](https://hashnode.com/@w3bward)

@w3bward · Seattle, WA

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

DevOps Engineer and PowerShell Pro from Seattle, WA

DevOps Engineer based in Seattle, WA. I'm self-taught, having started my career working on an internal help desk (the only help desk tech at the time). With few points of escalation, I quickly became adept at solving problems with technologies that I had never worked with before. Eventually I worked my way into system administration, which in turn led me to DevOps. At every step of my career, I turned to scripting to automate the boring stuff, reduce human error, and help me make the most of my time.

## Responses 1

Markdown supported · ⌘↵ to post

[Damon Clark](https://hashnode.com/@DamonRipper)

[Aug 9, 2022](https://hashnode.com/posts/using-connect-azaccount-to-authenticate-powershell-and-smo-to-azure-sql-databases/6261a862d82f4558aff860f8/comment/62f2ade7a56ed86b41c67bf7)

Thanks much for sharing this! I just ran into this very issue, and didn't have to go down the rabbit hole thanks to you :)
