You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/hdinsight/hdinsight-hadoop-oms-log-analytics-tutorial.md
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
34
34
35
35
For the instructions on how to create an HDInsight cluster, see [Get started with Azure HDInsight](hadoop/apache-hadoop-linux-tutorial-get-started.md).
36
36
37
-
* Azure PowerShell Az module. See [Introducing the new Azure PowerShell Az module](https://docs.microsoft.com/powershell/azure/new-azureps-module-az).
37
+
* Azure PowerShell Az module. See [Introducing the new Azure PowerShell Az module](https://docs.microsoft.com/powershell/azure/new-azureps-module-az). Ensure you have the latest version. If necessary, run `Update-Module -Name Az`.
38
38
39
39
> [!NOTE]
40
40
> It is recommended to place both the HDInsight cluster and the Log Analytics workspace in the same region for better performance. Azure Monitor logs is not available in all Azure regions.
@@ -57,7 +57,7 @@ In this section, you configure an existing HDInsight Hadoop cluster to use an Az
57
57
58
58
## Enable Azure Monitor logs by using Azure PowerShell
59
59
60
-
You can enable Azure Monitor logs using the Azure PowerShell Az module [Enable-AzHDInsightOperationsManagementSuite](https://docs.microsoft.com/powershell/module/az.hdinsight/enable-azhdinsightoperationsmanagementsuite) cmdlet.
60
+
You can enable Azure Monitor logs using the Azure PowerShell Az module [Enable-AzHDInsightMonitoring](https://docs.microsoft.com/powershell/module/az.hdinsight/enable-azhdinsightmonitoring) cmdlet.
# Enables monitoring and relevant logs will be sent to the specified workspace.
80
+
Enable-AzHDInsightMonitoring `
81
+
-ResourceGroupName $resourceGroup `
82
+
-Name $cluster `
83
+
-WorkspaceId $WorkspaceId `
84
+
-PrimaryKey $PrimaryKey
85
+
86
+
# Gets the status of monitoring installation on the cluster.
87
+
Get-AzHDInsightMonitoring `
88
+
-ResourceGroupName $resourceGroup `
89
+
-Name $cluster
77
90
```
78
91
79
-
To disable, the use the [Disable-AzHDInsightOperationsManagementSuite](https://docs.microsoft.com/powershell/module/az.hdinsight/disable-azhdinsightoperationsmanagementsuite) cmdlet:
92
+
To disable, the use the [Disable-AzHDInsightMonitoring](https://docs.microsoft.com/powershell/module/az.hdinsight/disable-azhdinsightmonitoring) cmdlet:
0 commit comments