You might not get the answer here quickly as this is Azure VM Storage forum.
Best would be to raise the same question on Azure Storage forum or Azure automation forum
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a runbook which tries to get a Storage Context with New-AzStorageContext but the variable keeps coming back empty. I've given the automation account's run as account storage blob data Owner, Storage Account Contributor, and Classic Storage Account Contributor roles on the subscription it's working in but it's made no difference. What permissions do you need to get a storage context? I can't find it documented anywhere.
You might not get the answer here quickly as this is Azure VM Storage forum.
Best would be to raise the same question on Azure Storage forum or Azure automation forum