Prewords
In this article, I explain a technique that allows embedding PowerShell modules in Azure Function based on the Flex Consumption plan.
The fully working example is available in my GitLab project , you can find an example.
There is a requiredModules.ps1 file that defines the requirements:
# requiredModules.ps1
# List the modules that will be embedded into Azure Function App deployment
$requiredModules = @{
"Az.Accounts" = "3.0.5"
}
And there is a installModules.ps1 PowerShell script that is expected to be used in
SOCIAL SHARE CARD GENERATOR