Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AmiraBedh
Most Valuable Professional
Most Valuable Professional

Parametrize connections to Azure Analysis Services

Is there anyway to parametrize connections to AAS for tabular model using Live connection?

If I want to switch from an environment to another ? like DEV,TST to PROD ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @AmiraBedh - Power BI does not provide a direct out-of-the-box method for fully parameterizing live connection endpoints, but you can implement a workaround using parameters and connection swapping techniques as you mentioned dev, test, prod environments.

you can use Deployment Pipelines in Power BI Service allow you to move Power BI content from Dev to Test and then to Prod without needing to change the connection string manually each time.

When deploying to a different environment, you can specify which dataset connects to which Azure Analysis Services (AAS) environment. Each environment in the pipeline (Dev/Test/Prod) can be mapped to its own AAS instance.Set up deployment pipelines in Power BI Service >> Associate your datasets with the correct AAS environment in each stage.>> This way, when you move a report from Dev to Test to Prod, the connection string will switch automatically depending on the environment without requiring manual changes.

reference link:

Deployment Pipelines are the most seamless way to handle switching between environments automatically for live connections in Power BI.

Overview of Fabric deployment pipelines - Microsoft Fabric | Microsoft Learn

ALM Toolkit - SQLBI

solved thread:

Solved: Parameterize query for Azure Analysis Services liv... - Microsoft Fabric Community

 

Hope the above information helps.

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @AmiraBedh - Power BI does not provide a direct out-of-the-box method for fully parameterizing live connection endpoints, but you can implement a workaround using parameters and connection swapping techniques as you mentioned dev, test, prod environments.

you can use Deployment Pipelines in Power BI Service allow you to move Power BI content from Dev to Test and then to Prod without needing to change the connection string manually each time.

When deploying to a different environment, you can specify which dataset connects to which Azure Analysis Services (AAS) environment. Each environment in the pipeline (Dev/Test/Prod) can be mapped to its own AAS instance.Set up deployment pipelines in Power BI Service >> Associate your datasets with the correct AAS environment in each stage.>> This way, when you move a report from Dev to Test to Prod, the connection string will switch automatically depending on the environment without requiring manual changes.

reference link:

Deployment Pipelines are the most seamless way to handle switching between environments automatically for live connections in Power BI.

Overview of Fabric deployment pipelines - Microsoft Fabric | Microsoft Learn

ALM Toolkit - SQLBI

solved thread:

Solved: Parameterize query for Azure Analysis Services liv... - Microsoft Fabric Community

 

Hope the above information helps.

 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.