Closed v-cazhang closed 5 months ago
It looks like you don't have authorization to the storage account you configured. Can you ensure you have configured the storage account correctly?
This submission has been automatically marked as stale because it has been marked as requiring author action but has not had any activity for 14 days. It will be closed if no further activity occurs within 7 days of this comment.
REGRESSION INFO: Also repro on Aspire 8.0.0-preview.3.24105.21
INSTALL STEPS
REPRO STEPS
builder.AddAzureBlobService("BlobConnection");
else { var blobService = app.Services.GetRequiredService();
var docsContainer =
blobService.GetBlobContainerClient("fileuploads");
docsContainer.CreateIfNotExistsAsync(); }
@page "/"
@using System.ComponentModel.DataAnnotations @using Azure.Storage.Blobs
@inject BlobServiceClient BlobClient
Request Support
<EditForm Model="@Ticket" FormName="Tickets" method="post" OnValidSubmit="@HandleValidSubmit" enctype="multipart/form-data">
@code { [SupplyParameterFromForm(FormName = "Tickets")] private SupportTicket Ticket { get; set; } = new();
}
var storage = builder.AddAzureStorage("[StorageName]"); if (builder.Environment.IsDevelopment()) { storage.UseEmulator(); } var blobs = storage.AddBlobs("BlobConnection"); builder.AddProject("aspirestorage")
.WithReference(blobs);