I have an Azure web job that provisions SharePoint Online sites and during the process it applies an out of the box SharePoint theme. The theme is determined by the process, but can be "Orange" or "Sea Monster" (both OOTB SharePoint themes).
Previously all sites were created successfully, but in the last month the web job now fails when it tries to apply the Sea Monster theme with the following error message:
Unhandled Exception: Microsoft.SharePoint.Client.ServerException: The request uses too many resources.
The error message implies that the more complicated theme is over the 2MB size limit for a CSOM operations request, but the web job was definitely able to apply the theme previously as I have been running the job for months.
Has my web job been throttled? If so, why was it not throttled previously? Also, it seems unlikely that the "Sea Monster" theme is over 2MB in size, is there any way to check this?