我想使用 powershell 在我的所有 ID [如 VA1258] 中应用“批准为基线”,这样我就不必手动执行此操作。
有什么办法可以做到这一点吗?
附有以下屏幕截图。我想使用 powershell 启用“批准为基线”。
最佳答案
您可以在 Powershell 中使用 Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline
。
Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline
[-ServerName] <String>
[-DatabaseName] <String>
[-InputObject <VulnerabilityAssessmentRuleBaselineModel>]
-BaselineResult <String[][]>
-RuleId <String>
[-RuleAppliesToMaster]
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
更多详情,请参阅 here .
关于azure - 如何使用 Powershell 在 Azure 漏洞评估中应用 "Approve as Baseline",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63179815/