pnpframework icon indicating copy to clipboard operation
pnpframework copied to clipboard

Throttling in a bulk update of Site Collections

Open roberAlb opened this issue 2 years ago • 1 comments

Basically we have an Azure function which needs to update a big amount of site collections. For that, we use a PnP template including the changes that we need to apply in each site collection. The problem is that we are getting throttled and for a big number of sites collections we are getting this error Error: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing. . Does anyone know if this can be remediated ? Or if there is a workaround? Thanks in advance.

roberAlb avatar Apr 11 '23 06:04 roberAlb

Azure Functions have a very short lifetime and may not be the best approach to run large tenant wide changes in a single run. You may have to consider either going for a higher scaling to avoid the 1 min timeout, or queuing up all the sites to apply the template, then one template run applies to one site.

Does applying the single template may take longer than a minute?

pkbullock avatar Jul 19 '23 21:07 pkbullock