Skip to content

Commit a66b333

Browse files
authored
Merge pull request #97972 from MohammedAbrar/main
Added tip for User Managed Managed Identity
2 parents ebcbc21 + e96e82c commit a66b333

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/azure-functions/functions-identity-access-azure-sql-with-managed-identity.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ To enable system-assigned managed identity in the Azure portal:
7979
8080
For information on enabling system-assigned managed identity through Azure CLI or PowerShell, check out more information on [using managed identities with Azure Functions](../app-service/overview-managed-identity.md?tabs=dotnet&toc=%2fazure%2fazure-functions%2ftoc.json#add-a-system-assigned-identity).
8181
82+
> [!TIP]
83+
> For user-assigned managed identity, switch to the User Assigned tab. Click Add and select a Managed Identity. For more information on creating user-assigned managed identity, see the [Manage user-assigned managed identities](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md).
84+
8285
8386
## Grant SQL database access to the managed identity
8487
@@ -114,8 +117,11 @@ In the application settings of our Function App the SQL connection string settin
114117
115118
*testdb* is the name of the database we're connecting to and *demo.database.windows.net* is the name of the server we're connecting to.
116119
120+
>[!TIP]
121+
>For user-assigned managed identity, use `Server=demo.database.windows.net; Authentication=Active Directory Managed Identity; User Id=ClientIdOfManagedIdentity; Database=testdb`.
122+
117123
## Next steps
118124
119125
- [Read data from a database (Input binding)](./functions-bindings-azure-sql-input.md)
120126
- [Save data to a database (Output binding)](./functions-bindings-azure-sql-output.md)
121-
- [Review ToDo API sample with Azure SQL bindings](/samples/azure-samples/azure-sql-binding-func-dotnet-todo/todo-backend-dotnet-azure-sql-bindings-azure-functions/)
127+
- [Review ToDo API sample with Azure SQL bindings](/samples/azure-samples/azure-sql-binding-func-dotnet-todo/todo-backend-dotnet-azure-sql-bindings-azure-functions/)

0 commit comments

Comments
 (0)