Soru

Zorluk: KolayManage Data Movement using AzCopy and Storage Explorer

You need to upload a local file to an Azure Blob storage container using AzCopy. You plan to use Microsoft Entra ID authentication instead of a Shared Access Signature (SAS) token. Arrange the steps in the correct sequence to perform this upload.

  1. 1Assign the Storage Blob Data Contributor role to your user account for the target storage account.
  2. 2Run the `azcopy login` command from the command line and complete the authentication process.
  3. 3Run the `azcopy copy` command with the local file path as the source and the container URL as the destination.

Cevap

The correct sequence is: first assign the Storage Blob Data Contributor role, then log in using the `azcopy login` command, and finally execute the transfer using the `azcopy copy` command.
To perform a file upload using AzCopy with Microsoft Entra ID authentication, you must first ensure your user account has the required data plane permissions (such as Storage Blob Data Contributor). Then, you must authenticate the tool session by running `azcopy login`. Once logged in, you can run `azcopy copy` to copy the file to the destination URL.

Adım Adım Çözüm

1
Assign the Storage Blob Data Contributor role to the administrator's user account.
The administrator's identity is authorized to perform data plane operations on the blob container.
Microsoft Entra ID authentication requires specific data plane RBAC roles. Management-plane roles like Owner or Contributor do not grant data plane access by default.
2
Run `azcopy login` and authenticate.
An active authenticated command-line session is established.
Before performing any commands that rely on Microsoft Entra ID authentication, the AzCopy tool must be logged in using your identity.
3
Run `azcopy copy` with the source and destination paths.
The local file is successfully uploaded to the destination blob container.
The copy command runs under the context of the logged-in identity to write the file to the container.

Anahtar Kavram

Microsoft Entra ID Authentication Sequence for AzCopy
Bu soruyu puanla