A web app is not able to access Storage account SAS URL within VNET.

Vishal Rambilas Gupta 20 Reputation points
2023-09-25T09:40:15.4866667+00:00

Hello Team,

I have a use case, where I have a web app (Python-based), that lets us translate documents using azure document translator API. As per the documentation, azure document translator begin_translation needs and for the documents. All my resources are in VNET and the storage account also has a private endpoint configured. I am generating an SAS URL using as:

container_sas_url = f"https://{storage_account_name}.blob.core.windows.net/" + container_name + "?" + sas_token

But, the application complains "Error during document translation: (InvalidDocumentAccessLevel): Cannot access source document location with the current permissions.". I have provided "rl" for the source and "wl" for the target container as permissions. Since VNET is configured with a private endpoint, public access for storage account is disabled.

So, is there a way to make this work without opening up public access to the storage account ?

Or is it by design, for document translation, storage account should have public access since SAS URL cannot be used when public access is disabled ? Kindly help!

Thank you so much!

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,149 questions
Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
393 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
505 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
926 questions
{count} votes

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.