You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before you can do anything meaningful with AzCopy, you need to decide how you'll provide authorization credentials to the storage service.
47
+
> [!NOTE]
48
+
> As an owner of your Azure Storage account, you aren't automatically assigned permissions to access data. Before you can do anything meaningful with AzCopy, you need to decide how you'll provide authorization credentials to the storage service.
48
49
49
50
## Choose how you'll provide authorization credentials
50
51
@@ -62,9 +63,9 @@ Use this table as a guide:
62
63
63
64
The level of authorization that you need is based on whether you plan to upload files or just download them.
64
65
65
-
#### Authorization to upload files
66
+
If you just want to download files, then verify that the [Storage Blob Data Reader](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-reader) has been assigned to your identity.
66
67
67
-
Verify that one of these roles has been assigned to your identity:
68
+
If you want to upload files, then verify that one of these roles has been assigned to your identity:
68
69
69
70
-[Storage Blob Data Contributor](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-queue-data-contributor)
70
71
-[Storage Blob Data Owner](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-owner)
@@ -82,27 +83,6 @@ You don't need to have one of these roles assigned to your identity if your iden
82
83
83
84
To learn more, see [Access control in Azure Data Lake Storage Gen2](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-access-control).
84
85
85
-
#### Authorization to download files
86
-
87
-
Verify that one of these roles has been assigned to your identity:
88
-
89
-
-[Storage Blob Data Reader](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-reader)
90
-
-[Storage Blob Data Contributor](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-queue-data-contributor)
91
-
-[Storage Blob Data Owner](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-owner)
92
-
93
-
These roles can be assigned to your identity in any of these scopes:
94
-
95
-
- Container (file system)
96
-
- Storage account
97
-
- Resource group
98
-
- Subscription
99
-
100
-
To learn how to verify and assign roles, see [Grant access to Azure blob and queue data with RBAC in the Azure portal](https://docs.microsoft.com/azure/storage/common/storage-auth-aad-rbac-portal?toc=%2fazure%2fstorage%2fblobs%2ftoc.json).
101
-
102
-
You don't need to have one of these roles assigned to your identity if your identity is added to the access control list (ACL) of the target container or directory. In the ACL, your identity needs read permission on the target directory, and execute permission on container and each parent directory.
103
-
104
-
To learn more, see [Access control in Azure Data Lake Storage Gen2](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-access-control).
105
-
106
86
#### Authenticate your identity
107
87
108
88
After you've verified that your identity has been given the necessary authorization level, open a command prompt, type the following command, and then press the ENTER key.
@@ -111,6 +91,14 @@ After you've verified that your identity has been given the necessary authorizat
111
91
azcopy login
112
92
```
113
93
94
+
If you belong to more than one organization, include the tenant ID of the organization to which the storage account belongs.
95
+
96
+
```azcopy
97
+
azcopy login --tenant-id=<tenant-id>
98
+
```
99
+
100
+
Replace the `<tenant-id>` placeholder with the tenant ID of the organization to which the storage account belongs. To find the tenant ID, select **Azure Active Directory > Properties > Directory ID** in the Azure portal.
101
+
114
102
This command returns an authentication code and the URL of a website. Open the website, provide the code, and then choose the **Next** button.
115
103
116
104

@@ -141,13 +129,32 @@ To find example commands, see any of these articles.
141
129
142
130
-[Transfer data with AzCopy and Amazon S3 buckets](storage-use-azcopy-s3.md)
143
131
144
-
## Configure, optimize, and troubleshoot AzCopy
132
+
## Use AzCopy in a script
145
133
146
-
See [Configure, optimize, and troubleshoot AzCopy](storage-use-azcopy-configure.md)
134
+
Over time, the AzCopy [download link](#download-and-install-azcopy) will point to new versions of AzCopy. If your script downloads AzCopy, the script might stop working if a newer version of AzCopy modifies features that your script depends upon.
135
+
136
+
To avoid these issues, obtain a static (un-changing) link to the current version of AzCopy. That way, your script downloads the same exact version of AzCopy each time that it runs.
> For Linux, `--strip-components=1` on the `tar` command removes the top-level folder that contains the version name, and instead extracts the binary directly into the current folder. This allows the script to be updated with a new version of `azcopy` by only updating the `wget` URL.
147
+
148
+
The URL appears in the output of this command. Your script can then download AzCopy by using that URL.
149
+
150
+
| Operating system | Command |
151
+
|--------|-----------|
152
+
|**Linux**|`wget -O azcopyv10.tar https://azcopyvnext.azureedge.net/release20190301/azcopy_linux_amd64_10.0.8.tar.gz tar -xf azcopyv10.tar --strip-components=1 ./azcopy`|
If you want to leverage the performance advantages of AzCopy, but you prefer to use Storage Explorer rather than the command line to interact with your files, then enable AzCopy in Storage Explorer.
157
+
If you want to leverage the performance advantages of AzCopy, but you prefer to use Storage Explorer rather than the command line to interact with your files, then enable AzCopy in Storage Explorer.
151
158
152
159
In Storage Explorer, choose **Preview**->**Use AzCopy for Improved Blob Upload and Download**.
153
160
@@ -156,15 +163,22 @@ In Storage Explorer, choose **Preview**->**Use AzCopy for Improved Blob Upload a
156
163
> [!NOTE]
157
164
> You don't have to enable this setting if you've enabled a hierarchical namespace on your storage account. That's because Storage Explorer automatically uses AzCopy on storage accounts that have a hierarchical namespace.
158
165
166
+
Storage Explorer uses your account key to perform operations, so after you sign into Storage Explorer, you won't need to provide additional authorization credentials.
167
+
159
168
<aid="previous-version" />
160
169
161
170
## Use the previous version of AzCopy
162
171
163
172
If you need to use the previous version of AzCopy (AzCopy v8.1), see either of the following links:
164
173
165
174
-[AzCopy on Windows (v8)](https://docs.microsoft.com/previous-versions/azure/storage/storage-use-azcopy)
175
+
166
176
-[AzCopy on Linux (v8)](https://docs.microsoft.com/previous-versions/azure/storage/storage-use-azcopy-linux)
167
177
178
+
## Configure, optimize, and troubleshoot AzCopy
179
+
180
+
See [Configure, optimize, and troubleshoot AzCopy](storage-use-azcopy-configure.md)
181
+
168
182
## Next steps
169
183
170
184
If you have questions, issues, or general feedback, submit them [on GitHub](https://github.com/Azure/azure-storage-azcopy) page.
0 commit comments