Get-AzureRmSqlDatabaseVulnerabilityAssessmentSettings

データベースの脆弱性評価設定を取得します。

警告

AzureRM PowerShell モジュールは、2024 年 2 月 29 日の時点で正式に非推奨になりました。 引き続きサポートを受け、更新を受け取れるようにするために、AzureRM から Az PowerShell モジュールに移行することをお勧めします。

AzureRM モジュールは引き続き機能する可能性がありますが、メインが維持またはサポートされなくなり、ユーザーの判断とリスクで引き続き使用できます。 Az モジュールへの移行に関するガイダンスについては、移行リソースを参照してください。

構文

Get-AzureRmSqlDatabaseVulnerabilityAssessmentSettings
   [-InputObject <AzureSqlDatabaseModel>]
   [-ServerName] <String>
   [-DatabaseName] <String>
   [-ResourceGroupName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

説明

Get-AzureRmSqlDatabaseVulnerabilityAssessment設定 コマンドレットはAzure SQL Database の脆弱性評価設定を取得します。 このコマンドレットを使用するための前提条件として、Enable-AzureRmSqlServerAdvancedThreatProtection コマンドレットを実行する必要があることに注意してください。

例 1 - Azure SQL データベースの脆弱性評価設定を取得する

PS C:\> Get-AzureRmSqlDatabaseVulnerabilityAssessmentSettings `
            -ResourceGroupName "ResourceGroup01" `
            -ServerName "Server01" `
            -DatabaseName "Database01"

ResourceGroupName				: ResourceGroup01
ServerName			        	: Server01
DatabaseName			    	: Database01
StorageAccountName     			: mystorage
ScanResultsContainerName		: vulnerability-assessment
RecurringScansInterval			: None
EmailSubscriptionAdmins			: False
NotificationEmail				: {}

例 2 - Azure SQL データベース オブジェクトから Azure SQL データベースの脆弱性評価設定を取得する

PS C:\> Get-AzureRmSqlDatabase `
          -ResourceGroupName "ResourceGroup01" `
          -ServerName "Server01" `
          -DatabaseName "Database01" `
          | Get-AzureRmSqlDatabaseVulnerabilityAssessmentSettings 

ResourceGroupName				: ResourceGroup01
ServerName			        	: Server01
DatabaseName			    	: Database01
StorageAccountName     			: mystorage
ScanResultsContainerName		: vulnerability-assessment
RecurringScansInterval			: None
EmailSubscriptionAdmins			: False
NotificationEmail				: {}

パラメーター

-DatabaseName

SQL Database 名。

型:String
配置:2
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

型:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-InputObject

脆弱性評価の設定を取得するデータベース オブジェクト

型:AzureSqlDatabaseModel
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-ResourceGroupName

リソース グループの名前。

型:String
配置:0
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

-ServerName

SQL Database サーバー名。

型:String
配置:1
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False

入力

AzureSqlDatabaseModel

Parameters: InputObject (ByValue)

String

出力

DatabaseVulnerabilityAssessmentSettingsModel