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