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