azure-analysis-services

Azure analysis service connection using Service principal not working

帅比萌擦擦* 提交于 2019-12-24 07:23:06
问题 I am trying to connect to Azure Analysis services using ADOMD and authenticated using a Service principal. So I have done following: Create app in AAD. Granted the app (Service principal) read permission on the Azure Analysis service. Below is my code to connect to Azure Analysis service. var clientId = "******"; var clientSecret = "*****"; var domain = "****.onmicrosoft.com"; var ssasUrl = "northeurope.asazure.windows.net"; var token = await TokenHelper.GetAppOnlyAccessToken(domain, $"https:

Default filter in Power BI - Row Level Security not applied through LOOKUPVALUE

岁酱吖の 提交于 2019-12-22 09:57:25
问题 TL;DR: When using LOOKUPVALUE() against a table with Row Level Security, the RLS is not applied and all values are seen I have a requirement to have a 'default' value (location) picked in a Power BI report, based on the user. I am reporting against Azure Analysis Services (tabular model 1400) It appears that the way to implement default values in Power BI is to dynamically rename a value to something static, and pick that static value as a filter. So user Bob has default location Location1 so

Does Azure Analysis Services support service principal signon to SQL Azure

痞子三分冷 提交于 2019-12-19 09:37:45
问题 I have an Azure Analysis Services model reading data out of SQL Azure with this connection string: Data Source=MySQLAzureDB.database.windows.net; Initial Catalog=MyDB;Persist Security Info=true; User ID=MyUser;Password=MyPWD; Encrypt=True;Authentication=Sql Password This uses a SQL User to connect to SQL Azure. This means I need to define user/password in two seperate places: in SQL Azure as well as in this connection string. I would like to use a service principal instead rather than a SQL

Use Automation RunAs service principal to connect to Azure Analysis Services and process

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 09:28:28
问题 TL;DR In summary the steps are: Use the correct code (the last code in this post) Manually add your app id in SSMS as either a server administrator or a database administrator and then you can process an Azure Analysis Services cube from an Azure Automation Account without needing to create another seperate service account Actual Question: I am trying to process an Azure Analysis Services cube using the Azure Automation RunAs Service Principal. This is run within an Azure automation account

How to authenticate with Azure Analysis Services from Azure batch and data factory

丶灬走出姿态 提交于 2019-12-12 09:14:26
问题 I have a c sharp class library that connects to Azure Analysis Services using the AMO library. I'd like to use this as part of my data factory pipeline to refresh cube partitions. This is done through Azure batch as a custom .net activity. var server = new Server(); server.Connect("Provider=MSOLAP;Data Source=asazure://uksouth.asazure.windows.net/abcd;Initial Catalog=xyz"); Running this locally works fine, however this will not run in the cloud. It currently errors out as it is not being run

Azure Analysis Services maximum allowable memory issue

只谈情不闲聊 提交于 2019-12-12 05:50:16
问题 I have an issue which I am encountering quite often lately. I am using Analysis services Standard tier ie. having 20GB of memory. However sometimes when I process the cube i get the following error: "Exception: Microsoft.AnalysisServices.OperationException: Failed to save modifications to the server. Error returned: 'You have reached the maximum allowable memory allocation for your tier. Consider upgrading to a tier with more available memory. Technical Details: RootActivityId: e024b2d1-ce22

Unable to connect to Azure Analysis Services via Azure Function App - Could not load type 'System.Security.Principal.WindowsImpersonationContext'

戏子无情 提交于 2019-12-11 15:49:35
问题 Following this guide, I have created an Azure Function App that compiles and runs: #r "Microsoft.AnalysisServices.Tabular.DLL" #r "Microsoft.AnalysisServices.Core.DLL" #r "System.Configuration" using System; using System.Configuration; using Microsoft.AnalysisServices.Tabular; // req is a value passed from function.json which is currently ignored public static void Run(String req, ILogger log) { log.LogInformation($"C# Timer trigger function started at: {DateTime.Now}"); try { Microsoft

Exception when referencing SSAS Tabular model in C#

孤人 提交于 2019-12-07 16:25:27
问题 I am attempting to automate partition refreshes in Azure Analysis Services via C#. I have installed and referenced the latest 'Microsoft.AnalysisServices. ..' assemblies found here: https://docs.microsoft.com/en-us/azure/analysis-services/analysis-services-data-providers. I then have the following code: using System; using Microsoft.AnalysisServices.Tabular; public void Run() { Server asSrv = new Server(); try { asSrv.Connect(ASConnectionString); Database db = asSrv.Databases.FindByName(

Exception when referencing SSAS Tabular model in C#

南笙酒味 提交于 2019-12-06 01:04:15
I am attempting to automate partition refreshes in Azure Analysis Services via C#. I have installed and referenced the latest 'Microsoft.AnalysisServices. ..' assemblies found here: https://docs.microsoft.com/en-us/azure/analysis-services/analysis-services-data-providers . I then have the following code: using System; using Microsoft.AnalysisServices.Tabular; public void Run() { Server asSrv = new Server(); try { asSrv.Connect(ASConnectionString); Database db = asSrv.Databases.FindByName("HospoIQTabular"); Model m = db.Model; // only refresh 2017 partitions m.Tables["Sales"].Partitions["Sales

Default filter in Power BI - Row Level Security not applied through LOOKUPVALUE

房东的猫 提交于 2019-12-05 22:23:21
TL;DR: When using LOOKUPVALUE() against a table with Row Level Security, the RLS is not applied and all values are seen I have a requirement to have a 'default' value (location) picked in a Power BI report, based on the user. I am reporting against Azure Analysis Services (tabular model 1400) It appears that the way to implement default values in Power BI is to dynamically rename a value to something static, and pick that static value as a filter. So user Bob has default location Location1 so when he logs in he should be see his location user Joe has default location Location2 so he should be