Skip to content

Commit 592c82f

Browse files
authored
Merge pull request #67145 from dagiro/freshness7
freshness7
2 parents e55c66e + 5fff523 commit 592c82f

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

articles/hdinsight/hdinsight-hadoop-oms-log-analytics-tutorial.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.reviewer: jasonh
88
ms.service: hdinsight
99
ms.custom: hdinsightactive
1010
ms.topic: conceptual
11-
ms.date: 11/05/2018
11+
ms.date: 02/20/2019
1212
ms.author: hrasheed
1313

1414
---
@@ -33,7 +33,9 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
3333
* Spark
3434
* Storm
3535

36-
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+
For the instructions on how to create an HDInsight cluster, see [Get started with Azure HDInsight](hadoop/apache-hadoop-linux-tutorial-get-started.md).
37+
38+
* **Azure PowerShell Az module**. See [Introducing the new Azure PowerShell Az module](https://docs.microsoft.com/powershell/azure/new-azureps-module-az).
3739

3840
> [!NOTE]
3941
> It is recommended to place both the HDInsight cluster and the Log Analytics workspace in the same region for better performance. Azure Log Analytics is not available in all Azure regions.
@@ -48,41 +50,44 @@ In this section, you configure an existing HDInsight Hadoop cluster to use an Az
4850

4951
3. Under **ANALYTICS**, select **HDInsight clusters**.
5052

51-
4. From the left, under **Monitoring**, select **Operations Management Suite**.
53+
4. Select your cluster from the list.
5254

53-
5. From the main view, under **OMS Monitoring**, select **Enable**.
55+
5. From the left, under **Monitoring**, select **Operations Management Suite**.
5456

55-
6. From the **Select a workspace** drop-down list, select an existing Log Analytics workspace.
57+
6. From the main view, under **OMS Monitoring**, select **Enable**.
5658

57-
7. Select **Save**.
59+
7. From the **Select a workspace** drop-down list, select an existing Log Analytics workspace.
5860

59-
![Enable monitoring for HDInsight clusters](./media/hdinsight-hadoop-oms-log-analytics-tutorial/hdinsight-enable-monitoring.png "Enable monitoring for HDInsight clusters")
61+
8. Select **Save**. It takes a few moments to save the setting.
6062

61-
It takes a few moments to save the setting.
63+
![Enable monitoring for HDInsight clusters](./media/hdinsight-hadoop-oms-log-analytics-tutorial/hdinsight-enable-monitoring.png "Enable monitoring for HDInsight clusters")
6264

6365
## Enable Log Analytics by using Azure PowerShell
6466

65-
You can enable Log Analytics using Azure PowerShell. The cmdlet is:
67+
You can enable Log Analytics using the Azure PowerShell Az module [Enable-AzHDInsightOperationsManagementSuite](https://docs.microsoft.com/powershell/module/az.hdinsight/enable-azhdinsightoperationsmanagementsuite) cmdlet.
6668

6769
```powershell
68-
Enable-AzureRmHDInsightOperationsManagementSuite
69-
[-Name] <CLUSTER NAME>
70-
[-WorkspaceId] <LOG ANALYTICS WORKSPACE NAME>
71-
[-PrimaryKey] <LOG ANALYTICS WORKSPACE PRIMARY KEY>
72-
[-ResourceGroupName] <RESOURCE GROUIP NAME>
73-
```
70+
# Enter user information
71+
$resourceGroup = "<your-resource-group>"
72+
$cluster = "<your-cluster>"
73+
$LAW = "<your-Log-Analytics-workspace>"
74+
# End of user input
7475
75-
See [Enable-AzureRmHDInsightOperationsManagementSuite](https://docs.microsoft.com/powershell/module/azurerm.hdinsight/Enable-AzureRmHDInsightOperationsManagementSuite?view=azurermps-5.0.0).
76+
# obtain workspace id for defined Log Analytics workspace
77+
$WorkspaceId = (Get-AzOperationalInsightsWorkspace -ResourceGroupName $resourceGroup -Name $LAW).CustomerId
7678
77-
To disable, the cmdlet is:
79+
# obtain primary key for defined Log Analytics workspace
80+
$PrimaryKey = (Get-AzOperationalInsightsWorkspace -ResourceGroupName $resourceGroup -Name $LAW | Get-AzOperationalInsightsWorkspaceSharedKeys).PrimarySharedKey
7881
79-
```powershell
80-
Disable-AzureRmHDInsightOperationsManagementSuite
81-
[-Name] <CLUSTER NAME>
82-
[-ResourceGroupName] <RESOURCE GROUP NAME>
82+
# Enables Operations Management Suite
83+
Enable-AzHDInsightOperationsManagementSuite -ResourceGroupName $resourceGroup -Name $cluster -WorkspaceId $WorkspaceId -PrimaryKey $PrimaryKey
8384
```
8485

85-
See [Disable-AzureRmHDInsightOperationsManagementSuite](https://docs.microsoft.com/powershell/module/azurerm.hdinsight/disable-azurermhdinsightoperationsmanagementsuite?view=azurermps-5.0.0).
86+
To disable, the use the [Disable-AzHDInsightOperationsManagementSuite](https://docs.microsoft.com/powershell/module/az.hdinsight/disable-azhdinsightoperationsmanagementsuite) cmdlet:
87+
88+
```powershell
89+
Disable-AzHDInsightOperationsManagementSuite -Name "<your-cluster>"
90+
```
8691

8792
## Install HDInsight cluster management solutions
8893

@@ -97,7 +102,7 @@ These are the available HDInsight solutions:
97102
* HDInsight Spark Monitoring
98103
* HDInsight Storm Monitoring
99104

100-
For the instructions to install a management solution, see [Management solutions in Azure](../azure-monitor/insights/solutions.md#install-a-monitoring-solution). To experiment, install a HDInsight Hadoop Monotiring solution. When it is done, you see an **HDInsightHadoop** tile listed under **Summary**. Select the **HDInsightHadoop** tile. The HDInsightHadoop solution looks like:
105+
For the instructions to install a management solution, see [Management solutions in Azure](../azure-monitor/insights/solutions.md#install-a-monitoring-solution). To experiment, install a HDInsight Hadoop Monitoring solution. When it is done, you see an **HDInsightHadoop** tile listed under **Summary**. Select the **HDInsightHadoop** tile. The HDInsightHadoop solution looks like:
101106

102107
![HDInsight monitoring solution view](media/hdinsight-hadoop-oms-log-analytics-tutorial/hdinsight-oms-hdinsight-hadoop-monitoring-solution.png)
103108

0 commit comments

Comments
 (0)