An Azure service that provides an enterprise-grade analytics engine.
Hi Pradnyesh Patil,
it sounds like you’re able to connect to your Azure Analysis Services (AAS) instance but can’t pull down the model definition (Model.bim) into Visual Studio or SSMS. Let’s walk through the usual blockers and some workarounds:
- Permissions you need
- To import or “download” a Tabular model you must be in one of two roles on the AAS server: • Server Administrator (at the Azure resource‐level or via the AAS server-admin role) • Or a Database Administrator role for that particular model database
- If you only have read/query permissions (e.g. a “read” database role), Visual Studio/SSMS will let you connect but won’t let you pull down the full model definition.
- In the Azure portal you can add your user under “Server Admins” (or use Azure RBAC to give the Azure Analysis Services Reader role plus the server-admin role).
- Known VS/SSMS limitations & gotchas
- Visual Studio: make sure you’re on VS2017/2019/2022 and have the latest Analysis Services Projects extension installed (Extensions → Manage Extensions → Updates). Older client libraries can fail with obscure AADSTS or metadata errors.
- The Import-From-Server template only works if the model’s compatibility level is ≥ 1200. Very old models (1100 or lower) must be upgraded first.
- SSMS: you can connect to AAS, but SSMS doesn’t have a “Download Model” wizard. You can script objects out one at a time, but you won’t get the full Model.bim in one go.
- Alternative ways to get the model locally • Backup + Restore – In SSMS, right-click your AAS database → Backup… → give an Azure Blob Storage container → run the backup. – Then restore that backup to a local SQL Server Analysis Services instance to get a working .abf file. • XMLA / TMSL scripting – In SSMS object explorer, right-click the database → Script Database As → CREATE To → File. You’ll get an XMLA script you can keep in source control. • Tabular Object Model (TOM) or PowerShell – Use the Az.AnalysisServices or SqlServer PowerShell modules to Connect-AnalysisServicesServer and then call the TOM API to save out the Model.bim. • Tabular Editor (v2 or v3) – Connect directly to your AAS server via the XMLA endpoint, then do File → Save As → Model.bim or export to JSON.
If you’re still hitting a specific error when you do Import-From-Server, let us know:
- Exact error text or screenshot
- Your VS version + Analysis Services Projects extension version
- Model compatibility level in AAS
- Your AAD sign-in method
That info will help zero in on any lingering client-library or authentication problems.
— Reference docs
- Deploy a model from Visual Studio (also covers importing) https://learn.microsoft.com/azure/analysis-services/analysis-services-deploy
- Deploy from Visual Studio (detailed tabular-specific) https://learn.microsoft.com/analysis-services/deployment/deploy-from-visual-studio-tabular
- Server and database roles for AAS security https://learn.microsoft.com/azure/analysis-services/analysis-services-server-admins https://learn.microsoft.com/azure/analysis-services/analysis-services-database-users
- Troubleshooting VS extension updates https://learn.microsoft.com/analysis-services/deployment/deploy-from-visual-studio-tabular#update-to-the-latest-visual-studio-extension
- SSMS scripting & XMLA https://learn.microsoft.com/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo
Hope that helps! Let me know the details of any error messages if you need more help.
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.