-
Notifications
You must be signed in to change notification settings - Fork 65
"Add Azure Blob Storage resource" Incorrectly using AddBlobs instead of AddBlobContainer #674
Copy link
Copy link
Open
Description
The Add Azure Blob Storage resource section states:
... how to add an Azure Blob Storage resource named storage and a blob container named blobs
With a code example of:
var builder = DistributedApplication.CreateBuilder(args);
var blobs = builder.AddAzureStorage("storage")
.RunAsEmulator(azurite => { /* optional azurite configuration */ })
.AddBlobs("blobs");
builder.AddProject<Projects.ExampleProject>()
.WithReference(blobs)
.WaitFor(blobs);
// After adding all resources, run the app...This line does not create a container named blobs.
.AddBlobs("blobs");Instead, it may have intended to use:
.AddBlobContainer("blobs");Lines that may need to be addressed:
Line 32 in 8606606
| .AddBlobs("blobs"); |
Line 64 in 8606606
| .AddBlobs("blobs"); |
Line 25 in 8606606
| In your AppHost project, register the Azure Blob Storage integration by chaining a call to `AddBlobs` on the `IResourceBuilder<IAzureStorageResource>` instance returned by `AddAzureStorage`. The following example demonstrates how to add an Azure Blob Storage resource named `storage` and a blob container named `blobs`: |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels