Hello Mario Vicente Quinto (Ascendion Inc) ,
The error WinError 5: Access is denied usually points to a local permission or authentication mismatch when Entra ID is enabled.
Recommended steps:
- Run CLI as Administrator and ensure your project folder is accessible.
- Check the locker’s authentication mode:
- If using Managed Identity, confirm the identity has Storage Blob Data Contributor on the storage account.
- If using Shared Access Key, verify key access is allowed.
- Re-authenticate the CLI with Entra ID and confirm your config matches the locker settings.
- If using Managed Identity, confirm the identity has Storage Blob Data Contributor on the storage account.
If it still fails, run:
cyclecloud --loglevel=DEBUG project upload sweden-sub-storage
and share the output for deeper analysis.
The Entra ID authentication looks fine—the CLI successfully retrieves tokens and locker credentials. The failure occurs when CycleCloud tries to launch AzCopy via subprocess.call, and Windows returns WinError 5: Access is denied. This is a local execution issue, not an Entra ID token problem.
How to fix:
- Install AzCopy v10 and ensure it’s executable:
- Download from https://aka.ms/downloadazcopy-v10-windows.
- Add the folder to your PATH or configure CycleCloud to point to the correct
azcopy.exe.- Verify with: azcopy --version
- Add the folder to your PATH or configure CycleCloud to point to the correct
- Download from https://aka.ms/downloadazcopy-v10-windows.
- Run CLI as Administrator (elevated PowerShell or CMD) to avoid UAC restrictions.
- Confirm the locker’s authentication mode:
- If using Managed Identity, ensure the identity has Storage Blob Data Contributor on the storage account.
- If using Shared Access Key, verify key access is allowed.
- If using Managed Identity, ensure the identity has Storage Blob Data Contributor on the storage account.
After installing AzCopy and running elevated, retry:
cyclecloud project upload Sweden-sub-storage
For your reference:
Copy or move data to Azure Storage by using AzCopy v10 | Microsoft Learn
Storage - Blobs and Lockers - Azure CycleCloud | Microsoft Learn
Using Managed Identities - Azure CycleCloud | Microsoft Learn