PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

Upgrade PowerShell Functions to 7.2 or greater

Open BernieWhite opened this issue 3 years ago • 0 comments

Rule request

Suggested rule change

Add a new rule Azure.Function.PowerShellVersion to configure a minimum version of PowerShell with Azure Functions. Also host version ~4 is required.

Only applies to Azure Functions sites with:

  • FUNCTIONS_WORKER_RUNTIME set to powershell

The selector Azure.AppService.IsFunctionApp can be used to only target function apps.

Rule recommendation will be similar to:

  • https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.AppService.NETVersion/
  • https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.AppService.PHPVersion/

Applies to the following

The rule applies to the following:

  • Resource type: Microsoft.Web/sites and Microsoft.Web/sites/slots

Additional context

BernieWhite avatar Oct 04 '22 05:10 BernieWhite