The error is typically caused by module dependency mismatches, runtime environment inconsistencies, or token refresh failures.
I encountered the same error previously when the required modules were not properly updated. Please find the reference screenshot below.
Subsequently, I updated the Az.AnalysisServices, Az.Accounts, and Az.Resources modules using a PowerShell 7.2 runbook. Refer to the screenshots below for details.
After updating the modules, I was able to successfully retrieve the output of the
Get-AzAnalysisServicesServer
command. Please see the final screenshot for reference.
Hope this helps!
let us know if any help, we will always help as you needed.!
Please do not forget to "Accept the answer” and upvote it wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.