PowerShell support in Azure Functions@20aman May 06, 2019
PowerShell support is now available in Azure Functions. This is the feature that I have been waiting for and many others have as well. If you have any reusable functions in your PowerShell scripts, now you can run those in the Serverless way via Azure Functions. Microsoft announced that this includes native support for PowerShell Core 6 as well as the Azure Az modules.
To get started, create a new Function App in Azure. While you are creating a new one, now for the "Runtime stack" you can select "PowerShell Core" as the option.
For more information please check this link: Serverless automation using PowerShell preview in Azure Functions