Skip to content

Commit 9ebe9e1

Browse files
Merge pull request #250382 from normesta/azcopy
Fixing content as per a GitHub issue
2 parents c15ee94 + 0711a93 commit 9ebe9e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/storage/common/storage-use-azcopy-authorize-azure-active-directory.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: You can provide authorization credentials for AzCopy operations by
44
author: normesta
55
ms.service: azure-storage
66
ms.topic: how-to
7-
ms.date: 04/01/2021
7+
ms.date: 09/05/2023
88
ms.author: normesta
99
ms.subservice: storage-common-concepts
1010
---
@@ -170,10 +170,10 @@ $env:AZCOPY_SPA_CERT_PASSWORD="$(Read-Host -prompt "Enter key")"
170170
Next, type the following command, and then press the ENTER key.
171171

172172
```azcopy
173-
azcopy login --service-principal --certificate-path <path-to-certificate-file> --tenant-id=<tenant-id>
173+
azcopy login --service-principal --application-id application-id --certificate-path <path-to-certificate-file> --tenant-id=<tenant-id>
174174
```
175175

176-
Replace the `<path-to-certificate-file>` placeholder with the relative or fully qualified path to the certificate file. AzCopy saves the path to this certificate but it doesn't save a copy of the certificate, so make sure to keep that certificate in place. 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.
176+
Replace the `<application-id>` placeholder with the application ID of your service principal's app registration. Replace the `<path-to-certificate-file>` placeholder with the relative or fully qualified path to the certificate file. AzCopy saves the path to this certificate but it doesn't save a copy of the certificate, so make sure to keep that certificate in place. 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.
177177

178178
> [!NOTE]
179179
> Consider using a prompt as shown in this example. That way, your password won't appear in your console's command history.
@@ -276,12 +276,13 @@ Type the following command, and then press the ENTER key.
276276

277277
```bash
278278
export AZCOPY_AUTO_LOGIN_TYPE=SPN
279+
export AZCOPY_SPA_APPLICATION_ID=<application-id>
279280
export AZCOPY_SPA_CERT_PATH=<path-to-certificate-file>
280281
export AZCOPY_SPA_CERT_PASSWORD=<certificate-password>
281282
export AZCOPY_TENANT_ID=<tenant-id>
282283
```
283284

284-
Replace the `<path-to-certificate-file>` placeholder with the relative or fully qualified path to the certificate file. AzCopy saves the path to this certificate but it doesn't save a copy of the certificate, so make sure to keep that certificate in place. Replace the `<certificate-password>` placeholder with the password of the certificate. 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.
285+
Replace the `<application-id>` placeholder with the application ID of your service principal's app registration. Replace the `<path-to-certificate-file>` placeholder with the relative or fully qualified path to the certificate file. AzCopy saves the path to this certificate but it doesn't save a copy of the certificate, so make sure to keep that certificate in place. Replace the `<certificate-password>` placeholder with the password of the certificate. 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.
285286

286287
> [!NOTE]
287288
> Consider using a prompt to collect the password from the user. That way, your password won't appear in your command history.

0 commit comments

Comments
 (0)