azure-functions-powershell-worker icon indicating copy to clipboard operation
azure-functions-powershell-worker copied to clipboard

Docs and samples for using user-managed identity (reference in profile.ps1?)

Open AnatoliB opened this issue 5 years ago • 4 comments

Even though user-managed identity works after closing #235, we keep getting user complaints about it not working. It turns out that our users don't realize they need to do some extra work and get a cryptic error message.

Fixing #337 helps by exposing a more meaningful error message reported by Connect-AzAccount. However, consider also making this sample more discoverable, perhaps include a reference to it (or even a commented-out code sample) into the auto-generated profile.ps1.

AnatoliB avatar May 26 '20 22:05 AnatoliB

This is to update the profile.ps1 as once

anirudhgarg avatar Jun 25 '20 22:06 anirudhgarg

eamon had a suggestion that if there is one user identity assigned we automatically take it.

anirudhgarg avatar Jun 25 '20 22:06 anirudhgarg

Here is what we need to document and/or add a comment to the profile.ps1 template: https://github.com/Azure/azure-functions-host/issues/5797#issuecomment-601864473

AnatoliB avatar Jun 26 '20 16:06 AnatoliB

We should include a new section for this in the PowerShell developer reference: https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-powershell?tabs=portal

Francisco-Gamino avatar Sep 08 '21 23:09 Francisco-Gamino