How to update a particular extension of an Azure Function?

Anon4343 421 Reputation points
2023-06-06T21:47:04.2733333+00:00

After updating the host.json to include the minimum / maximum version number, I'm still getting an error that one of the extensions needs updated. This function is not stored locally nor in a Git Repository. How would I update the particular Azure extension from the Azure Portal? I've tried npm through Kudu, through Visual Studio Code... I'm missing something very simple.

Extension: Microsoft.Azure.WebJobs.Extensions.Storage

Thank you.

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

Accepted answer
  1. navba-MSFT 16,940 Reputation points Microsoft Employee
    2023-06-07T04:31:47.4633333+00:00

    @Anon4343 Thanks for reaching out to the Microsoft Q&A forum. I understand that you want to update a particular extension of an Azure Function.

    There are multiple ways you can update your function extension.

    1. Updating from Azure Portal
    2. Updating via Visual Studio.
    3. Updating function core tools (CLI)

    The above approach is covered in below article. So could you please follow the below article for updating the function app extension and check if that helps ?

    https://github.com/Azure/azure-functions-host/wiki/Updating-your-function-app-extensions

    I see that you have mentioned about updating the host.json, I hope you have added the right version within your host.json as explained here. If you want to explicitly install the extension follow ***[this article](https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings?tabs=portal#manually-install-extensions().


    You can also navigate to the Function App portal and Select Extensions under Development Tools section and check for the extensions update:

    User's image

    You may also need to restart your function app to ensure that the updated extension is loaded.

    On a side note, If you want to update the Function App runtime version itself, then you can do through Azure CLI:

    az functionapp config appsettings set --name <FUNCTION_APP> \
    --resource-group <RESOURCE_GROUP> \
    --settings FUNCTIONS_EXTENSION_VERSION=<VERSION>
    

    After following all the above suggestions, if you still face the same issue, please share the detailed error message here, so that we can assist you better.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful