How to deploy from UAT env to Production env an AAS tabular model
by Eugene Mazarakis
Introduction
Tabular models in Analysis Services are databases that run in-memory or in Direct Query mode, connecting to data from back-end relational data sources. Tabular models in Analysis Services are databases that run either in-memory or in Direct Query mode, connecting to data from back-end relational data sources. Using Microsoft Visual Studio, the authoring tool, we can create tabular models. The data model provides an easier and faster way for users to perform ad hoc data analysis with tools like Power BI and Excel.
Edit the Model.bim file
If we have a tabular model on UAT environment and want to transfer it to Production environment we should edit the Model.bim file and do the following steps:
- Inside the Visual Studio project, we go to Tabular Model Explorer. Here we can see the name of the data source.
- Click on the Solution Explorer tab.
- Right-click on the Model.bim file and select View Code.
NOTE Τhe Model.bim file contains the metadata for the model project, which is why we need to make changes there.
-
When the Model.bim file is open, you will see the data source at the top.
-
Replace the existing data source name with the desired new name.
NOTE You can choose a general name, e.g., SOURCE_AZURE_SYNAPSE_NAME.
- Next, update the server and database in the address JSON label with the Production environment values.
- Also, update the path and username in the credentials JSON label with the Production environment values.
- Next, navigate to each table in the partitions JSON label.
- In the expression JSON label, enter the data source name from step 5 in the let → source field.
- Save the changes to the Model.bim file.
TIP If the Tabular Model Explorer disappears at any time, simply double-click the Model.bim file to reopen it.
- When you go to the Tabular Model Explorer, you should now see the new data source name you selected in step 5 under Data Sources.
- Finally, we need to Process Table for each table in the model.
- Now, we are ready to deploy the model to the production server. In Solution Explorer, right-click on the project name and go to Properties. Update the deployment server with the Production environment values.
Wrap-Up
And that’s it—a model successfully deployed to the production environment. We only needed to make changes in one location within the Model.bim file, which contains all the necessary metadata for the tabular project. I hope you found this article useful. Thank you for reading!
tags: Azure - AAS - Visual Studio - Tabular Model