Connecting to Azure Blob Storage

I am in progress of transitioning from Visual Studio to Rider…

My code runs a service in Docker and currently creates a connection to a Azure Blob Storage account using a VisualStudioCredential when debugging…this all works fine.

To use this in Rider, I need to change it use a different credential for obvious reasons, however I am not sure which one as neither of the Azure CLI credentials are working. They are both reporting an error that the CLI is not installed. 

I have signed in to the Azure Toolkit, does anyone have any suggestions short of using azurite

0
1 comment

Hello, 

Thanks for contacting Rider support.

How you configure the authentication depends on the supported ways by Azure SDK, not Rider. This information can be found in Microsoft documentation:

For an app to authenticate to Azure during local development using the developer's Azure credentials, the developer must be signed-in to Azure from one of the following developer tools:

  • Azure CLI
  • Azure Developer CLI
  • Azure PowerShell
  • Visual Studio

In this case, using Azure CLI credential is recommended. Note, I would suggest using DefaultAzureCredential in code as it will automatically detect available credential, thus you don't have to update code if you'd like to switch between Rider and VS, or deploy to Azure. 

Regards,

Tom

0

Please sign in to leave a comment.