Skip to content

Instantly share code, notes, and snippets.

@csharpfritz
Created December 31, 2022 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csharpfritz/29060d29835bb036b989ca3de3b3fcf5 to your computer and use it in GitHub Desktop.
Save csharpfritz/29060d29835bb036b989ca3de3b3fcf5 to your computer and use it in GitHub Desktop.
Upload a file to Azure Blob storage
var blobServiceClient = new BlobServiceClient(EnvironmentConfiguration.TableStorageConnectionString);
var containerClient = blobServiceClient.GetBlobContainerClient("cache");
var client = containerClient.GetBlobClient("fileToCache.json");
await client.UploadAsync(myContentToCacheAsStream, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment