Skip to content

Commit 1ee6d67

Browse files
Merge pull request #287550 from cephalin/patch-20
add tip for secure-by-default template
2 parents 1440f13 + 67d2924 commit 1ee6d67

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

articles/app-service/tutorial-connect-msi-azure-database.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: cephalin
77
ms.devlang: csharp
88
# ms.devlang: csharp,java,javascript,python
99
ms.topic: tutorial
10-
ms.date: 04/12/2022
10+
ms.date: 09/30/2024
1111
ms.custom: mvc, devx-track-azurecli, devx-track-dotnet, devx-track-extended-java, devx-track-python, AppServiceConnectivity, service-connector
1212
---
1313
# Tutorial: Connect to Azure databases from App Service without secrets using a managed identity
@@ -285,10 +285,14 @@ You're now ready to develop and debug your app with the SQL Database as the back
285285
- [I made changes to App Service authentication or the associated app registration. Why do I still get the old token?](#i-made-changes-to-app-service-authentication-or-the-associated-app-registration-why-do-i-still-get-the-old-token)
286286
- [How do I add the managed identity to a Microsoft Entra group?](#how-do-i-add-the-managed-identity-to-an-azure-ad-group)
287287
- [I get the error `SSL connection is required. Please specify SSL options and retry`.](#i-get-the-error-ssl-connection-is-required-please-specify-ssl-options-and-retry)
288+
- [I created my app with the Web App + Database template, and now I can't configure a managed identity connection with the Service Connector commands.](#i-created-my-app-with-the-web-app--database-template-and-now-i-cant-configure-a-managed-identity-connection-with-the-service-connector-commands)
288289
289290
#### Does managed identity support SQL Server?
290291
291-
Microsoft Entra ID and managed identities aren't supported for on-premises SQL Server.
292+
Yes. For more information, see:
293+
294+
- [Microsoft Entra authentication for SQL Server](/sql/relational-databases/security/authentication-access/azure-ad-authentication-sql-server-overview)
295+
- [Enable Microsoft Entra authentication for SQL Server on Azure VMs](/azure/azure-sql/virtual-machines/windows/configure-azure-ad-authentication-for-sql-vm)
292296
293297
#### I get the error `Login failed for user '<token-identified principal>'.`
294298
@@ -321,6 +325,10 @@ Connecting to the Azure database requires additional settings and is beyond the
321325
[Configure TLS connectivity in Azure Database for PostgreSQL - Single Server](/azure/postgresql/concepts-ssl-connection-security)
322326
[Configure SSL connectivity in your application to securely connect to Azure Database for MySQL](/azure/mysql/howto-configure-ssl)
323327

328+
#### I created my app with the Web App + Database template, and now I can't configure a managed identity connection with the Service Connector commands.
329+
330+
Service Connector needs network access to the database in order to grant access for the app identity. When you create a secure-by-default app and database architecture in the Azure portal with the Web App + Database template, the architecture locks down network access to the database and only allows connections from within the virtual network. It's also true for Azure Cloud Shell. However, you can [deploy Cloud Shell in the virtual network](../cloud-shell/vnet/deployment.md), then run the Service Connector command in that Cloud Shell.
331+
324332
## Next steps
325333

326334
What you learned:

0 commit comments

Comments
 (0)