Skip to content
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

Unable to Update Deployment with azureFunctionsDeploy Due to "BlobAlreadyExists" Error #178

Closed
varenyavv opened this issue May 1, 2024 · 5 comments

Comments

@varenyavv
Copy link

Description:
After successfully deploying the initial version of my Java-based Azure Function app, I encountered difficulties updating its deployment with azureFunctionsDeploy. Each attempt resulted in a "BlobAlreadyExists" error. I am using the latest available version of this plugin (v1.15.0).

Details:
Despite ensuring that I increase the version of the JAR file generated with every gradle build, it appears that the azureFunctionsPackage task consistently creates the file with the same name. Consequently, when I execute azureFunctionsDeploy for subsequent deployments, I repeatedly encounter the following error:

com.microsoft.azure.toolkit.lib.common.exception.AzureToolkitRuntimeException:` Status code 409... BlobAlreadyExists ...

Workaround:
To mitigate this issue, I have resorted to manually deleting the blob from the java-functions-run-from-packages container before executing azureFunctionsDeploy. However, I have been unable to locate any setting within the plugin configuration that allows overwriting existing blobs.

Request for Guidance:
Could you please provide guidance on whether I am overlooking any configuration setting or best practice that would enable the plugin to overwrite existing blobs during deployment?

@varenyavv
Copy link
Author

@Flanker32 @andxu - Can you please take a look into it once?

@varenyavv
Copy link
Author

varenyavv commented May 2, 2024

Reverting to v1.11.0 resolved the issue though. But please let me know if it's a bug in the upgraded version or if there's some other way to allow blob overwrite.

@Flanker32
Copy link
Member

@varenyavv Thanks a lot for your report and sorry for the late response. We will investigate this issue soon, and update here once we get any updates

@Flanker32
Copy link
Member

@varenyavv Azure functions gradle plugin v1.16.0 has been released, which fixes this issue, could you please upgrade to the latest version and try again? Thanks again for your help!

@Raniz85
Copy link

Raniz85 commented Jun 10, 2024

Updating to 1.16.0 resolved this issue for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants