Open vjraitila opened 1 year ago
The API unfortunately does not give anything more than a 409 Conflict message, which can be for various reasons.
Can you just deploy from Rider without the WEBSITE_RUN_FROM_PACKAGE
setting?
If I drop the WEBSITE_RUN_FROM_PACKAGE
setting from app configuration, and clean up the function-releases
container from the storage account, the deployment from Rider will obviously succeed.
But what if I want to run the function app from a package?
Rider uses zip deployment, other options are not supported
They are not mutually exclusive. Having an app run from a package still relies on zip deploy.
Encountered similar issue with (almost) same conditions. When deploying to Azure functions on Linux (.net 8), consumer plan, rider deployment stops the functions app - which, in turn, results in "broken-pipe" error during deployment. Verbose output from AZ CLI deployment indicates that a related sub-tool reports error 401 during deployment - might be caused by same whacky error code. Build #RD-241.14494.325, built on April 16, 2024 And one more thing - AZ CLI docs indicate, that linux/consumption are "special" - they don't have kudu, so the deployment package path must be configured after deployment (https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/azure-functions/run-functions-from-deployment-package.md#benefits-of-running-from-a-package-file , see the consumption/os table) - hopefuly could be useful to fixing the issue
The Rider plugin fails to deploy to a Function App configured to use WEBSITE_RUN_FROM_PACKAGE. This setting is the default for e.g. the Azure Functions extension within VS Code.
STEPS TO REPRODUCE
EXPECTED RESULTS
The project is successfully deployed.
ACTUAL RESULTS
Rider fails to deploy with a non-helpful error message.