你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzSecurityConnectorActionableRemediationObject
Create an in-memory object for ActionableRemediation.
Syntax
New-AzSecurityConnectorActionableRemediationObject
[-BranchConfiguration <ITargetBranchConfiguration>]
[-CategoryConfiguration <ICategoryConfiguration[]>]
[-InheritFromParentState <String>]
[-State <String>]
[<CommonParameters>]
Description
Create an in-memory object for ActionableRemediation.
Examples
Example 1: Create new ActionableRemediation object
New-AzSecurityConnectorActionableRemediationObject -State Enabled -InheritFromParentState Disabled `
-BranchConfiguration @{AnnotateDefaultBranch="Enabled"; branchName=@("main", "hotfix")} -CategoryConfiguration @( @{category="First"; minimumSeverityLevel="High"}, @{category="Second"; minimumSeverityLevel="Low"})
BranchConfiguration : {
"branchNames": [ "main", "hotfix" ],
"annotateDefaultBranch": "Enabled"
}
CategoryConfiguration : {{
"minimumSeverityLevel": "High",
"category": "First"
}, {
"minimumSeverityLevel": "Low",
"category": "Second"
}}
InheritFromParentState : Disabled
State : Enabled
Parameters
-BranchConfiguration
Repository branch configuration for PR Annotations.
Type: | ITargetBranchConfiguration |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CategoryConfiguration
Gets or sets list of categories and severity levels.
Type: | ICategoryConfiguration[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InheritFromParentState
Update Settings.
Enabled - Resource should inherit configurations from parent.
Disabled - Resource should not inherit configurations from parent.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-State
ActionableRemediation Setting. None - the setting was never set. Enabled - ActionableRemediation is enabled. Disabled - ActionableRemediation is disabled.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |