Skip to content

Connecting a Blob Storage Account #6361

Closed Answered by davidfowl
Jacovlogg asked this question in Q&A
Discussion options

You must be logged in to vote

But I don't want to emulate locally I want to connect to the live storage while deving locally. Or maybe I am misunderstanding the Emulator?

Yes the emulator (https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio%2Cblob-storage) runs locally.

If you want aspire to provision storage the resource in Azure then you can use local provisioning https://learn.microsoft.com/en-us/dotnet/aspire/deployment/azure/local-provisioning.

If you want to use an existing storage resource, then you can use builder.AddConnectionString to just set a value of a connection string in the apphost's configuration.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Jacovlogg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants