Hello @ Justin Doh,
Thanks for reaching out to Microsoft Q&A
Based on the error message you shared in the private message, I see two issues:
- Command formatting issue The command syntax is currently invalid. Please ensure the AzCopy command is formatted correctly, for example: Invalid: PS C:\Windows\System32> azcopy.exe sync "C:\AzCopyTest\TestData\Test" " --delete-destination=true Valid:
PS C:\Windows\System32\azcopy.exe sync "C:\AzCopyTest\TestData\Test" " --delete-destination=true - Insufficient SAS permissions The SAS token used does not have sufficient permissions to perform the sync operation. Since the command includes
--delete-destination=true, the SAS token must include Read, Write, List, and Delete permissions (rlwd). Please regenerate the SAS token with the required permissions and retry the PowerShell command. If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".