ADL Gen2 rename using Path REST API failure with SAS token

Anil 1 Reputation point
2020-08-03T09:31:07.993+00:00

Hi,

I am currently trying to rename a file within a container using the https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create API and an account-level SAS token. The SAS token was generated from the Azure portal with full access:

Services: Blob and File
Resource: Service, Container and Object
Permissions: R, W, D, L, A, C

While I can perform operations like List Paths and Create Path, I am unable to perform a rename operation. The operation fails with

AuthenticationFailed","message":"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature

I am appending the SAS token obtained from the Azure portal to both the request URL and the value (file rename source path) of the "X-ms-rename-source" header. Could someone provide insights as to why the request keeps failing?

Thanks,
Anil.

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,393 questions
{count} votes