azure - 如何使用 Powershell 在 Azure 漏洞评估中应用 "Approve as Baseline"

标签 azure powershell security

我想使用 powershell 在我的所有 ID [如 VA1258] 中应用“批准为基线”,这样我就不必手动执行此操作。

有什么办法可以做到这一点吗?

附有以下屏幕截图。我想使用 powershell 启用“批准为基线”。

enter image description here

最佳答案

您可以在 Powershell 中使用 Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline

    Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline
   [-ServerName] <String>
   [-DatabaseName] <String>
   [-InputObject <VulnerabilityAssessmentRuleBaselineModel>]
   -BaselineResult <String[][]>
   -RuleId <String>
   [-RuleAppliesToMaster]
   [-ResourceGroupName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

enter image description here

注意:BaselineResult 显示如下。 enter image description here

更多详情,请参阅 here .

关于azure - 如何使用 Powershell 在 Azure 漏洞评估中应用 "Approve as Baseline",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63179815/

相关文章:

Python "FileHandler"到 Azure Blob 存储 - 没有这样的事情吗

如果计数超过 30k,Azure cosmos db 不会显示 select count(1) 的正确值。或者如果总计数超过 100k。

Azure Api 管理将 XML 转换为入站 JSON 策略

azure - 如何使来自 Azure WebJob 的所有调用都源自同一外部 IP?

entity-framework - 使用 Azure Pipeline 任务进行 EF 迁移

java - 在 Java 打印对话框中隐藏 "Print to file"

javascript - eval(T) vs x = 新函数(T); X()

Powershell:捕获后台作业的进程ID

powershell - 在csv导入中修剪对象内容

java - 使用基于表单的容器管理安全性重试登录