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
@@ -270,20 +262,11 @@ Once a service principal is created in Azure AD, create the user in SQL Database
270
262
271
263
Write-host "results"
272
264
$command.ExecuteNonQuery()
273
-
$conn.Close()
265
+
$conn.Close()
274
266
```
275
267
276
268
Alternatively, you can use the code sample in the blog, [Azure AD Service Principal authentication to SQL DB - Code Sample](https://techcommunity.microsoft.com/t5/azure-sql-database/azure-ad-service-principal-authentication-to-sql-db-code-sample/ba-p/481467). Modify the script to execute a DDL statement `CREATE USER [myapp] FROM EXTERNAL PROVIDER`. The same script can be used to create a regular Azure AD user a group in SQL Database.
277
269
278
-
> [!NOTE]
279
-
> If you need to install the module AzureRM.profile, you will need to open PowerShell as an administrator. You can use the following commands to automatically install the latest AzureRM.profile version, andset`$adalpath` for the above script:
Copy file name to clipboardExpand all lines: articles/azure-sql/database/authentication-aad-service-principal.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.topic: conceptual
8
8
author: GithubMirek
9
9
ms.author: mireks
10
10
ms.reviewer: vanto
11
-
ms.date: 10/21/2020
11
+
ms.date: 02/11/2021
12
12
---
13
13
14
14
# Azure Active Directory service principal with Azure SQL
@@ -47,7 +47,7 @@ Supporting this functionality is useful in Azure AD application automation proce
47
47
48
48
To enable an Azure AD object creation in SQL Database and Azure Synapse on behalf of an Azure AD application, the following settings are required:
49
49
50
-
1. Assign the server identity
50
+
1. Assign the server identity. The assigned server identity represents the Managed System Identity (MSI). Currently, the server identity for Azure SQL does not support User Managed Identity (UMI).
51
51
- For a new Azure SQL logical server, execute the following PowerShell command:
0 commit comments