I have created an azure analysis services resource in a bicep template. Due to it not having any support for managed identity's am going to have to use a service principal. Is there a way in azure cli or powershell where i can create a script that creates a service principal and gives it server admin rights on azure analysis services. azure analysis server admin rights is required as i plan do the following https://learn.microsoft.com/en-us/azure/analysis-services/analysis-services-async-refresh#base-url
Automate creation of service principal and adding admin rights
128 Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in POWERSHELL
- PowerShell Linphone Configuration
- How avoid \t being converted to Tab in Powershell
- How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything
- Npm command not working in powershell but works in cmd
- Issue with path not being treated as encapsulated when calling cmd /C
- Native command throws error only when I redirect to a variable
- Logic Apps and long running Azure Function (Powershell)
- April fools - PsExec (PsTools)
- How to use nested ForEach-Object
- Batch Script-Powershell MessageBox | How do I set TopMost within PS command line of Batch?
- Execution Stuck at Get-PnPPage if function executed on Button Click
- How can I expand a column from group output?
- How to use expression in regex -replace with capturing group in powershell
- powershell where-object -cnotmatch filter unwanted lines
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
Related Questions in AZURE-CLI
- Kubernetes : How to connect production and non-production Azure CLI simultaneously through windows system?
- Azure Developer CLI does not recognize environment
- Is there any way to get a new Azure CLI token without logging out?
- Azure Service Principals are not deleting from the Azure CLI
- az functionapp config is truncating trailing bracket
- How to install azure devops extension from powershell script
- Troubleshooting GitHub Secrets: "Invalid Subscription or Tenant Level Error"
- "Directory is expected, not a file." error when using Azure CLI to download from blob storage
- Azure error writing parquet to ADLS Gen 2
- Azure container registry az acr build command times out with 404 BlobNotFound
- Error Exporting disk to a Storage account -Both configured with private endpoints in the same Vnet
- How to create Azure devops service connection via code?
- What Azure account to use to run a python script on multiple azure tenants resources?
- How to add all iterations of a project to all teams in that project?
- Is it possible to show if OAuth is being used for Azure Function App?
Related Questions in AZURE-ANALYSIS-SERVICES
- Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64 not working on windows server
- How to list the databases/models under Azure Analysis Services using Powershell?
- :Unable to obtain authentication token using the credentials provided
- Error when Refreshing Power BI Gateway - Mashup error
- Request parameter RefreshType is not in correct format in ADF
- Function app not connecting to analysis services server getting Specified method is not supported
- Does Microsoft.AnalysisServices.Tabular.NetCore have support for SQL Server user
- what is the correct way to format a connection string for azure analysis services using Microsoft.AnalysisServices.NetCore
- Azure powershell function app getting no parameter defined in the script or function for the input binding 'Timer'
- How to Kill sessions running for last 5 minutes automatically in azure analysis services?
- Automate creation of service principal and adding admin rights
- how to link user managed identity to azure analysis services
- does Azure Analysis Services have support for SystemAssigned Manged identity througth bicep template
- format for request to azure analysis services rest api
- Trying to refresh data model using pyadomd but getting namespace cannot appear under Envelope/Body/Execute/Command
Related Questions in AZURE-SERVICE-PRINCIPAL
- Create service principle before creating the resource
- Azure AD: Grant an appRoleAssignment for a service principal is failing with "code": "Request_ResourceNotFound"
- Azure service principal: Grant an appRoleAssignment for a service principal does update the original permission's status
- Obtain OAuth token using Service Connection
- Insufficient privileges to complete the operation with listing service principals using az ad sp list
- Multitenant API - Admin consent ERROR https://login.microsoftonline.com/organizations/v2.0/adminconsent AADSTS90009
- Service principle assign to who? ACR or App service?
- Access service principal for Microsoft.Azure.WebSites Resource Provider (Microsoft Azure App Service) from Azure pipeline task
- Assign the claimsMappingPolicy to a servicePrincipal giving error?
- How to refresh access token provided by TokenCredential / ClientSecretCredential by Azure Identity Java SDK?
- az cli command to create service principal doesn't create certificate in keyvault
- Keyvault permission error to store Service principal secrets
- How to add an API permission to an enterprise application (service principal) in the secondary tenant of a multi-tenant application?
- Azure AD App Registration fail to create Service Principals when creating using another Service Principal via az cli
- How to get Databricks Account ID without logging in to Account console?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can make use of below PowerShell command to create service principal in your directory:
To add this service principal to the Server Administrator role under Azure Analysis Server, run this command:
In my case, I used below PowerShell script to create service principal and adding admin rights to it under Azure Analysis Server:
Response:
To confirm that, I checked the same in Portal where service principal is added as Analysis Services Admin successfully like this:
References:
New-AzADServicePrincipal (Az.Resources) | Microsoft
Manage server admins in Azure Analysis Services | Microsoft