Re: 502 Error Web server received an invalid response when restarting Power Apps Portal
Hi @Anonymous ,
Check this blog: PowerApps Portal Force Restart
The Restart command is basically sending an IISRESET command to the Azure App Service powering the portal behind the scenes. then your portal may face a 503 or 502 error.
The evasive technique is to actually turn off the portal and then turn it back on. Effectively doing an IIS STOP and then IIS START.
You can actually do this from the PowerApps Portals admin center, Portal Details, scroll to the bottom and see the Change Portal State.
Now select the Off state, and select Update.
Navigate to your portal and wait to receive the App Stopped message screen.
Once you see this screen, switch back to the Portal Details, select the On state and select Update.
Hope this helps.
Sik