An administrator needs to automate a nightly upload of backup files from an on-premises server to an Azure Storage account named `stbackup2026`. The storage account has shared key access disabled to comply with company security policies. You plan to use AzCopy with a Microsoft Entra ID service principal to perform the transfer.
Which sequence of steps should the administrator perform to configure and run the daily upload process?
- 1Create a Microsoft Entra ID service principal.
- 2Assign the Storage Blob Data Contributor role to the service principal at the scope of the destination storage account.
- 3Run the `azcopy login` command using the service principal's application ID, tenant ID, and client secret.
- 4Run the `azcopy copy` command using the local path as the source and the target blob container URL as the destination.
Cevap
Create a service principal, assign the Storage Blob Data Contributor role to it, run azcopy login using the service principal, and then run azcopy copy to upload the files.
The correct sequence is to create the service principal first, assign the required role (Storage Blob Data Contributor) to the service principal, log in to the AzCopy session using the service principal credentials, and finally execute the copy command.
Adım Adım Çözüm
Anahtar Kavram
Configuring secure data movement with AzCopy using Microsoft Entra ID authentication and role-based access control (RBAC)
Tahmini Süre:2m 0s