> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run AzCopy Script

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.

<Note>
  AzCopy currently does not support OAuth connections. Use a connection authenticated with a service principal (app ID, client secret, tenant ID).
</Note>

<Note>
  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.
</Note>

<Note>
  External Documentation

  To learn more, visit [Authorize access for AzCopy with a user identity](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-user-identity#verify-role-assignments) and the [AzCopy documentation](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?toc=/azure/storage/blobs/toc.json\&bc=/azure/storage/blobs/breadcrumb/toc.json).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Command           | A single azcopy command or a batch of azcopy commands executed as a script.                                                                                                                                                                                                                                                                                                                                                                                               |
  | Working Directory | When a working directory is selected, the filesystem state is preserved across steps that use this directory. Files and changes in the chosen directory persist across steps, ensuring continuity.<br /><br />For more information, refer to the [Create Working Directory](/docs/workflows/building-workflows/actions/utility-actions/file_system-utilities#create-working-directory) action documentation for guidance on setting up and selecting working directories. |
</div>
