Skip to content

Commit dabe77e

Browse files
committed
changes
1 parent 770d72d commit dabe77e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

articles/app-service/app-service-web-tutorial-dotnet-sqldatabase.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The sample project contains a basic [ASP.NET MVC](https://www.asp.net/mvc) creat
4141

4242
1. Open the extracted *dotnet-sqldb-tutorial-master/DotNetAppSqlDb.sln* file in Visual Studio.
4343

44-
1. Press `F5` to run the app and open it in your default browser.
44+
1. Press **F5** to run the app and open it in your default browser.
4545

4646
> [!NOTE]
4747
> If necessary, [install any missing NuGet packages](/nuget/consume-packages/install-use-packages-visual-studio).
@@ -142,17 +142,21 @@ Before you can create a database, you need a [logical SQL server](/azure/azure-s
142142

143143
### Connect the database
144144

145-
The app uses a database context to connect with the database. The database context in this sample is a connection string named `MyDbConnection`.
146-
147-
The connection string is set in the *Web.config* file and referenced in the *Models/MyDatabaseContext.cs* file. The Azure app uses the connection string name to connect to the Azure SQL database.
145+
The app uses a database context to connect with the database. The database context in this sample is a connection string named `MyDbConnection`. The connection string is set in the *Web.config* file and referenced in the *Models/MyDatabaseContext.cs* file. The Azure app uses the connection string name to connect to the Azure SQL database.
148146

149147
1. When the database resources are created, select **Next**.
150148

149+
![Screenshot of the screen with messagea about configuring managed identity for the connection to work.](./media/app-service-web-tutorial-dotnet-sqldatabase/connect-warning.png)
150+
151151
1. Under **Connection string name**, enter the name of the connection string referenced in *Models/MyDatabaseContext.cs*, in this case *MyDbConnection*.
152152

153153
> [!NOTE]
154154
> If you see **Local user secrets files** instead, make sure you used the **Publish** page, not the **Connected Services** page, to configure SQL Database.
155155
156+
Your app is connected to Azure SQL Database using Managed Identity for Azure services, a secure method of connecting your app to your Azure resources that doesn't use secrets or passwords.
157+
158+
Note the message that you need to set the appropriate permissions on the SQL user corresponding with this managed identity for the connection to work. For more information, see [Grant permissions to managed identity](tutorial-connect-msi-sql-database.md#grant-permissions-to-managed-identity).
159+
156160
1. Select **Additional settings**, make sure **Azure App Settings** is selected, and select **Finish**.
157161

158162
### Deploy the ASP.NET app
22.7 KB
Loading

0 commit comments

Comments
 (0)