Connect Clients to Azure Analysis Services

This document outlines how to connect various client applications to your Azure Analysis Services model. Connecting clients allows users to interact with your data, build reports, and gain insights.

Prerequisites:
  • An Azure Analysis Services server instance.
  • A deployed tabular or multidimensional model.
  • Client applications installed on your machine (e.g., Power BI Desktop, Excel, Visual Studio).

Connecting with Power BI Desktop

Power BI Desktop is a primary tool for connecting to and visualizing data from Azure Analysis Services.

  1. Open Power BI Desktop.
  2. On the Home tab, click Get data.
  3. Select Azure, then select Azure Analysis Services.
  4. In the Server name field, enter the server name for your Azure Analysis Services instance. This typically follows the format: your-servername.asazure.windows.net.
  5. Choose the Data Connectivity mode:
    • Live Connection: Data remains on Azure Analysis Services, and reports are always up-to-date. This is the recommended mode for Azure Analysis Services.
    • Import: Data is imported into Power BI Desktop. This is not typically used for Azure Analysis Services due to performance implications and loss of real-time capabilities.
  6. Click OK.
  7. If prompted, authenticate using your Azure Active Directory credentials.
  8. Select the database (model) you want to connect to and click Connect.

Connecting with Microsoft Excel

Excel can connect to Azure Analysis Services to create PivotTables and PivotCharts.

  1. Open Microsoft Excel.
  2. Go to the Data tab.
  3. Click Get Data > From Other Sources > From Analysis Services.
  4. In the Server name field, enter your Azure Analysis Services server name (e.g., your-servername.asazure.windows.net).
  5. Under Database name, select the desired database from the dropdown list or leave it blank to see all available databases.
  6. Click OK.
  7. Authenticate if prompted.
  8. Choose how you want to view the data (e.g., PivotTable Report).

Connecting with Visual Studio (for Model Development)

Developers use Visual Studio with the SQL Server Data Tools (SSDT) to connect to existing Azure Analysis Services models for development and deployment.

  1. Open Visual Studio with SQL Server Data Tools installed.
  2. Create a new Analysis Services Tabular Project or open an existing one.
  3. In the Solution Explorer, right-click on the Data Sources folder and select Add Data Source.
  4. In the Table Import Wizard, select Azure Analysis Services as the data source type.
  5. Enter your Azure Analysis Services server name.
  6. Click Test Connection to verify.
  7. Click OK to create the data source.

Other Client Applications

Many other business intelligence and data visualization tools support connecting to Azure Analysis Services using the following connection strings or protocols:

The general connection string format is:

Provider=MSOLAP;Data Source=your-servername.asazure.windows.net;Initial Catalog=your-database-name;Integrated Security=Claims;Impersonation Level=Impersonate

For specific client applications, consult their documentation for detailed connection instructions.

Security: Ensure that users connecting to your Azure Analysis Services server have the appropriate permissions granted through Azure Active Directory roles or Analysis Services roles.

Troubleshooting Common Connection Issues