Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure function - "Did not find any initialized language workers"

I'm running an Azure function in Azure, the function gets triggered by a file being uploaded to blob storage container. The function detects the new blob (file) but then outputs the following message - Did not find any initialized language workers.

Setup:

  • Azure function using Python 3.6.8
  • Running on linux machine
  • Built and deployed using azure devops (for ci/cd capability)
  • Blob Trigger Function

I have run the code locally using the same blob storage container, the same configuration values and the local instance of the azure function works as expected.

The functions core purpose is to read in the .xml file uploaded into blob storage container and parse and transform the data in the xml to be stored as Json in cosmos db.

I expect the process to complete like on my local instance with my documents in cosmos db, but it looks like the function doesn't actually get to process anything due to the following error:

Did not find any initialized language workers

like image 630
nathan shumoogum Avatar asked Jul 01 '19 08:07

nathan shumoogum


People also ask

Did not find any initialized language workers Python Azure function?

This is due to SDK version, I would suggest to deploy fresh function App in Azure and deploy your code there. 2 things to check : Make sure your local function app SDK version matches with Azure function app.

What is AzureWebJobsStorage?

AzureWebJobsStorage. The Azure Functions runtime uses this storage account connection string for normal operation. Some uses of this storage account include key management, timer trigger management, and Event Hubs checkpoints. The storage account must be a general-purpose one that supports blobs, queues, and tables.

What is dotnet isolated?

A . NET isolated function project is basically a . NET console app project that targets a supported . NET runtime.


1 Answers

This is due to SDK version, I would suggest to deploy fresh function App in Azure and deploy your code there. 2 things to check :

  1. Make sure your local function app SDK version matches with Azure function app.
  2. Check python version both side.
like image 170
Harish Avatar answered Sep 19 '22 22:09

Harish