title: Bicep - How to initialize app files of PowerShell Azure Function (e.g. requirements.psd1)?
body: <p>We are using <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview" rel="nofollow noreferrer">Bicep</a> to create an Azure Function App running a PowerShell function. This works well, except one detail.</p>
  <p>Part of the function app definition are app files that we need to initialize upon creation, specifically <em>requirements.psd1</em>, where required modules are listed:</p>
  <p><a href="https://i.stack.imgur.com/QPJC4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QPJC4.png" alt="enter image description here" /></a></p>
  <p>Can this be done in a Bicep file? If yes: how? If not: what is the recommended way of doing it?</p>
  <p>(We are using Azure CLI with Bicep (<code>az bicep</code>), so a solution in that context would be nice.)</p>