Docs and samples for using user-managed identity (reference in profile.ps1?)
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.
This is to update the profile.ps1 as once
eamon had a suggestion that if there is one user identity assigned we automatically take it.
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
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