-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az storage blob upload-batch returns ErrorCode:BlobAlreadyExists error v2.34.0 on upload #21477
Comments
Can confirm - this is a recent change introduced in 2.34.0, breaking several of my pipelines using azure-blob-storage-upload which uses In addition to the use case @nosvalds provided earlier, I use this action to upload nightly releases of my program to Azure. With this recent change, I have no way to work around this short of deleting the object before uploading the new asset. Reverting to 2.33.1 resolves the issue for now. |
This is an upstream bug with the Azure CLI - see Azure/azure-cli#21477 This reverts commit 44a7e79.
storage |
@calvinhzy Can you help take a look? Might be a bug introduced by track2 migration |
Hotfix is getting merged today. You can specify --overwrite to overwrite existing blobs. This is a breaking change as we believe overwriting silently is not a good default. Thanks. |
Overwrite is not working for me either, failing with:
|
You need to do |
Thanks you @DragonBale
|
I'm curious why In other words...
Most CLI parsers work in this manner, so I'm curious why azure-cli chose to approach this differently. |
The hotfix is on the way, both |
- az cli v2.34.0 introduced breaking change to prevent silent overwrites by default - Azure/azure-cli#21477 Authored-by: Mark Stokan <stokanm@vmware.com>
The storage command of azure cli needs an overwrite flag set to true since v2.34.0 see Azure/azure-cli#21477
The storage command of azure cli needs an overwrite flag set to true since v2.34.0 see Azure/azure-cli#21477
The storage command of azure cli needs an overwrite flag set to true since v2.34.0 see Azure/azure-cli#21477
The storage command of azure cli needs an overwrite flag set to true since v2.34.0 see Azure/azure-cli#21477
Azure CLI task for release pipeline is not updated to the latest version is there a workaround to make the task use the latest one? |
Which release pipeline do you mean? Is the latest version you mentioned v2.34.1? |
"
I have pinned the older 2.33.1 version in my workflows because the update to 2.34 breaks them in several different ways (newly requiring the |
Yet more breaking changes marked with 'patch' numbers. Is it so hard to follow SemVer and mark it as new release and not cause customers workloads to fail which have been working for YEARS! |
There was a breaking change in a patch release: Azure/azure-cli#21477.
There was a breaking change in a patch release: Azure/azure-cli#21477.
We will GA the --overwrite flag in May/June time frame. Thanks. |
Is anybody else getting the error It overwrites the file but it throws an exception with a warning message. Should I open a new issue? |
Adding the |
Describe the bug
Trying to upload a file to the '$web' container for a static site with
az storage blob upload-batch
from GitHub Actions is failing on the latest version of the cli v2.34.0 saying that the blob already exists. The errors says to use--overwrite
.Adding --overwrite command results in this error:
To Reproduce
Setup a GitHub Actions workflow to upload directory to a storage blob;
Expected behavior
You should be able to upload the blob and overwrite as you could before.
Environment summary
https://github.com/Azure/cli in GitHub Actions
Additional context
Specifying an older azcliversion version v2.33.1 in the workflow allow you to upload the blob.
Detailed logs from GitHub Actions:
The text was updated successfully, but these errors were encountered: