Azure permissions needed to get storage context

MCMR 1 Reputation point
2019-12-09T11:46:42.387+00:00

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.
8,151 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,766 Reputation points
    2019-12-09T11:51:33.997+00:00

    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.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.