Can't deploy python function with the module azure-identity or azure-storage-filedatalake

Ayoub Ben Yamoune 20 Reputation points
2024-04-18T09:55:12.23+00:00

I'm trying to deploy my function that I've been working on locally, whenever I add the module "azure-storage-filedatalake" or the module "azure-identity" my function doesn't appear on the function app anymore, but when I remove this line my function appears again.

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,478 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,073 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 28,381 Reputation points Microsoft Employee
    2024-04-19T01:36:18.4233333+00:00

    Hi @Ayoub Ben Yamoune,

    It sounds like to me there's a deployment error with the packages. I would check the deployment logs for any errors. I did notice the datalake module name is incorrect. It should be azure-storage-file-datalake instead of azure-storage-filedatalake, just in case that wasn't a typo. I had no issues with the function getting registered with the following requirements.txt:

    # Do not include azure-functions-worker in this file
    # The Python Worker is managed by the Azure Functions platform
    # Manually managing azure-functions-worker may cause unexpected issues
    
    azure-functions
    azure-storage-blob
    azure-identity
    azure-storage-file-datalake
    pyodbc
    python-docx
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.