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
Copy file name to clipboardExpand all lines: articles/analysis-services/analysis-services-addservprinc-admins.md
+61-7Lines changed: 61 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,26 @@ ms.topic: conceptual
7
7
ms.date: 10/29/2019
8
8
ms.author: owend
9
9
ms.reviewer: minewiskan
10
+
ms.custom: fasttrack-edit
10
11
11
12
---
12
13
13
14
# Add a service principal to the server administrator role
14
15
15
-
To automate unattended PowerShell tasks, a service principal must have **server administrator** privileges on the Analysis Services server being managed. This article describes how to add a service principal to the server administrators role on an Azure AS server.
16
+
To automate unattended PowerShell tasks, a service principal must have **server administrator** privileges on the Analysis Services server being managed. This article describes how to add a service principal to the server administrators role on an Azure AS server. You can do this using SQL Server Management Studio or a Resource Manager template.
17
+
18
+
> [!NOTE]
19
+
> For server operations using Azure PowerShell cmdlets, the service principal must also belong to the **Owner** role for the resource in [Azure Role-Based Access Control (RBAC)](../role-based-access-control/overview.md).
16
20
17
21
## Before you begin
18
22
Before completing this task, you must have a service principal registered in Azure Active Directory.
19
23
20
24
[Create service principal - Azure portal](../active-directory/develop/howto-create-service-principal-portal.md)
21
25
[Create service principal - PowerShell](../active-directory/develop/howto-authenticate-service-principal-powershell.md)
22
26
23
-
## Required permissions
24
-
To complete this task, you must have [server administrator](analysis-services-server-admins.md) permissions on the Azure AS server.
27
+
## Using SQL Server Management Studio
25
28
26
-
## Add service principal to server administrators role
29
+
You can configure server administrators using SQL Server Management Studio (SSMS). To complete this task, you must have [server administrator](analysis-services-server-admins.md) permissions on the Azure AS server.
27
30
28
31
1. In SSMS, connect to your Azure AS server.
29
32
2. In **Server Properties** > **Security**, click **Add**.
@@ -35,9 +38,60 @@ To complete this task, you must have [server administrator](analysis-services-se
35
38
36
39

37
40
38
-
39
-
> [!NOTE]
40
-
> For server operations using Azure PowerShell cmdlets, service principal running scheduler must also belong to the **Owner** role for the resource in [Azure Role-Based Access Control (RBAC)](../role-based-access-control/overview.md).
41
+
## Using a Resource Manager template
42
+
43
+
You can also configure server administrators by deploying the Analysis Services server using an Azure Resource Manager template. The identity running the deployment must belong to the **Contributor** role for the resource in [Azure Role-Based Access Control (RBAC)](../role-based-access-control/overview.md).
44
+
45
+
> [!IMPORTANT]
46
+
> The service principal must be added using the format `app:{service-principal-client-id}@{azure-ad-tenant-id}`.
47
+
48
+
The following Resource Manager template deploys an Analysis Services server with a specified service principal added to the Analysis Services Admin role:
0 commit comments