An administrator needs to synchronize a local directory named C:\Logs to a blob container named applogs in an Azure storage account. Shared key access is disabled on the storage account. The storage account firewall is configured to allow access only from selected networks, and the administrator's workstation public IP address is allowed. The synchronization must meet the following requirements:
- Only files with the .log extension must be synchronized.
- Any files in the destination container that do not exist in the source directory must be deleted automatically.
Which two actions or parameters should the administrator use? (Select two.)
- Include the --include-pattern "*.log" parameter in the azcopy sync command.Cevap
- Include the --delete-destination "true" parameter in the azcopy sync command.Cevap
- CAssign the Owner role to the administrator's Microsoft Entra ID account at the storage account level.
- DAuthenticate by appending a Shared Access Signature (SAS) token with a 365-day expiration window to the destination URL.
- EConfigure the storage account firewall to disable the 'Allow trusted Microsoft services to access this storage account' setting.
Cevap
Include the --include-pattern "*.log" and --delete-destination "true" parameters in the azcopy sync command.
To synchronize the directory while filtering by extension and deleting orphaned files at the destination, the command must use the --include-pattern "*.log" flag to isolate log files, and the --delete-destination "true" flag to remove non-existent files. Because shared key access is disabled, the administrator must authenticate using Microsoft Entra ID.
Adım Adım Çözüm
Anahtar Kavram
Synchronizing files to Azure Blob Storage using AzCopy with file filters, destination cleanup, and Microsoft Entra ID authorization.