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