Enable-AzHDInsightMonitoring
HDInsight 클러스터에서 클래식 Azure Monitor 로그 통합을 사용하도록 설정하면 사용 중에 지정된 모니터링 작업 영역으로 관련 로그가 전송됩니다.
Syntax
Enable-AzHDInsightMonitoring
[-Name] <String>
[-WorkspaceId] <String>
[-PrimaryKey] <String>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Enable-AzHDInsightMonitoring cmdlet을 사용하면 HDInsight 클러스터에서 클래식 Azure Monitor 로그 통합을 사용할 수 있습니다.
예제
예 1
Enable-AzHDInsightMonitoring -Name testcluster -WorkspaceId 1d364e89-bb71-4503-aa3d-a23535aea7bd -PrimaryKey 'key for workspace 1d364e89-bb71-4503-aa3d-a23535aea7bd'
True
HDInsight 클러스터에서 모니터링을 사용하도록 설정되고 관련 로그가 ID 1d364e89-bb71-4503-aa3d-a23535aea7bd로 모니터링 작업 영역으로 전송됩니다.
예제 2
Enable-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg -WorkspaceId 1d364e89-bb71-4503-aa3d-a23535aea7bd -PrimaryKey 'key for workspace 1d364e89-bb71-4503-aa3d-a23535aea7bd'
True
HDInsight 클러스터에서 모니터링을 사용하도록 설정되고 관련 로그가 ID 1d364e89-bb71-4503-aa3d-a23535aea7bd로 모니터링 작업 영역으로 전송됩니다.
매개 변수
-Confirm
cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | 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 |
-PrimaryKey
모니터링 작업 영역의 기본 키입니다.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
클러스터의 리소스 그룹입니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WorkspaceId
모니터링 작업 영역의 ID입니다.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |