Azure Analysis Services Documentation

Manage Models

Manage Models

This document provides guidance on how to manage models in Azure Analysis Services. Managing models involves tasks such as creating, deploying, updating, and deleting tabular or multidimensional models.

Using Visual Studio with Analysis Services Projects

The primary tool for developing and managing Analysis Services models is Visual Studio with the SQL Server Data Tools (SSDT) extension. This allows you to create, modify, and deploy your models.

  1. Open Visual Studio and create a new Analysis Services project (either Tabular or Multidimensional).
  2. Design your model by adding data sources, tables, relationships, and calculations (e.g., DAX measures for Tabular, MDX for Multidimensional).
  3. Deploy the model: Right-click on the project in Solution Explorer and select "Deploy". You will be prompted to enter the server name.
  4. Update the model: Make changes to your model in Visual Studio and redeploy. You can choose to update existing tables or entire databases.

Using SQL Server Management Studio (SSMS)

SQL Server Management Studio (SSMS) can be used to connect to your Azure Analysis Services server and perform administrative tasks, including managing models.

Using Tabular Editor

Tabular Editor is a popular third-party tool that provides an advanced way to work with tabular models. It offers a rich object model editor, scripting capabilities, and integration with source control.

Common Model Management Tasks

Deploying a Model

Deployment typically involves publishing your model project from Visual Studio to an Azure Analysis Services instance. Ensure you have the correct server name and permissions.

Updating a Model

When you need to make changes, update your model in Visual Studio or your chosen tool. During deployment, you'll have options to:

Refreshing Data

After deploying or updating a model, you'll likely need to refresh the data within the model. This can be done:

Backup and Restore

Regular backups are crucial for disaster recovery and version control. You can perform backups and restores using:

Tip: Automate model deployments and data refreshes using Azure DevOps pipelines or other CI/CD tools for efficient management.

Deleting a Model

To delete a model (database) from your Azure Analysis Services server:

Permissions and Role Management

Access to models and their management capabilities is controlled by permissions. Ensure users have the appropriate roles assigned to manage specific models or the entire Analysis Services instance.

Note: The 'Administrator' role on the Azure Analysis Services resource grants full control over the server and all its models. Database roles control access to specific models.

Considerations for Large Models

For very large models, consider the following: