Search code examples
azure-storageazure-cli

Azure CLI returns error on Storage access


I'm on a Linux machine trying to use the Azure CLI az to list storages

az storage blob list --container-name <name> --account-name <name> --account-key <key>

when executing it returns the error

azure.common.AzureHttpError: One of the request inputs is out of range. ErrorCode: OutOfRangeInput
<?xml version="1.0" encoding="utf-8"?><Error><Code>OutOfRangeInput</Code><Message>One of the request inputs is out of range.
RequestId:bf2b4b1d-401e-0055-1678-d80520000000
Time:2019-03-12T02:08:42.4135303Z</Message></Error>

I can't find any documentation that explains the error?


Solution

  • I can reproduce your issue, make sure your --account-name is in lowercase, e.g. it should be --account-name 'teststorage', not --account-name 'Teststorage'.

    enter image description here

    enter image description here