次の方法で共有


Get-AzAlertProcessingRule

このコマンドレットは 、プレビュー モジュールの一部です。 プレビュー バージョンは、運用環境で使用することはお勧めしません。 詳細については、https://aka.ms/azps-refstatusを参照してください。

AlertProcessing ルール情報を取得する

構文

ListAlertProcessingRules (既定)

Get-AzAlertProcessingRule
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

AlertProcessingRuleByName

Get-AzAlertProcessingRule
    -Name <String>
    -ResourceGroupName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ListAlertProcessingRulesByResourceGroupName

Get-AzAlertProcessingRule
    -ResourceGroupName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ResourceId

Get-AzAlertProcessingRule
    -ResourceId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

Get-AzAlertProcessingRule コマンドレットは、構成されたアラート処理ルールを取得します。

例 1

Get-AzAlertProcessingRule

サブスクリプションで構成されているすべてのアラート処理ルールを一覧表示します。

例 2

Get-AzAlertProcessingRule -ResourceGroupName "test-rg"

リソース グループ test-rg で構成されているすべてのアラート処理ルールを一覧表示します。

例 3

Get-AzAlertProcessingRule -ResourceGroupName "test-rg" -Name "Test-AlertProcessing-Rule" | Format-List

test-rg リソース グループの Test-AlertProcessing-Rule という名前のアラート処理ルールを取得します。

パラメーター

-DefaultProfile

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

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

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

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

-Name

アラート処理ルールの名前。

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

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

パラメーター セット

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

-ResourceGroupName

アラート処理ルールが存在するリソース グループ名。

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

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

パラメーター セット

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

-ResourceId

リソース ID でアラート処理ルールを取得します。

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

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

パラメーター セット

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

CommonParameters

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

入力

None

出力

PSAlertProcessingRule