I have the following resource setup in an Azure Automation DSC. For some reason it fails only sometimes and I can't figure out why. When searching I found a post on stackoverflow that had a link here, but that link resolves to a 404 now. So I'm hoping someone might recall/know why this fails sometimes. The error is:
"A specified logon session does not exist. It may already have been terminated."
Thanks for the reply! No changes to the configuration. I can let it sit on the same mof for days and I will see it switch between several compliant reports to a fail report and vice versa. The $cred is the storage account name and storage key.