зеркало из https://github.com/microsoft/PSRule.git
Родитель
37d536c016
Коммит
36df6b2ac3
|
@ -162,7 +162,7 @@ Filter output to only show rules with a specific outcome.
|
|||
Type: RuleOutcome
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: Pass, Fail, Error, None
|
||||
Accepted values: Pass, Fail, Error, None, Processed, All
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
|
|
|
@ -118,6 +118,8 @@ Rule 'storageAccounts.UseHttps' -If { $TargetObject.ResourceType -eq 'Microsoft.
|
|||
}
|
||||
```
|
||||
|
||||
Skipped rules have the outcome `None` and are not included in output by default. To include skipped rules use the `-Outcome All` parameter.
|
||||
|
||||
## Execute rules
|
||||
|
||||
With a rule defined, the next step is to execute it. To execute rules, pipe the target object to `Invoke-PSRule`.
|
||||
|
|
|
@ -5,6 +5,6 @@ ConvertFrom-StringData @'
|
|||
PathNotFound=Path not found
|
||||
RulePathNotFound=No matching .Rule.ps1 files were found. Rule definitions should be saved into script files with the .Rule.ps1 extension.
|
||||
YamlContainsComments=The YAML options file contains comments. Comments will be lost if you choose to continue. To overwrite comments use the -AllowClobber switch.
|
||||
KeywordOutsideEngine=This keyword can only be called within PSRule. To call rules use Invoke-PSRule.
|
||||
KeywordOutsideEngine=This keyword can only be called within PSRule. Add rule definitions to .Rule.ps1 files, then execute them with Invoke-PSRule or Test-PSRuleTarget.
|
||||
###PSLOC
|
||||
'@
|
||||
|
|
|
@ -5,6 +5,6 @@ ConvertFrom-StringData @'
|
|||
PathNotFound=Path not found
|
||||
RulePathNotFound=No matching .Rule.ps1 files were found. Rule definitions should be saved into script files with the .Rule.ps1 extension.
|
||||
YamlContainsComments=The YAML options file contains comments. Comments will be lost if you choose to continue. To overwrite comments use the -AllowClobber switch.
|
||||
KeywordOutsideEngine=This keyword can only be called within PSRule. To call rules use Invoke-PSRule.
|
||||
KeywordOutsideEngine=This keyword can only be called within PSRule. Add rule definitions to .Rule.ps1 files, then execute them with Invoke-PSRule or Test-PSRuleTarget.
|
||||
###PSLOC
|
||||
'@
|
||||
|
|
|
@ -5,6 +5,6 @@ ConvertFrom-StringData @'
|
|||
PathNotFound=Path not found
|
||||
RulePathNotFound=No matching .Rule.ps1 files were found. Rule definitions should be saved into script files with the .Rule.ps1 extension.
|
||||
YamlContainsComments=The YAML options file contains comments. Comments will be lost if you choose to continue. To overwrite comments use the -AllowClobber switch.
|
||||
KeywordOutsideEngine=This keyword can only be called within PSRule. To call rules use Invoke-PSRule.
|
||||
KeywordOutsideEngine=This keyword can only be called within PSRule. Add rule definitions to .Rule.ps1 files, then execute them with Invoke-PSRule or Test-PSRuleTarget.
|
||||
###PSLOC
|
||||
'@
|
||||
|
|
Загрузка…
Ссылка в новой задаче