Hi @romungi-MSFT , thanks for response. I generate again the SAS at container level with read, list, user delegation keys for source container (src) and SAS container level with write, list, user delegation keys for target container (tgt), update the json:
{
"inputs": [{
"source": {
"sourceUrl": "https://<endpoint>.blob.core.windows.net/src?sp=rl&st=2023-05-17T20:39:04Z&se=2023-05-24T04:39:04Z&skoid=a4db8411-463b-4a9f-84d3-75a1c98708f4&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2023-05-17T20:39:04Z&ske=2023-05-24T04:39:04Z&sks=b&skv=2022-11-02&spr=https&sv=2022-11-02&sr=c&sig=r8ZeCQ7eXsLBVHRylovhEQZ5qivgrzhy7rYag2sUamo%3D"
},
"targets": [{
"targetUrl": "https://<endpoint>.blob.core.windows.net/tgt?sp=wl&st=2023-05-17T20:40:21Z&se=2023-05-24T04:40:21Z&skoid=a4db8411-463b-4a9f-84d3-75a1c98708f4&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2023-05-17T20:40:21Z&ske=2023-05-24T04:40:21Z&sks=b&skv=2022-11-02&spr=https&sv=2022-11-02&sr=c&sig=cTr2loH0FYrpHTcb7cDz%2BoER7K3fXd85P69USP%2B5g9k%3D",
"language": "es"
}]
}]
}
Even checked that both containers have Container (anonymous read access for containers and blobs) "Public Access Levels" as per documentation. https://learn.microsoft.com/en-us/azure/cognitive-services/Translator/document-translation/how-to-guides/create-sas-tokens?tabs=Containers#prerequisites
Sent the request again:
cmd /c curl "https://<endpoint>.cognitiveservices.azure.com/translator/text/batch/v1.0/batches" -i -X POST --header "Content-Type: application/json" --header "Ocp-Apim-Subscription-Key: <key>" --data "@document-translation.json"
HTTP/1.1 202 Accepted
Content-Length: 0
X-RequestId: 0b929ce6-5180-4cce-8a1f-5d0695f571b7
Operation-Location: https://<endpoint>.cognitiveservices.azure.com/translator/text/batch/v1.0/batches/5833c5c2-cb2a-47dd-9626-dddd408bb005
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
apim-request-id: 0b929ce6-5180-4cce-8a1f-5d0695f571b7
x-content-type-options: nosniff
x-ms-region: East US
Date: Wed, 17 May 2023 20:41:22 GMT
Unfortunately, still get the same error:
cmd /c curl "https://<endpoint>.cognitiveservices.azure.com/translator/text/batch/v1.0/batches/5833c5c2-cb2a-47dd-9626-dddd408bb005" -i -X GET --header "Ocp-Apim-Subscription-Key: <key>"
{"id":"5833c5c2-cb2a-47dd-9626-dddd408bb005","createdDateTimeUtc":"2023-05-17T20:41:22.894242Z","lastActionDateTimeUtc":"2023-05-17T20:41:23.4059145Z","status":"ValidationFailed","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."}},"summary":{"total":0,"failed":0,"success":0,"inProgress":0,"notYetStarted":0,"cancelled":0,"totalCharacterCharged":0}}
What else do you recommend? I appreciate it.
PS: I even submit a bug I found in documentation that is currently on PR: https://github.com/MicrosoftDocs/azure-docs/issues/109630#issuecomment-1550677451