Can a SAS URL for a private Azure Blob be used in a compare API, or are there alternative solutions?

Khoa 25 Reputation points
2024-12-07T09:27:49.91+00:00

I currently want to use this API to compare it with a file stored in Azure Blob, but mine is a private blob. So, if I create an Azure Blob SAS URL for the private blob endpoint, can it be used in this compare API? Or is there any other way?

User's image

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
901 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,993 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,014 questions
{count} votes

Accepted answer
  1. Keshavulu Dasari 2,330 Reputation points Microsoft Vendor
    2024-12-09T01:56:00.62+00:00

    Hi Khoa,
    Welcome to Microsoft Q&A Forum. Thanks for posting you query here!
    You can use a SAS URL for a private Azure Blob in a compare API. A SAS URL provides secure, delegated access to your Azure Blob storage, allowing you to specify permissions and duration for access.
    To use a SAS URL with a private endpoint,
    Generate a SAS URL: Create a SAS token for your Azure Blob storage using the Azure Portal, Azure CLI, or Azure Storage SDKs.
    Modify the URL: Replace the storage account name in the SAS URL with the Private Link URL of your storage account.  For example, if your storage account name is mystorageaccount and the Private Link URL is myprivatelink.blob.core.windows.net, replace mystorageaccount.blob.core.windows.net with myprivatelink.blob.core.windows.net in the SAS URL,
    Ensure that the client making the request is connected to the same virtual network or Azure ExpressRoute circuit as the storage account, and you can use Azure's REST API to include the SAS URL in your requests. This method allows you to append the SAS query string to your existing source URL and target URL values,
    For more information:
    Createshared access signature (SAS) tokens for storage containers and blobs - AzureAI services | Microsoft Learn


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 
    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.