I spent to much time on this..
Finally what worked for us was using the following.
Make sure the account u use to run the command had the role on the storageaccount: Storage Blob Data Owner.
U can add the Firewall IP if needed we did it just in case.
The SAS url does not always auto create the "?" need to add that ur self.
https://stgrobackendlogs.blob.core.windows.net/papercutlogs/" ? " <--
The deletion string --delete-destination=true:changes made to the source are now also edited at the destination.
We run a schedule task if the SAS string contains a " % " u need to add another one other wise it won't work.
Also don't create the SAS token on the blob, but on the storageaccount!
Final:
azcopy.exe sync "E:\Program Files\PaperCut MF\server\lib-ext" "https://stgrobackendlogs.blob.core.windows.net/papercutlogs/?sv=2022-11-02&ss=bffdsfresfdsdsddsfgrggr2iFrqvdQ5sdsdsdqQ3mvvvQiylVqvWoo%%3D" --delete-destination=true
I hope this saves some of u guys time ;)