Uplaod file to adls gen2 using oauth 2.0 failing

Vikas Tiwari 766 Reputation points
2022-11-29T19:55:29.907+00:00

Hi,

I am trying to upload file into adls gen2 using AAD token rest api's (following steps mentioned here : https://techcommunity.microsoft.com/t5/azure-paas-blog/how-use-storage-adls-gen2-rest-api-to-upload-file-via-aad-access/ba-p/2108778). It doesnt update file content at last steps (calling api with action = flush).

I have provided action=flush&position=3584 (position is file size in bytes) and receiving following error response back:

265411-error-postman-gl.png

While I tried to call same api's using powershall its working correctly and uploaded file without any issue.

I wanted to know, what is correct approach to upload ~10 MB file, should I use ps script or can be done through direct api calls? Is there any limitation (i.e file size through postman etc)?

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,337 questions
{count} votes