I have created an Azure function app, from my VS Code. This function is being deployed to Azure from VScode.
While Deployment Many times it returns "Error: Deployment 'latest' not found, While Deploying the Azure Function app" or "Error: The Operation was aborted", Even I haven't aborted the Deployment. The latest version is always available to Azure there is no modification done via Azure Portal.
Are retrying few times the deployment is successful without returning any error. I have added some snapshot for better understanding.
VSCode gives such errors while deploying the function app using Command palette azure functions: deploy to function app
or Deploy to function app
due to various reasons.
In such cases, you can deploy the function to Azure Function App
using the publish command func azure functionapp publish <functionapp_name> --build remote
.
AzureWebJobsStorage
application setting in local.settings.json
(if it is missing).{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "python",
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing",
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
}
}
To run the publish command, you must have Azure function core tools installed.
If you haven't installed, open Terminal and run the command to install Core Tools:
npm i -g azure-functions-core-tools@2 --unsafe-perm true
VScode=>Terminal
and run func azure functionapp publish <functionapp_name>
.Portal: