-
I want to connect my Blob storage account to my apps through Aspire. I have read the docs and have implemented: In my user secrets I have a connectionstrings: This all fails and gives the error: I have Implemented: 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? So I am not sure what I am missing and what connection string blobs wants and storage wants if not the storage Key? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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 |
Beta Was this translation helpful? Give feedback.
-
Thanks David! |
Beta Was this translation helpful? Give feedback.
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.