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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sparks
Helper I
Helper I

How to Scale-Out (query replicas) Azure Analysis Services without any temporary outage?

Our Azure Analysis Services is in the East US 2 region and on S2 tier. We are trying to perform an auto scale-out/scale-in depending on the average QPU usage reaches a certain threshold (70-80%) for a sustained period of time. We trying to use the Azure Runbook and Powershell script to automate following the sample provided in github:
https://github.com/microsoft/Analysis-Services/tree/master/AASAutoScale

 

The issue we are facing is that, when the scale-out/in is occurring, regardless of whether we increase the query replicas from the Azure Portal manually or through the powershell cmdlets, the users interacting with the Power BI reports in Power BI Service suddenly get intermittent connection errors to the Azure Analysis Services. The error is as shown below:

ConnectionError.png

 

I have tried various things, such as below, but no luck. Is there any way to get around this?
Things I have tried:

  • Separate the processing server from querying pool setting is to Yes as well as No
  • ReplicaSyncMode setting to 2 (Optimized synchronization in parallel). Microsoft documentation says the databases are kept online on all replicas throughout the sync process and clients do not need to reconnect, but no luck

Also please let me know if I'm doing the steps correct:

  1. Process Database (The AAS database is processed only once (during midnight) in our case with "Process Full" option
  2. Synchronize operation as soon as Process Database step is complete
  3. Increase Query Replicas as needed during peak time (when the QPU usage goes beyond 70-80% of the max)
  4. Decrease Query Replicas as needed when the QPU usage drops below 30%

Since the Sync operation is done as soon as the Process Database is complete, we don't need to perform another Sync operation as and when new Query Replicas are added or removed. Is this correct?

 

Please help!

Thanks!!

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Sparks 

This issue may be related to Azure  Service bus messaging queue. Take a try to use a higher delivery count setup for the queue. Furthermore, if the your application is mission-critical, please consider upgrade to a premium namespace: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-premium-messaging 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors