skip to Main Content

Azure – BlobClient#generateSasUrl automatically %-encode blob path

const { BlockBlobClient, BlobSASPermissions } = require("@azure/storage-blob"); const blobClient = new BlockBlobClient( "DefaultEndpointsProtocol=https;AccountName=yyyy;AccountKey=xxxx;EndpointSuffix=core.windows.net", "test", "hoge/huga/baz.txt" ); const expiresOn = new Date(); expiresOn.setMinutes(expiresOn.getMinutes() + 5); const h = blobClient.generateSasUrl({ expiresOn, permissions: BlobSASPermissions.from({ read: true })}).then((res) => { console.log(res); }); Executing this…

VIEW QUESTION

how to Skip Api Version Check for Azure blob storage in .NET Aspire

I'm running Azure blob storage by Aspire var builder = DistributedApplication.CreateBuilder(args); var blobs = builder.AddAzureStorage("storage") .RunAsEmulator() .AddBlobs("blobs"); builder. Build().Run(); var objectStorageApi = builder.AddProject<Projects.ObjectStorage_Api>("ObjectStorageApi") .WithReference(blobs); the problem is when my client creates a blob container or something to the blob it…

VIEW QUESTION

Writing to Azure Blob Storage from local spark environment

I've been going round in circles trying to write to a blob storage account in azure. Currently i'm creating a spark session with the following setup: spark = SparkSession.builder .appName("Azure Blob Storage Access") .config("spark.jars.packages", "org.apache.hadoop:hadoop-azure:3.3.1 ,com.microsoft.azure:azure-storage-blob:11.0.1 ,org.apache.hadoop:hadoop-azure:3.4.0 ,org.apache.hadoop:hadoop-azure:3.3.1 ,org.eclipse.jetty:jetty-util:11.0.7 ,org.apache.hadoop.thirdparty:hadoop-shaded-guava:1.1.1…

VIEW QUESTION
Back To Top
Search