azure-functions

Joblib.load error: No module named 'scipy.sparse._csr'

Joblib.load error: No module named 'scipy.sparse._csr' Question: Python version: 3.7 (I have to use this version) OS: Linux Cloud Platform: Azure Resource: Azure function with python Goal: Load a model created with skit-learn version 1.0.2 with the following dependencies installed: numpy: 1.17.3 joblib: 1.1.0 scipy: 1.7.3 I am using joblib to load a skit-learn model …

Total answers: 2

What is a valid binding name for azure function?

What is a valid binding name for azure function? Question: When I try to run the azure function defined below, I get the following error log The ‘my_function’ function is in error: The binding name my_function_timer is invalid. Please assign a valid name to the binding. What is the format of a valid binding name …

Total answers: 1

Playwright azure function doesn't install chromium Python based

Playwright azure function doesn't install chromium Python based Question: I tried to execute an azure function based on Python and get this problem PLAYWRITH_BROWSERS_PATH=0 is already set, also I tried put playwright install on requeriments.txt but it doesn’t work either. I’ve thinking in add a task in tasks.json on .vscode path but I don’t know …

Total answers: 2

No resources of this type found under this subscription Azure Logic Apps

No resources of this type found under this subscription Azure Logic Apps Question: I tried to create a workflow using Azure Logic Apps, I used Recurrence as my trigger (Daily) and Azure Function (Timer Trigger) as my Process to create some dataframe and export to csv, and both of them Dataframe, and CSV file need …

Total answers: 2

Running Azure Functions with VS Code instanlty fails with ECONNREFUSED

Running Azure Functions with VS Code instanlty fails with ECONNREFUSED Question: Yesterday I could run and debug my Azure Function project with VS Code. Today, when I’m hitting F5 ("Start Debugging"), a pop-up instantly appears with connect ECONNREFUSED 127.0.0.1:9091 I believe it’s a network issue, since VS Code doesn’t even open a terminal displaying "Executing …

Total answers: 3

save excel file stream to azure blob storage

save excel file stream to azure blob storage Question: I programmed a few lines of code in Python which opens an Excel file from a Azure Blob Storage with the openpyxl-library. The code is running in Azure Functions. After a few modifications on the content, I will create a second workbook and copy the content …

Total answers: 2

base64 to json property in Python

base64 to json property in Python Question: I have the following code: data = open(‘/tmp/books_read.png’, "rb").read() encoded = base64.b64encode(data) retObj = {"groupedImage": encoded} return func.HttpResponse( json.dumps(retObj), mimetype="application/json", status_code=200) … and it throws the following error: Object of type bytes is not JSON serializable Stack May I know how do I fix this? Asked By: MatnikR …

Total answers: 3

How to trigger a Azure Function with parameters from a POST request

How to trigger a Azure Function with parameters from a POST request Question: I need to send a POST request (with user captured data) to azure function and I would like Azure function to use this as parameters and run. I can see there are many ways to trigger an Azure function in the docoumentation …

Total answers: 3

Get current InvocationId or operation_Id

Get current InvocationId or operation_Id Question: Is there a way to have one complete output log with custom_dimensions? I see in the monitor tab (of Azure Functions) that only messages with operation_Id and customDimensions[‘InvocationId’] are shown. Is there a way to add these two parameters all the log-messages from opencensus? I know you can use …

Total answers: 2

How to restrict access to an azure function based on a service principal id

How to restrict access to an azure function based on a service principal id Question: I have a REST API implemented as an Azure function with Azure Active Directory authentication enabled. I would like to restrict the access to a subset of of the exposed methods to a particular set of service principals. So far …

Total answers: 2