@Mircea Cristea
Since you are able to perform this action outside of copyFromUrl() it sounds like this could be a bug. For the quickest response and fix from the developer team, I recommend creating an issue on the azure-sdk-for-java GitHub issues page.
Please let me know if you are unable to create an issue or get a response and I will work internally to escalate the issue.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.