Unable to translate Blob using Cognitive Services Translator

Avasilcai Adrian 25 Reputation points
2023-07-19T10:12:09.6233333+00:00

Hi all,

I'm struggling for a while now to translate a given file (document) that resides in a Blob container.

Am of course using the Azure Cognitive Services to do the job but the problem seems to be that the service can't access the blob in question even if that url works just fine.

Input:

{
    "inputs": [
        {
            "source": {
                "sourceUrl": "https://<bla>.blob.core.windows.net/<bla bla>/ATS.pptx?<some SAS token>",
                "language": "en"
            },
            "targets": [
                {
                    "targetUrl": "https://<bla>.blob.core.windows.net/<bla bla>/fr_ATS.pptx?<some SAS token>",
                    "language": "fr"
                }
            ]
        }
    ]
}

Output:

"error": {
        "code": "InvalidRequest",
        "message": "Cannot access source document location with the current permissions.",
        "target": "Operation",
        "innerError": {
            "code": "InvalidDocumentAccessLevel",
            "message": "Cannot access source document location with the current permissions."
        }
    },

Additional important facts:

  • the Cognitive Service is in a VNET
  • tested with both having the Blob in the same VNET + Subnet with the Cognitive Service as well as with having the Blob accessible from anywhere

Any suggestion or thoughts are much appreciated!!

Cheers,

Adrian

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,086 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,135 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.