How to generate a App Key for Function App using Bicep

Malik, A (Abdul) 1 Reputation point
2022-11-11T13:47:40.417+00:00

Hi,

I want to create a custom App Key/Host key when creating a new funtion app using Bicep, how do I do this please because I can't seem to locate it on the Bicep Reference page: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites?pivots=deployment-language-bicep

259429-azure.jpg

Thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MikeUrnun 9,777 Reputation points Moderator
    2022-11-11T18:28:52.177+00:00

    Hi @Malik, A (Abdul) - Thanks for posting on MS Q&A!

    The reference page for creating Host Keys using Bicep is located here: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/functions/keys?pivots=deployment-language-bicep

    When including this in your Bicep file, it is important to correctly reference the parent resource and make sure all of the properties have valid values.

    UPDATE:
    The sample on the doc reference above is incorrect and will not work. Please see the answer posted on the following thread for the correct sample: https://learn.microsoft.com/en-us/answers/questions/1085574/index.html

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.