CustomScriptExtension failed with "Operation is not valid due to the current state of the object"
Solution 1:
Every time I've hit it, with ManagedIdentity, what it actually meant was 'there's nothing there to download because you uploaded the script blobs to the wrong container'.