azure-analysis-services

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

梦想的初衷 提交于 2019-12-04 17:51:38
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 under my user account. I know that I can add a username and password to the connection string, but I

SSAS tabular model timeout raised during processing

社会主义新天地 提交于 2019-12-04 05:30:06
问题 When doing a Full Process on a tabular model to an Azure Analysis Service model I get the following error after 10 minutes into the processing: Failed to save modifications to the server. Error returned: 'Microsoft SQL: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.. The exception was raised by the IDbCommand interface. Technical Details: RootActivityId: cd0cfc78-416a-4039-a79f-ed7fe9836906 Date (UTC): 2/27/2018 1:25

ConnectionString property not printing connection string

为君一笑 提交于 2019-12-02 10:22:24
问题 I am trying to get the connection string of a database datasource with the following script: $Analysis_Server = New-Object Microsoft.AnalysisServices.Server $Analysis_Server.connect("$server") $database = $Analysis_Server.Databases[7] $c = $database.DataSources[0].ConnectionString $c nothing is outputting. I have tried debugging like so: $Analysis_Server.Databases this prints out all databases on the server if i index it $Analysis_Server.Databases[] , it prints whatever database is indexed

ConnectionString property not printing connection string

自古美人都是妖i 提交于 2019-12-02 05:20:02
I am trying to get the connection string of a database datasource with the following script: $Analysis_Server = New-Object Microsoft.AnalysisServices.Server $Analysis_Server.connect("$server") $database = $Analysis_Server.Databases[7] $c = $database.DataSources[0].ConnectionString $c nothing is outputting. I have tried debugging like so: $Analysis_Server.Databases this prints out all databases on the server if i index it $Analysis_Server.Databases[] , it prints whatever database is indexed (so in my case, 7, prints database8) clearly the Database property is working. ------------- UPDATE :----

Does Azure Analysis Services support service principal signon to SQL Azure

匆匆过客 提交于 2019-12-01 09:10:44
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 user. Has anyone done this before? I've tried using different connection types but this is the typical

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

橙三吉。 提交于 2019-11-29 16:29:58
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 This code #Get the existing AzureRunAsConnection connection $Conn = Get-AutomationConnection -Name

Connection String error while using ADOMD.NET to connect to Azure Analysis

孤街醉人 提交于 2019-11-28 12:59:27
I am trying to retrieve data from Azure Analysis Services using ADOMD.NET from a deployed model in cloud. The code snippet is as below, but i am getting an error that the ConnectionString in invalid. using Microsoft.AnalysisServices.AdomdClient; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test_Analysis_Service_retrieval { class Program { static void Main(string[] args) { string queryString = @"SELECT [MAP_CUST_NAME] FROM [AAS_MAPLOOKUP] where [MAP_ACT_NO] = '120000810';"; string

Connection String error while using ADOMD.NET to connect to Azure Analysis

你离开我真会死。 提交于 2019-11-27 07:27:41
问题 I am trying to retrieve data from Azure Analysis Services using ADOMD.NET from a deployed model in cloud. The code snippet is as below, but i am getting an error that the ConnectionString in invalid. using Microsoft.AnalysisServices.AdomdClient; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test_Analysis_Service_retrieval { class Program { static void Main(string[] args) { string queryString = @