Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.71 KB

File metadata and controls

54 lines (36 loc) · 1.71 KB
title include file
description include file
services storage
author WilliamDAssafMSFT
ms.author wiassaf
ms.reviewer rotabor, alexwolf
ms.service storage
ms.topic include
ms.date 09/09/2022
ms.custom include file

For local development, make sure you're signed-in with the same Azure AD account you want to use to access Azure SQL Database. You can authenticate via popular development tools, such as the Azure CLI or Azure PowerShell. The development tools with which you can authenticate vary across languages.

Sign-in to Azure through the Azure CLI using the following command:

az login

Select the Sign in button in the top right of Visual Studio.

:::image type="content" source="../../database/media/passwordless-connections/sign-in-visual-studio-small.png" alt-text="Screenshot showing the button to sign in to Azure using Visual Studio.":::

Sign-in using the Azure AD account you assigned a role to previously.

:::image type="content" source="../../database/media/passwordless-connections/sign-in-visual-studio-account-small.png" alt-text="Screenshot showing the account selection.":::

You will need to install the Azure CLI to work with DefaultAzureCredential through Visual Studio Code.

On the main menu of Visual Studio Code, navigate to Terminal > New Terminal.

Sign-in to Azure through the Azure CLI using the following command:

az login

Sign-in to Azure using PowerShell via the following command:

Connect-AzAccount