How to access Azure Function App settings from Azure CLI


Ahamed Fazil Buhari
SharePoint Developer
Published On :   01 Nov 2018
Visit Count
Today :  2    Total :   141



In this article we will see how to access your Azure portal especially Azure functions app settings from your machine using Azure CLI command prompt. This is one of the easy ways to access and check for the settings in your azure functions and if we need to update or delete, then we can do it from here. If you do not have Azure CLI in your machine, please refer here to install it. Once it is installed please follow the below steps to access your azure function app.

Step 1: Open Azure CLI command prompt and set login. Enter the below command

az login

clip_image002

clip_image004

It will open browser for login,

clip_image005

Once an account is picked, it will redirect to below page and Azure CLI will be connected

clip_image007

If you are behind proxy, then you will get the below error

clip_image009

Step 2: Setting proxy for Azure CLI, to set proxy use the below command before login

set HTTP_PROXY=http://proxyurl

set HTTPS_PROXY=http://proxyurl

clip_image011

Step 3: We successfully logged in to your azure account. Now to check function app settings please run the below command.

az functionapp config appsettings list --name <appName> --resource-group <resourceName>

I have already created azure function from portal and my appName is my-azure-fn and my resource group name also my-azure-fn

clip_image013

clip_image014

Well, here you can see all the basic configuration settings of our function app like version, storage account name and so on. To see more commands for other functionalities like delete, update function app then we can get it from here. In the next article we’ll see how to update Function App version using Azure CLI. Thank you for reading.

Happy Coding

Ahamed

Categories