Skip to content

Modifying the host.json file for a Function App using Bicep? #8518

Answered by SimonWahlin
jonade asked this question in Q&A
Discussion options

You must be logged in to vote

I dont think you can modify the host.json file using ARM or bicep since it's part of you code deployment.

However, you can override individual values in host.json with appsettings. This is described here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#override-hostjson-values

You can either set appsettings as part of your sites-resource, like they do here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-bicep?tabs=CLI

Or you can deploy appsettings using a child resource like I do here: https://github.com/SimonWahlin/TwitchLiveNotifications_Template/blob/main/templates/modules/functionApp-appSettings.bicep

Remember that y…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jonade
Comment options

@pinakighatak
Comment options

Answer selected by jonade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants