Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
How to enable AAD authentication for storage account listing?
Post Flair (click to view more posts with a particular flair)
Post Body

I'm following this tutorial for listing all of the storage accounts in my subscription. Previously I used Microsoft.Azure.Management.Fluent however this is now deprecated so that's the reason for switching to the new approach suggested by Microsoft. I had no issues with Microsoft.Azure.Management.Fluent but now I can't authenticate using my DefaultAzureCredential that is later on used as an input of ArmClient. Locally this woks but not when I deploy it. I have my Managed Identity switched ON for my App Service that contains the code that calls the function for listing storage accounts but still doesn't work. I spent my last two days in searching for the right permissions and how to set them but failed. Funny enough is that, from the previous experience when authentication against some Azure Service failed, I faced an error message all the time but not in this case. Has someone used this functionality in cloud and what did you do to make it work?

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
11,607
Link Karma
3,437
Comment Karma
7,271
Profile updated: 5 hours ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago