Hello PraveenKumar,
Greetings! Welcome to Microsoft Q&A Platform.Adding to below answer. Please check the following to resolve the issue,
If you're uploading or downloading data between a storage account and an on-premises hosting component, make sure that the hosting component that runs AzCopy can access either the source or destination storage account. You might have to use IP network rules in the firewall settings of either the source or destination accounts to allow access from the public IP address of the hosting component.
As you're encountering an error because AzCopy requires either the --recursive
flag or a trailing wildcard (/*
) when specifying a directory as the source. If you receive an error message that states that your parameters aren't recognized, make sure that you're using the correct version of AzCopy. AzCopy v8 and earlier versions are deprecated. AzCopy v10 is the current version, and it's a complete rewrite that doesn't share any syntax with the previous versions. Refer to AzCopy Migration Guide for v8 to v10.
Also, make sure to use built-in help messages by using the -h
switch together with any command (for example, azcopy copy -h
). See Get command help. To view the same information online, see azcopy copy.
To help you understand commands, we provide an education tool that's located in the AzCopy command guide. This tool demonstrates the most popular AzCopy commands along with the most popular command flags. To find example commands, see Transfer data. If you have a question, try searching through existing GitHub issues first to see whether it was already answered.
When you copy to an Azure File share, if you forgot to specify the --preserve-smb-permissions
flag and you don't want to transfer the data again, consider using Robocopy to bring over the permissions.
Hope this helps! please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.