How does VisualStudioCredential get set in Rider

Answered

I'm trying to work out how the VisualStudioCredential value gets set as part of the DefaultAzureCredential method.  In VS 2022 it looks like it gets set in the options screen (as per this DefaultAzureIdentity And Its Various Credential Types (c-sharpcorner.com)) but i can't find a similar screen in Rider.  Is it just taking the setting from VS?

0
4 comments

Hello Ross,

VisualStudioCredential suppose using VS login mechanism, like using MSDN account, which you can also use for login to Azure. There is no authentication for MS accounts in Rider right now.

0

Hi Ross Ellerington,

I found a workaround that worked for me. I installed the Azure Az Powershell module, this allowed me to use Rider with my app that uses DefaultAzureCredential. 

For more information on the module and signing in please see this article https://learn.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-9.6.0

1

Stephen Zura - thanks for the tip.  I'll give that a go

0

Glad to help! Let me know if you run into any issues with it.

0

Please sign in to leave a comment.