How to change Azure Function App version using Azure CLI


Ahamed Fazil Buhari
Senior Developer
Published On :   08 Nov 2018
Visit Count
Today :  1    Total :   178



Hi,

In this article we will look into, how to change version of Function App using Azure CLI, to setup Azure CLI please refer my previous article How to access Azure Function App settings from Azure CLI. Once Azure CLI is setup, please follow below steps to change the version.

In my azure portal, I have function app called my-azure-fn which has version 2.0 and I need to degrade the version to v1.0.11959.0

clip_image002

Sometimes, it’s not possible to degrade version from the portal. The alternative way is, we can update the version from Azure CLI command prompt.

Run the below command and mention you function app name, resource name and version that needs to be updated.

az functionapp config appsettings set --name <fun-app-name> --resource-group <resource-name> --settings FUNCTIONS_EXTENSION_VERSION=<version-num>

clip_image004

After successful execution of above command, my-azure-fn app version has been changed to 1.0.11959.0

clip_image006

Happy Coding

Ahamed

Categories