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.
- 1Assign the Storage Blob Data Contributor role to your user account for the target storage account.
- 2Run the `azcopy login` command from the command line and complete the authentication process.
- 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
Anahtar Kavram
Microsoft Entra ID Authentication Sequence for AzCopy