Any help on how to access blob container using SAS URL in .net application , It should work in C# 7.3 version
Loading
Any help on how to access blob container using SAS URL in .net application , It should work in C# 7.3 version
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Abhishek ChadhaPosted Apr 10, 2025, 9:03 AM
I do have the access to chat gpt I came here after doing research on Chat gpt
For your info blobclient is not worked in 7.3
Emily FosterPosted Apr 10, 2025, 8:47 AM
To access a Blob Container using a Shared Access Signature (SAS) URL in a .NET application using C# 7.3, you can follow these steps:
1. First, ensure you have the SAS URL for the Blob Container. This SAS URL should include the necessary permissions required to access the Blob Container and its contents.
2. In C# 7.3, you can make use of the Azure Storage SDK to interact with Azure Blob Storage. You can install the Microsoft.Azure.Storage.Blob package via NuGet to get access to the required APIs.
3. Once you have added the necessary NuGet package to your project, you can use the following code snippet as an example to access a Blob Container using a SAS URL:
4. Replace "your_SAS_token_here" and "your_container_name_here" with your actual SAS token and Blob Container name in the code snippet.
5. This code will help you list the blobs present in the specified Blob Container using the provided SAS URL.
Make sure to handle exceptions, validations, and further operations based on your requirements in your application. This example demonstrates the basic functionality of accessing a Blob Container with a SAS URL using C# 7.3. Let me know if you need further assistance or have any specific requirements!