I have created a Timer Trigger Azure Function using PowerShell as the programming langauge.
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.
Get-Module -ListAvailable -Name *Azure*
The returned result is as below without the versions.

So the question is what should/could I do in the Azure Function to get the Azure PowerShell modules and versions?
Note: The same PowerShell code running on local Windows PowerShell is able to list the Azure PowerShell modules name, version and other details.