Hi All, we just did a sandbox refresh and were not able to connect to org via sfdx:cli and were getting error message saying "this app is blocked".
When further investigated we found out that the SFDX CLI connected app was blocked, in fact all the connected apps were blocked, which was obviously not done by us.
So can anybody confirm that refresh of sandbox blocks the apps and is their any supporting documentation that can confirm this statement.
Thanks
The refresh creates what is essentially a new sandbox that happens to have the same URL and name. To have values persist after a refresh they must be in the refresh source (generally production).
An alternative is to maintain an Apex script that can be run at the end of the refresh that updates the values after the refresh. Another is to maintain a package in source control with those settings and install it post-refresh.
HTH
Regards,
Scott S Nelson