Azure permissions needed to get storage context

MCMR 1 Reputation point

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.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,942 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 37,891 Reputation points

    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

    1 person found this answer helpful.
    No comments