Skip to content

Publish to azure: The endpoint blob is not allocated for the resource storage #5882

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

You must be logged in to vote

Change your code to be this:

using Microsoft.Extensions.Hosting;
using Projects;

var builder = DistributedApplication.CreateBuilder(args);
var storage = builder.AddAzureStorage("storage");
var blobs = storage.AddBlobs("blobs");

if (builder.Environment.IsDevelopment())
{
    storage.RunAsEmulator(c => c.WithImageTag("3.31.0"));
}
builder.AddProject<BlobStorage_Api>("blobstorageapi").WithReference(blobs);
builder.Build().Run();

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BjarkeKvik
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
Converted from issue

This discussion was converted from issue #5881 on September 24, 2024 08:07.