Azure.AppService.IsFunctionApp#
Azure App Services function apps.
Description#
Use this selector to filter rules to only run against Azure Functions apps.
Examples#
Configure with YAML-based rules#
- Use the
with
property to setPSRule.Rules.Azure\Azure.AppService.IsFunctionApp
.
---
# Synopsis: An example rule.
apiVersion: github.com/microsoft/PSRule/v1
kind: Rule
metadata:
name: Local.MyRule
spec:
with:
- PSRule.Rules.Azure\Azure.AppService.IsFunctionApp
condition:
# Rule logic goes here
Configure with JSON-based rules#
- Use the
with
property to setPSRule.Rules.Azure\Azure.AppService.IsFunctionApp
.
{
// Synopsis: An example rule.
"apiVersion": "github.com/microsoft/PSRule/v1",
"kind": "Rule",
"metadata": {
"name": "Local.MyRule"
},
"spec": {
"with": [
"PSRule.Rules.Azure\\Azure.AppService.IsFunctionApp"
],
"condition": {
// Rule logic goes here
}
}
}
Configure with PowerShell-based rules#
- Use the
-With
parameter to setPSRule.Rules.Azure\Azure.AppService.IsFunctionApp
.
# Synopsis: An example rule.
Rule 'Local.MyRule' -With 'PSRule.Rules.Azure\Azure.AppService.IsFunctionApp' {
# Rule logic goes here
}