Skip to content

Commit 8bb7d85

Browse files
Merge pull request #291618 from JetterMcTedder/patch-1
update security sections for managed identities
2 parents 89aa518 + 5f36dcf commit 8bb7d85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/azure-functions/functions-bindings-azure-sql.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom:
99
- devx-track-js
1010
- devx-track-python
1111
- ignite-2023
12-
ms.date: 03/12/2023
12+
ms.date: 12/06/2024
1313
ms.author: bspendolini
1414
ms.reviewer: glenga
1515
zone_pivot_groups: programming-languages-set-functions-lang-workers
@@ -241,6 +241,9 @@ You can use the preview extension bundle with an update to the `pom.xml` file in
241241

242242
## SQL connection string
243243

244+
> [!IMPORTANT]
245+
> It is strongly recommended that [managed identities](/azure/azure-sql/database/authentication-azure-ad-user-assigned-managed-identity) are used for accessing an Azure SQL Database with Azure Functions. Managed identities make your app more secure by eliminating secrets from your application deployments, such as credentials in the connection strings, server names, and ports being used. You can learn how to use managed identities in this tutorial, [Connect a function app to Azure SQL with managed identity and SQL bindings](../azure-functions/functions-identity-access-azure-sql-with-managed-identity.md).
246+
244247
Azure SQL bindings for Azure Functions have a required property for the connection string on all bindings and triggers. These pass the connection string to the Microsoft.Data.SqlClient library and supports the connection string as defined in the [SqlClient ConnectionString documentation](/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-5.0&preserve-view=true#Microsoft_Data_SqlClient_SqlConnection_ConnectionString). Notable keywords include:
245248

246249
- `Authentication` allows a function to connect to Azure SQL with Microsoft Entra ID, including [Active Directory Managed Identity](./functions-identity-access-azure-sql-with-managed-identity.md)
@@ -254,6 +257,8 @@ Azure SQL bindings for Azure Functions have a required property for the connecti
254257
- Source code for the Azure SQL bindings can be found in [this GitHub repository](https://github.com/Azure/azure-functions-sql-extension).
255258
- This binding requires connectivity to an Azure SQL or SQL Server database.
256259
- Output bindings against tables with columns of data types `NTEXT`, `TEXT`, or `IMAGE` aren't supported and data upserts will fail. These types [will be removed](/sql/t-sql/data-types/ntext-text-and-image-transact-sql) in a future version of SQL Server and aren't compatible with the `OPENJSON` function used by this Azure Functions binding.
260+
- Use [managed identities](/azure/azure-sql/database/authentication-azure-ad-user-assigned-managed-identity) instead of usernames and passwords.
261+
- Concider using an [Azure Key Value](/azure/app-service/app-service-key-vault-references) to store application settings.
257262

258263
## Samples
259264

0 commit comments

Comments
 (0)