0

I have a Powershell CRUD script that I am trying to run using Azure Function on periodic basis in order to test the resource provider is working correctly. I am assuming this is done by using a Timer Trigger. Has anyone done something similar? If so, can I please see an example?

starball
  • 20,030
  • 7
  • 43
  • 238
A. Lee
  • 1
  • Yes you would use the Timer Trigger: [Create a function in the Azure portal that runs on a schedule](https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-scheduled-function) – HAL9256 Aug 31 '22 at 20:32
  • Here is the [PowerShell Azure Functions Reference](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-powershell) for running the PS Script with Timer Trigger –  Sep 02 '22 at 03:44

1 Answers1

0

I have reproduced in my environment, I have opted PowerShell core in runtime stack, then I created the PowerShell Function as below:

enter image description here

Then I have read the available list of modules.
Get-Module -ListAvailable. I have set the Timer Trigger for every one minute and the result is below:

enter image description here

RithwikBojja
  • 5,069
  • 2
  • 3
  • 7