Forum Discussion

___John_L_'s avatar
___John_L_
Copper Contributor
Jul 01, 2025
Solved

[newbie] Can I access files in a given storage account via the Azure Cloud Shell CLI filesystem?

Can I access "these" files "there", or are the filesystems completely separate? Or is there a CLI command to link the two?   Thanks in advance for any insight you can provide.
  • Kidd_Ip's avatar
    Jul 02, 2025

    Yes you can but not directly through Cloud Shell's native filesystem:

     

    1. Use Azure CLI to connect to the storage account:

       az storage account show --name <yourStorageAccount> --resource-group <yourResourceGroup>

    2. List containers or blobs:

       az storage container list --account-name <yourStorageAccount>

       az storage blob list --account-name <yourStorageAccount> --container-name <yourContainer>

    3. Download or upload files:

       az storage blob download --account-name <yourStorageAccount> --container-name <yourContainer> --name <blobName> --file <localFilePath>

       az storage blob upload --account-name <yourStorageAccount> --container-name <yourContainer> --name <blobName> --file <localFilePath>

    4. Mount a file share (if using Azure Files):

       az storage share list --account-name <yourStorageAccount>

Resources