Get-AzHDInsightMonitoring
HDInsight クラスターでのクラシック Azure Monitor ログ統合の状態を取得します。
構文
Get-AzHDInsightMonitoring
[-Name] <String>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
Get-AzHDInsightMonitoring コマンドレットは、HDInsight クラスターでのクラシック Azure Monitor ログ統合の状態を取得します。 監視が有効になっている場合は、Log Analytics ワークスペース ID も返されます。
例
例 1
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
ClusterMonitoringEnabled プロパティが true であるため、クラスターで監視が有効になります。 ログが流れている監視ワークスペース ID は 1d364e89-bb71-4503-aa3d-a23535aea7bd です
例 2
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
ClusterMonitoringEnabled プロパティが true であるため、クラスターで監視が有効になります。 ログが流れている監視ワークスペース ID は 1d364e89-bb71-4503-aa3d-a23535aea7bd です
例 3
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'false', 'workspaceId': null}
ClusterMonitoringEnabled プロパティが false であるため、クラスターで監視が無効になります。
例 4
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'false', 'workspaceId': null}
ClusterMonitoringEnabled プロパティが false であるため、クラスターで監視が無効になります。
パラメーター
-DefaultProfile
Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
監視の状態を取得するクラスターの名前。
Type: | String |
Aliases: | ClusterName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
クラスターのリソース グループ。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |