Created
December 31, 2022 21:25
-
-
Save csharpfritz/29060d29835bb036b989ca3de3b3fcf5 to your computer and use it in GitHub Desktop.
Upload a file to Azure Blob storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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