Say you have a host.json file like this:
{
"version": "2.0",
"extensions": {
"serviceBus": {
"messageHandlerOptions": {
"maxConcurrentCalls": 16,
"maxAutoRenewDuration": "00:05:00"
}
}
}
}
But you wish to override the setting locally in local.settings.json
or in the settings for a given environment on Azure. Is it possible, and how do you do it?
It is possible, but poorly documented. Fabio Cavalcante describes it in a comment here .
You simply have to prefix the setting with AzureFunctionsJobHost
in your local.settings.json
file (or on Azure) like this:
{
"IsEncrypted": false,
"Values": {
"AzureFunctionsJobHost:Extensions:ServiceBus:MessageHandlerOptions:MaxConcurrentCalls": 32,
"AzureFunctionsJobHost:Extensions:ServiceBus:MessageHandlerOptions:MaxAutoRenewDuration": "00:10:00"
}
}
You can also use double underscore ( __
) instead of colon ( :
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.