This example creates a collection with one rule. All traffic that matches the conditions identified in $rule1 will be allowed.
The first rule is for all HTTPS traffic on port 443 from 10.0.0.0.
If there is another application rule collection with higher priority (smaller number) which also matches traffic identified in $rule1,
the action of the rule collection with higher priority will take in effect instead.
This example creates a new application rule collection with one rule and then adds a second rule to the rule collection using method
AddRule on the rule collection object. Each rule name in a given rule collection must have a unique name and is case insensitive.
This example creates a new application rule collection with one rule and then gets the rule by name, calling method GetRuleByName on the
rule collection object. The rule name for method GetRuleByName is case-insensitive.
This example creates a new application rule collection with two rules and then removes the first rule from the rule collection by calling method
RemoveRuleByName on the rule collection object. The rule name for method RemoveRuleByName is case-insensitive.
Parameters
-AcquirePolicyToken
Acquire an Azure Policy token automatically for this resource operation.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.