I am trying to change a PowerApp owner using PowerShell.
To do that, I need to log in to the correct tenant in the China cloud.
Based on the documentation, I should use the -Audience parameter of the Add-PowerAppsAccount command (Set-AdminPowerAppOwner (Microsoft.PowerApps.Administration.PowerShell) | Microsoft Learn).
Based on the China cloud documentation, that parameter should be https://management.chinacloudapi.cn (Azure China developer guide | Microsoft Learn).
Trying with different values for the -Audience parameter, it always tries to authenticate against the global login API, showing me accounts not registered against our China tenant.
I am using:
PowerShell 7.3.4
PowerApps Admin Module 2.0.166
Is the -Audience parameter always ignored?
Am I using the correct parameter value?
Any other ideas to try?

Report
All responses (
Answers (