次の方法で共有


New-SqlVulnerabilityAssessmentBaselineSet

Microsoft.SQL.VulnerabilityAssessment.SecurityCheckBaselineSet の新しいインスタンスを作成します。

構文

Default (既定)

New-SqlVulnerabilityAssessmentBaselineSet
    [-Baselines <SecurityCheckBaseline[]>]
    [<CommonParameters>]

説明

New-SqlVulnerabilityAssessmentBaselineSet コマンドレットは、Microsoft.SQL.VulnerabilityAssessment.BaselineSet の新しいインスタンスを作成します。

ベースライン セットは、一連のベースライン (Microsoft.SQL.VulnerabilityAssessment.SecurityCheckBaseline 型) で構成されます。 各ベースラインは、特定のセキュリティ チェックの予想される結果を定義します。 ベースライン セットにグループ化されたこれらのベースラインは、スキャン内のすべてのセキュリティ チェックに対して期待される結果を定義します。

ベースライン セットは、0 個以上のベースラインを使用して作成できます。

ベースライン セットは、これらのベースライン設定を結果に適用するためのスキャンの入力として使用されます。

Module requirements: version 21+ on PowerShell 5.1; version 22+ on PowerShell 7.x.

This cmdlet was removed in v22.3+ of the module.

例 1: ベースラインの一覧を使用してベースライン セットを作成する

PS C:\> $baseline1 = New-SqlVulnerabilityAssessmentBaseline -SecurityCheckId VA1234 -ExpectedResult $null
PS C:\> $baseline2 = New-SqlVulnerabilityAssessmentBaseline -SecurityCheckId VA1235 -ExpectedResult $null
PS C:\> $baselineSet = New-SqlVulnerabilityAssessmentBaselineSet -Baselines $baseline1, $baseline2

SecurityCheckBaselines
----------------------
{VA1234, VA1235}

この例では、2 つのベースラインを作成し、それらと共にベースライン セットを作成します。

パラメーター

-Baselines

セキュリティ チェック ベースラインの一覧。 ベースライン セットはこのリストで初期化されます。

パラメーターのプロパティ

型:

SecurityCheckBaseline[]

規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

Microsoft.SqlServer.VulnerabilityAssessment.SecurityCheckBaseline

出力

System.Object