This guide walks you through the process of deploying your tabular or multidimensional models to an Azure Analysis Services (AAS) instance. Successful deployment is crucial for making your data models accessible to end-users and reporting tools.
There are several ways to deploy your models:
This is the primary method used when building models interactively.
Launch Visual Studio and open your existing Azure Analysis Services project.
In the Solution Explorer, right-click on your Analysis Services project and select Properties.
yourservername.asazure.windows.net).Right-click on the project in Solution Explorer again and select Deploy, or press F5.
Visual Studio will build the project and then deploy the model to the specified Azure Analysis Services server.
The Output window in Visual Studio will show the progress and any messages related to the deployment. Look for a "Deployment succeeded" message.
SSMS is useful for deploying existing model files (BACPAC) or managing your AAS instance.
Open SSMS and connect to your Azure Analysis Services server using its server name.
Right-click on the Databases folder in Object Explorer and select Restore.
If you are updating an existing database:
ALTER script to update the model or deploy a new version of the BACPAC.Azure Data Studio provides a modern interface for managing and deploying to AAS.
If you haven't already, install the AAS extension from the Extensions Marketplace in Azure Data Studio.
Use the AAS extension to establish a connection to your Azure Analysis Services server.
Within the AAS extension interface, you'll find options to deploy your model. This typically involves selecting your project files or a BACPAC.
When connecting your applications or BI tools to your deployed model, you'll use a connection string. A typical format is:
"Provider=MSOLAP;Data Source=yourservername.asazure.windows.net;Initial Catalog=YourDatabaseName;"
For Azure AD authentication, you might use:
"Provider=MSOLAP;Data Source=yourservername.asazure.windows.net;Initial Catalog=YourDatabaseName;User ID=;Password=;AADTenant=;"
Refer to Azure documentation for the most current and secure authentication methods.
For advanced scenarios like automated deployments, explore Azure DevOps pipelines with tasks specifically designed for Azure Analysis Services deployment.