Skip to main content
Execute a single AzCopy command or a batch of AzCopy commands as a script. Installed version: 10.32.6. The service principal used by the connection needs an appropriate Azure RBAC role on the target storage account:
  • Storage Blob Data Reader for download/list operations.
  • Storage Blob Data Contributor / Storage Blob Data Owner for upload operations.
The smbclient CLI is also available in this script, so it can include both smbclient and azcopy commands, for example:
SMB credentials are provided directly in the command (e.g. via -U user%password or an inline auth file), not through a connection.
AzCopy currently does not support OAuth connections. Use a connection authenticated with a service principal (app ID, client secret, tenant ID).
If there’s an error in a command in the middle of the script and the last command succeeds, the entire action will succeed, not revealing that some command may have failed.
External DocumentationTo learn more, visit Authorize access for AzCopy with a user identity and the AzCopy documentation.

Parameters