1

I have MVC application I am able to connect Analysis Service. I want to start Analysis Service programmatically.

Thanks in advance.

Murray Foxcroft
  • 12,785
  • 7
  • 58
  • 86
  • You got an answer, and that is great! But, StackOverflow is not some kind of human google service. Just like [this Q&A](https://stackoverflow.com/questions/50235758/how-to-start-and-pause-azure-analysis-service?noredirect=1) this is too broad and does not show much effort from your side. Please read [the guidelines](https://stackoverflow.com/help/on-topic), then you will better understand what question generally are allowed and do get answers. – Peter Bons May 09 '18 at 07:24

1 Answers1

1

You need to use the Analysis Services Management nuget package. You can find the package here.

Once installed you will need to create a new instance and leverage the Resume and Suspend operations.

There is a fair bit of plumbing to do in order to get the Management API set up and authenticated, you can follow this article to give you a head start.

Murray Foxcroft
  • 12,785
  • 7
  • 58
  • 86
  • Thanks for the reply. I have .net framework 4.5.1. Not able to install this package as it is compatible 4.5.2 framework and above. – Supriya Charapalle May 09 '18 at 07:45
  • Look for a previous version that is compatible. – Murray Foxcroft May 09 '18 at 07:46
  • 1
    I have gone through this IServersOperations interface. I am using the following method: BeginCreate(this IServersOperations operations, string resourceGroupName, string serverName,AnalysisServicesServer serverParameters); So is this method correct for start analysis service? how we can initialize these two parameters: IServersOperations operations AnalysisServicesServer serverParameters – Supriya Charapalle May 09 '18 at 12:02
  • Create will create a now instance, you want the BeginResume and BeginSuspend. – Murray Foxcroft May 09 '18 at 20:59
  • 1
    if I want to start analysis service which function should I use? How can we initialize IServersOperations operations? – Supriya Charapalle May 10 '18 at 05:35