title: How to get Azure PowerShell modules versions listing running in a Azure Function?
body: <p>I have created a Timer Trigger Azure Function using PowerShell as the programming langauge.</p>
  
  <p>I want to know what are the Azure PowerShell modules and their respective versions available in the Azure Function PowerShell environment. I try to use the PowerShell code below to get what I want.</p>
  
  <pre><code>Get-Module -ListAvailable -Name *Azure*
  </code></pre>
  
  <p>The returned result is as below without the versions.
  <a href="https://i.stack.imgur.com/kx5x0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kx5x0.png" alt="enter image description here"></a></p>
  
  <p>So the question is what should/could I do in the Azure Function to get the Azure PowerShell modules and versions?</p>
  
  <p><strong>Note: The same PowerShell code running on local Windows PowerShell is able to list the Azure PowerShell modules name, version and other details.</strong></p>