Azure Function ( Python ) fails with error

ABHIJIT KAKADE 0 Reputation points
2025-07-08T05:45:39.4133333+00:00

We do have deployed Azure Python function as part of our solution. Suddenly its stopped working. Getting below error messages on its function overview page.

Python version - 3.12

still its giving error on this function as below:

User's image

You are receiving this email because you have been identified as a customer using Azure Functions who may encounter issues with Python functions that utilize the azure-identity or cryptography modules. These problems, such as missing functions or "module not found" errors, have been affecting customers who released or updated their Function App code after November 27th, 6 PM UTC, due to recent changes in the cryptography module by its maintainers. <h3>Recommended action</h3> To resolve this issue, please consider one of the following workarounds: <ol> <li>Retry performing the deployment using the Remote Build: Deployment technologies in Azure Functions </li> <li>In case you are using Azure Pipelines please change the vmImageName tag from “ubuntu-latest” to “ubuntu-20.04” for your yaml file- please refer to Microsoft-hosted agents for Azure Pipelines - Azure Pipelines </li> <li>Pin the cryptography module to the previous version (cryptography==43.0.3 ) in your requirements.txt file. After making this change, redeploy your Azure Function. For more details, refer to Cryptography module released 44.0.0 update on 11/27 causing issues in the use of azure-identity with error listed "GLIBC_2.33" not found in azure functions · Issue #38725 · Azure/azure-sdk-for-python </li> </ol> <h3>More information</h3> If you have questions, get answers from community experts in Microsoft Q&A. If you have a support plan and you need technical help, create a support request: <ol> <li>Under Issue type, select <b>Technical</b>.</li> <li>Under Subscription, select your subscription.</li> <li>Under Service, click <b>My services</b>, then select <b>Function App</b>.</li> <li>Under Summary, type a description of your issue.</li> <li>Under Problem type, select <b>Application code deployment</b>.</li> <li>Under Problem subtype, select <b>Application issues post deployment</b>.</li> </ol>

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Krishna Chowdary Paricharla 2,915 Reputation points Microsoft External Staff Moderator
    2025-07-08T05:54:03.67+00:00

    Hello ABHIJIT KAKADE •,

    The Azure Python Function is failing due to a known issue caused by the latest version of the cryptography module (v44.0.0 and above), which requires a newer version of the Linux system library GLIBC_2.33. This version is not currently available in the Azure Functions runtime environment. As a result, any Azure Function using packages like azure-identity or others that depend on cryptography may fail with module errors or runtime crashes.

    1. Pin the cryptography package version:
      • Modify your requirements.txt file to include:
             ini
             Copy
             cryptography==43.0.3
        
      • This version is stable and compatible with the Azure Functions runtime.
      • After updating, redeploy the function.

    Following these steps should resolve the error and restore your function's operation.

    For your reference, please follow below documentation:

    Cryptography Version

    Hope this helps!


Your answer

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