Why does the new deployment slot from a production slot of my Function App show 'Runtime version is Error'?

Davies Nurudeen Adedeji 5 Reputation points
2024-08-09T08:19:28.0033333+00:00

I recently created a new deployment slot from an existing production slot in my Azure Function App, but the new slot is displaying an error stating that the runtime version is invalid. How can I resolve this issue and ensure the new slot is configured correctly with the appropriate runtime version?And is the runtime version error the reason I am unable to deploy into the slot?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,399 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,261 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 23,060 Reputation points
    2024-08-09T08:37:14.3+00:00

    The runtime version error is likely preventing deployments. it usually when there's a mismatch between the expected runtime version and the one configured for the slot.

    I will recommend you compare the FUNCTIONS_EXTENSION_VERSION setting in both slots and check if thery are valid versions.

    You can try CLI similar to below and replace appropriately.

    az functionapp config appsettings set --name <app-name> --resource-group <resource-group-name> --slot <slot-name> --settings FUNCTIONS_EXTENSION_VERSION=~4
    

    **
    You can mark it 'Accept Answer' and 'Upvote' if this helped you**

    Regards,

    Abiola


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.