Freigeben über


New-PowerAppsCheckerRuleLevelOverride

This topic is pre-release documentation and is subject to change.

Constructs a new rule level override object that can be used to pass to the RuleLevelOverrides parameter of Invoke-PowerAppsChecker.

Syntax

New-PowerAppsCheckerRuleLevelOverride
   -Id <String>
   -OverrideLevel <RuleLevel>
   [<CommonParameters>]

Description

Using this cmdlet, along with the RuleLevelOverrides property of Invoke-PowerAppsChecker, you can tell the service to treat violations of a rule as a higher or lower severity level. There are no interactions with the service performed by invoking this cmdlet.

Examples

Example 1

PS C:\> $override = New-PowerAppsCheckerRuleLevelOverride -Id "meta-avoid-silverlight" -OverrideLevel High

The meta-avoid-silverlight value for the Id parameter is currently set to Medium. Using this cmdlet, along with the RuleLevelOverrides property of Invoke-PowerAppsChecker, you can tell the service to treat violations of this rule as a severity level of high.

Parameters

-Id

ID of the rule, such as -web-avoid-crm2011-service-odata. The ID can be obtained from the list of rules returned by running the Get-PowerAppsCheckerRules cmdlet.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-OverrideLevel

Level in which to override the default severity level value. This is the level in which you would like to have set in the returning report(s).

Type:RuleLevel
Accepted values:Critical, High, Medium, Low, Informational
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

Microsoft.PowerApps.Checker.PowerShell.RuleLevel

Outputs

Microsoft.PowerApps.Checker.Client.Models.Rule