Forum Discussion
KEnglishIPTA
Jan 12, 2024Copper Contributor
az storage blob upload --data @- does not work
This works:
echo "Test" > test.txt
az storage blob upload --blob-url 'https:...' ... --file test.txt
This does not, all other arguments the same
echo "Test" | az storage blob upload --blob-url 'https:...' ... --data @-
I have tried this in WSL, PowerShell and CMD, all give the same error:
Argument '--data' is in preview and under development. Reference and support levels: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FCLI_refstatus&data=05%7C02%7Ckevin.english%40ipta.com%7C969ee98b283b430500b008dc132f1dfc%7C2173c860aa3c490f943fb3abf780ac80%7C0%7C0%7C638406340309297338%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=h%2FTNWMaCWIoF7DlvaQCAsgZSGpDyQ25eHkHwElVlkBY%3D&reserved=0
expected str, bytes or os.PathLike object, not NoneType
I really need this to work.
This is in
az cloud set --name AzureUSGovernment
with
az version
{
"azure-cli": "2.56.0",
"azure-cli-core": "2.56.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
1 Reply
Believe it is related to 'preview' and not fully support yet, like --tag hit the bug:
https://github.com/Azure/azure-cli/issues/23536