ADL Gen2 rename using Path REST API failure with SAS token
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.