Azure Analysis Services Documentation

Connect your data sources to build powerful semantic models.

Connecting Data to Azure Analysis Services

Azure Analysis Services enables you to connect to various data sources to build analytical models. This document outlines the steps and considerations for establishing these connections.

Supported Data Sources

Azure Analysis Services supports a wide range of data sources, including:

Connection Methods

You can establish connections using different methods, primarily:

Steps to Connect Data

1. Using SQL Server Management Studio (SSMS)

  1. Launch SSMS and connect to your Azure Analysis Services server instance. You'll typically use the server name provided in the Azure portal.
  2. Right-click on the server name and select New Model.
  3. Choose the model type (Tabular or Multidimensional). For most modern scenarios, Tabular is recommended.
  4. In the Model Designer, right-click on Tables and select Add Table.
  5. The Import Data wizard will appear. Select your data source type from the list.
  6. Provide the connection details for your chosen data source (server name, database name, authentication credentials).
  7. Select the tables or views you want to import into your model.
  8. Click Load to import the data.

2. Using Visual Studio with Analysis Services Projects

  1. Install the SQL Server Data Tools (SSDT) for Visual Studio.
  2. Create a new Analysis Services Tabular Project in Visual Studio.
  3. In the Solution Explorer, right-click on Data Sources and select Add Data Source.
  4. In the Table import wizard, select your data source type and configure the connection string.
  5. Use the Navigator to select the tables and columns.
  6. The selected data will be available in your model. You can then define relationships, calculations, and hierarchies.
Note: When connecting to on-premises data sources from Azure Analysis Services, you will need to configure an On-premises data gateway.

Connection Strings

Connection strings are crucial for establishing links to your data. A typical connection string for Azure Analysis Services looks like this:

Server=asazure://[region].asazure.windows.net/[your_server_name];Database=[your_database_name];...

For data sources, the connection string format varies. For example, connecting to Azure SQL Database:

Server=tcp:[your_sql_server].database.windows.net,1433;Database=[your_database];User ID=[your_username];Password=[your_password];...

Authentication and Security

Proper authentication and security are paramount:

Tip: Always use the principle of least privilege when granting permissions to your data sources.

Data Refresh

Once connected, you'll need to configure data refresh to keep your models up-to-date:

Important: Ensure that your firewall rules on the data source allow connections from Azure Analysis Services or the on-premises data gateway.

Troubleshooting

Common connection issues include:

Refer to the Azure Analysis Services documentation for detailed troubleshooting guides.