When I provision a vm with a custom script extension, I will randomly get these errors:
"Failed to decode, decrypt, and deserialize the protected settings string. Error Message: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index".
I have tried using the listkeys function and directly passing in the key hardcoded into the arm json file, but still get these randomly.
Any insight on what is causing this or is it on the Azure end? The script still deploys correctly, but it is throwing the exception in the error logs..