Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does IsEncrypted in local.appsettings.json of Azure function mean?

The local.settings.json file for Azure function is created with the property IsEncrypted set to false.

{
   "IsEncrypted":false,
   "Values" : {
   }
}

What does this setting mean and how is it used?

like image 434
Martin Staufcik Avatar asked Jan 23 '19 15:01

Martin Staufcik


People also ask

How do I add local settings json to Azure function?

In your project, open the local. settings. json file and set the value of the AzureWebJobsStorage key to the connection string you copied. Repeat the previous step to add unique keys to the Values array for any other connections required by your functions.

What is host json in Azure functions?

The host. json file is a configuration file containing the values that affect all the functions of a function app. This file is created as soon as we add an Azure Function project. This file will have at least one field to begin with, indicating the runtime version of Azure Functions.

Where is function json in Azure function?

Folder structure. The code for all the functions in a specific function app is located in a root project folder that contains a host configuration file. The host. json file contains runtime-specific configurations and is in the root folder of the function app.

How do I increase the timeout on my azure function?

json. In a recent update, the Azure Functions team at Microsoft has added a configuration option that enables an Azure Functions App to have the timeout increased. To implement this, the functionTimeout property within the host. json file for an Azure Function App can be set to a timespan duration of 10 minutes.


1 Answers

This setting represents whether the values in local.settings.json are encrypted using a local machine key. It's used with func settings encrypt/decrypt/add command of Azure Function Core Tools, hence manually change true/false is meaningless.

Usually we don't need to care about this setting and it's false by default. We can encrypt the settings file once we need to transfer it through internet and want to enforce the security. Because the file can only be decrypted at the machine where we encrypt it.

Here's the doc.

like image 168
Jerry Liu Avatar answered Oct 06 '22 11:10

Jerry Liu