Unable to upload a new project to the locker when using EntraID

Mario Vicente Quinto (Ascendion Inc) 60 Reputation points Microsoft External Staff
2026-01-14T18:24:11.7533333+00:00

CycleCloud is up to date with the version 8.8.1.  

Other commands on cyclecloud-cli works as expected, except the upload project that shows this error: > cyclecloud project upload sweden-sub-storage **** Error: Unexpected command failure: [WinError 5] Access is denied

This does not happen when EntraID is disabled.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Answer accepted by question author
  1. VEMULA SRISAI 7,875 Reputation points Microsoft External Staff Moderator
    2026-01-14T19:05:26.4333333+00:00

    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:

    1. Run CLI as Administrator and ensure your project folder is accessible.
    2. 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.
        1. Re-authenticate the CLI with Entra ID and confirm your config matches the locker settings.

    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:

    1. Install AzCopy v10 and ensure it’s executable:
    • Run CLI as Administrator (elevated PowerShell or CMD) to avoid UAC restrictions.
    1. 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.

    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


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.