The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
As far as I know, the error "Access to this site has been blocked" with the notAllowed code occurs because Microsoft 365 places archived sites in a locked state to halt storage consumption, preventing standard access. While you have the correct permissions and the manual reactivation via the SharePoint Admin Center succeeds, the failure occurring specifically through the Microsoft Graph API indicates a backend platform issue.
Additionally, because the site: unarchive endpoint is currently in beta, it is subject to undocumented changes, instability, and transient service disruptions that do not affect production Admin Center workflows. Since beta APIs are not fully supported for production use and are currently experiencing a platform-side issue, you should pause use of the Graph API for this specific operation.
As an immediate workaround, you should either continue reactivating sites manually via the SharePoint Admin Center or automate the process using the fully supported SharePoint Online Management Shell cmdlet Set-SPOSiteArchiveState -Identity <SiteURL> -ArchiveState Active
Hope my answer will help you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.