how to link user managed identity to azure analysis services

128 Views Asked by At

I created a user managed identity in a bicep template. Is there a way in azure cli where i can link this user managed identity created to azure analysis services. As well as this i need the ,managed identity to have azure analysis services server admin rights. This is a workaround as azure analysis services does not directly support managed
identity.

1

There are 1 best solutions below

0
Sridevi On

Currently, Azure CLI does not support managing Azure Analysis Services. You can check the GitHub issue here.

Alternatively, you can make use of below PowerShell command to add identity to Server Administrator role under Azure Analysis Server like this:

Set-AzAnalysisServicesServer -Name "aas_server_name" -ResourceGroupName "rg_name" -Administrator "app:<ManagedIdentiyClientId>@<TenantId>" 

Response:

enter image description here

To confirm that, I checked the same in Portal where identity is added as Analysis Services Admin successfully like this:

enter image description here

If you prefer authenticating with service principal instead of managed identity, you can refer this SO thread that I answered recently.

Reference: Manage server admins in Azure Analysis Services | Microsoft