This commit is contained in:
Bernie White 2019-06-20 10:14:51 +08:00 коммит произвёл GitHub
Родитель 37d536c016
Коммит 36df6b2ac3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -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
'@