You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up your chosen development environment and sign in to Azure. For more information about setting up your dev environment for Microsoft Entra authentication, see [Azure Identity client library for .NET](/dotnet/api/overview/azure/Identity-readme).
189
189
190
-
### Visual Studio for Windows
190
+
#[Visual Studio Windows](#tab/windowsclient)
191
191
192
192
Visual Studio for Windows is integrated with Microsoft Entra authentication.
193
193
194
194
1. To enable development and debugging in Visual Studio, add your Microsoft Entra user in Visual Studio by selecting **File** > **Account Settings** from the top menu, and then select **Sign in** or **Add**.
195
195
1. To set the Microsoft Entra user for Azure service authentication, select **Tools** > **Options** from the top menu, and then select **Azure Service Authentication** > **Account Selection**. Select the Microsoft Entra user you added and select **OK**.
196
196
197
-
### Visual Studio Code
197
+
#[Visual Studio Code](#tab/vscode)
198
198
199
199
Visual Studio Code is integrated with Microsoft Entra authentication through the Azure Tools extension.
200
200
201
201
1. In Visual Studio Code, install the <ahref="https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-node-azure-pack"target="_blank">Azure Tools</a> extension.
202
202
1. In the [Activity Bar](https://code.visualstudio.com/docs/getstarted/userinterface), select the **Azure** logo.
203
203
1. In the **App Service** explorer, select **Sign in to Azure** and follow the instructions.
204
204
205
-
### Azure CLI or Visual Studio for macOS
205
+
#[Azure CLI or Visual Studio macOS](#tab/macosclient)
206
206
207
-
Visual Studio for Mac isn't integrated with Microsoft Entra authentication. However, the Azure Identity client library can use tokens from Azure CLI.
207
+
Visual Studio for macOS isn't integrated with Microsoft Entra authentication. However, the Azure Identity client library can use tokens from Azure CLI.
208
208
209
209
1. To enable development and debugging in Visual Studio, [install Azure CLI](/cli/azure/install-azure-cli) on your local machine.
210
210
1. Use your Microsoft Entra user to sign in to Azure with the command `az login --allow-no-subscriptions`.
211
211
212
-
### Azure PowerShell
212
+
#[Azure PowerShell](#tab/ps)
213
213
214
214
The Azure Identity client library can use tokens from Azure PowerShell.
215
215
216
216
1. To enable command-line based development, [install Azure PowerShell](/powershell/azure/install-azure-powershell) on your local machine.
217
217
1. Use your Microsoft Entra user to sign in to Azure with the `Connect-AzAccount` cmdlet.
218
218
219
+
-----
220
+
219
221
## Modify your project
220
222
221
-
You can now start using Microsoft Entra authentication to develop and debug your Azure SQL database-backed web app. The steps differ depending on whether you have an ASP.NET or ASP.NET Core app.
223
+
You can now use Microsoft Entra authentication to develop and debug your Azure SQL database-backed web app. The steps differ depending on whether you have an ASP.NET or ASP.NET Core app.
222
224
223
225
- An ASP.NET app like the one in [Tutorial: Build an ASP.NET app in Azure with SQL Database](app-service-web-tutorial-dotnet-sqldatabase.md) uses [Entity Framework](/ef/ef6/) by default.
224
226
- An ASP.NET Core app like the one in [Tutorial: Build an ASP.NET Core and SQL Database app in Azure App Service](tutorial-dotnetcore-sqldb-app.md) uses [Entity Framework Core](/ef/core/) by default.
0 commit comments