Microsoft Docs

Azure Analysis Services Documentation

Connect to Azure Analysis Services

This document outlines the various methods and tools you can use to connect to your Azure Analysis Services server. Successful connection is the first step to querying data, building models, and administering your Analysis Services instance.

Connection Strings

The primary way to connect to Azure Analysis Services is by using a connection string. The format is generally:

Provider=MSOLAP;Data Source=.asazure.windows.net;Initial Catalog=;User ID=;Password=;Impersonation Level=Impersonate;

Key Components:

Note: For Azure Active Directory (Azure AD) authentication, it's recommended to use Azure AD accounts or service principals instead of SQL Server authentication.

Tools for Connecting

1. SQL Server Management Studio (SSMS)

SQL Server Management Studio is a comprehensive tool for managing and interacting with Analysis Services. To connect:

  1. Open SSMS.
  2. In the 'Connect to Server' dialog, select Analysis Services as the Server type.
  3. Enter your server name (e.g., myserver.asazure.windows.net).
  4. Choose your Authentication method. Common options include:
    • Azure Active Directory - Universal with MFA: Recommended for interactive user sign-in.
    • Azure Active Directory - Password: For Azure AD accounts.
    • Windows Authentication: If your machine is domain-joined and your account has permissions.
  5. Click Connect.

2. Visual Studio with Analysis Services Projects Extension

For developing tabular models, Visual Studio is essential. When working with an existing Azure Analysis Services database, you can connect directly:

  1. In Visual Studio, go to File > Open > Project/Solution.
  2. If you have a tabular model project, open it.
  3. In the Solution Explorer, right-click on the Model node and select Connect.
  4. Enter your server name and authentication details, similar to SSMS.

3. Power BI Desktop

Power BI Desktop can connect to Azure Analysis Services as a data source.

  1. Open Power BI Desktop.
  2. Click Get data.
  3. Search for and select Azure Analysis Services database.
  4. Enter your server name.
  5. Choose your connection mode (Live Connection is typical for AS Azure).
  6. Authenticate using your Azure AD credentials.

4. Tabular Editor

Tabular Editor is a popular third-party tool for authoring, editing, and administering Analysis Services tabular models.

  1. Download and install Tabular Editor.
  2. Open Tabular Editor.
  3. Click File > Open > Connect to server.
  4. Enter your server name and select your authentication method.

Permissions Required

To connect to an Azure Analysis Services server, your user account or service principal must have appropriate permissions granted. Common roles include:

  • Administrator: Full control over the server.
  • Database Owner: Full control over a specific database.
  • Reader: Allows querying the database.

Permissions are typically managed within the Azure portal or through SSMS by assigning users to server roles or database roles.

Troubleshooting Connection Issues