Skip to content

Commit bb48ed9

Browse files
committed
Several fixes and updates
1 parent 206f6a3 commit bb48ed9

File tree

2 files changed

+29
-58
lines changed

2 files changed

+29
-58
lines changed

articles/storage/common/storage-use-azcopy-configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To configure the proxy settings for AzCopy, set the `https_proxy` environment va
2727

2828
| Operating system | Command |
2929
|--------|-----------|
30-
| **Windows** | In a command prompt use: `set https_proxy=<proxy IP>:<proxy port>`<br> In PowerShell use: `$env:https_proxy=<proxy IP>:<proxy port>`|
30+
| **Windows** | In a command prompt use: `set https_proxy=<proxy IP>:<proxy port>`<br> In PowerShell use: `$env:https_proxy="<proxy IP>:<proxy port>"`|
3131
| **Linux** | `export https_proxy=<proxy IP>:<proxy port>` |
3232
| **MacOS** | `export https_proxy=<proxy IP>:<proxy port>` |
3333

articles/storage/common/storage-use-azcopy-v10.md

Lines changed: 28 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ To learn about a specific command, just include the name of the command (For exa
4444

4545
![Inline help](media/storage-use-azcopy-v10/azcopy-inline-help.png)
4646

47-
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.
4849
4950
## Choose how you'll provide authorization credentials
5051

@@ -62,31 +63,14 @@ Use this table as a guide:
6263

6364
The level of authorization that you need is based on whether you plan to upload files or just download them.
6465

65-
#### Authorization to upload files
66-
67-
Verify that one of these roles has been assigned to your identity:
68-
69-
- [Storage Blob Data Contributor](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-queue-data-contributor)
70-
- [Storage Blob Data Owner](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-owner)
71-
72-
These roles can be assigned to your identity in any of these scopes:
73-
74-
- Container (file system)
75-
- Storage account
76-
- Resource group
77-
- Subscription
78-
79-
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).
80-
81-
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 write permission on the target directory, and execute permission on container and each parent directory.
66+
#### Authorization to download files
8267

83-
To learn more, see [Access control in Azure Data Lake Storage Gen2](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-access-control).
68+
#### Authorization to upload files
8469

85-
#### Authorization to download files
70+
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.
8671

87-
Verify that one of these roles has been assigned to your identity:
72+
If you want to upload files, then verify that one of these roles has been assigned to your identity:
8873

89-
- [Storage Blob Data Reader](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-reader)
9074
- [Storage Blob Data Contributor](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-queue-data-contributor)
9175
- [Storage Blob Data Owner](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#storage-blob-data-owner)
9276

@@ -99,7 +83,7 @@ These roles can be assigned to your identity in any of these scopes:
9983

10084
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).
10185

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.
86+
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 write permission on the target directory, and execute permission on container and each parent directory.
10387

10488
To learn more, see [Access control in Azure Data Lake Storage Gen2](https://docs.microsoft.com/azure/storage/blobs/data-lake-storage-access-control).
10589

@@ -111,6 +95,14 @@ After you've verified that your identity has been given the necessary authorizat
11195
azcopy login
11296
```
11397

98+
If you belong to more than one organization, include the tenant ID of the organization to which the storage account belongs.
99+
100+
```azcopy
101+
azcopy login --tenant-id = <tenant-id>
102+
```
103+
104+
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.
105+
114106
This command returns an authentication code and the URL of a website. Open the website, provide the code, and then choose the **Next** button.
115107

116108
![Create a container](media/storage-use-azcopy-v10/azcopy-login.png)
@@ -143,51 +135,30 @@ To find example commands, see any of these articles.
143135

144136
## Use AzCopy in a script
145137

146-
The version of azCopy that you download by using the `https://aka.ms/downloadazcopy-v10-linux` or `https://aka.ms/downloadazcopy-v10-windows` link will be updated over time. The link remains the same, but the target of the link will point to new versions of AzCopy over time.
147-
148-
If your script downloads AzCopy by using either of these links, it could encounter issues if these links lead to new versions of AzCopy that contain changes that are not compatible with your script.
138+
Over time, the links presented in the [download section](#download-and-install-azcopy) of this article will point new versions of AzCopy. Scripts that download AzCopy by using these links might encounter issues if new versions of AzCopy remove or change features that your script depends upon.
149139

150-
You can avoid these issues by obtaining a version-specific link to AzCopy. That way, your script downloads the same exact version of AzCopy each time that it runs.
140+
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.
151141

152142
To obtain the link, run this command:
153143

154-
### Linux
155-
156-
```
157-
curl -v https://aka.ms/downloadazcopy-v10-linux
158-
```
159-
160-
### Windows
161-
162-
```
163-
(curl https://aka.ms/downloadazcopy-v10-windows -MaximumRedirection 0 -ErrorAction silentlycontinue).RawContent
164-
```
165-
166-
The Url appears in the output of this command.
167-
168-
Your script can then download AzCopy by using the version-specific URL.
169-
170-
### Linux
171-
172-
```
173-
wget -O azcopyv10.tar https://azcopyvnext.azureedge.net/release20190301/azcopy_linux_amd64_10.0.8.tar.gz
174-
tar -xf azcopyv10.tar --strip-components=1
175-
./azcopy
176-
```
144+
| Operating system | Command |
145+
|--------|-----------|
146+
| **Linux** | `curl -v https://aka.ms/downloadazcopy-v10-linux` |
147+
| **Windows** | `(curl https://aka.ms/downloadazcopy-v10-windows -MaximumRedirection 0 -ErrorAction silentlycontinue).RawContent` |
177148

178149
> [!NOTE]
179-
> `--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.
150+
> 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.
180151
181-
### Windows
152+
The Url appears in the output of this command. Your script can then download AzCopy by using that URL.
182153

183-
```
184-
Invoke-WebRequest https://azcopyvnext.azureedge.net/release20190517/azcopy_windows_amd64_10.1.2.zip -OutFile azcopyv10.zip
185-
<<Unzip here>>
186-
```
154+
| Operating system | Command |
155+
|--------|-----------|
156+
| **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` |
157+
| **Windows** | `Invoke-WebRequest https://azcopyvnext.azureedge.net/release20190517/azcopy_windows_amd64_10.1.2.zip -OutFile azcopyv10.zip <<Unzip here>>` |
187158

188159
## Use AzCopy in Storage Explorer
189160

190-
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.
161+
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. Storage Explorer uses your account key to perform operations so you won't need to provide additional authorization credentials beyond logging into Storage Explorer.
191162

192163
In Storage Explorer, choose **Preview**->**Use AzCopy for Improved Blob Upload and Download**.
193164

0 commit comments

Comments
 (0)