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/azure-monitor/vm/vminsights-enable-powershell.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ ms.topic: conceptual
5
5
ms.custom: devx-track-azurepowershell
6
6
author: guywi-ms
7
7
ms.author: guywild
8
-
ms.date: 11/28/2023
8
+
ms.date: 12/13/2023
9
9
---
10
10
11
11
# Enable VM insights by using PowerShell
@@ -14,7 +14,7 @@ This article describes how to enable VM insights on Azure virtual machines by us
14
14
- Azure Virtual Machines
15
15
- Azure Virtual Machine Scale Sets
16
16
17
-
This script installs VM extensions for Log Analytics/Azure Monitoring Agent (AMA) and, if necessary the Dependency Agent VM Insights. If AMA is onboarded, a Data Collection Rule (DCR) and a User Assigned Managed Identity (UAMI) is also associated with the virtual machines and virtual machine scale sets.
17
+
This script installs VM extensions for Log Analytics/Azure Monitoring Agent (AMA) and, if necessary, the Dependency Agent to enable VM Insights. If AMA is onboarded, a Data Collection Rule (DCR) and a User Assigned Managed Identity (UAMI) is also associated with the virtual machines and virtual machine scale sets.
+`-WorkspaceKey <String>`Log Analytics Workspace primary or secondary key.
139
+
+`-WorkspaceKey <String>`Log Analytics Workspace primary or secondary key.
140
140
141
141
Optional Arguments:
142
142
+`-ReInstall [<SwitchParameter>]` Trigger removal of existing Log analytics extension and reinstallation to migrate log analytics workspaces with Legacy Agent (Linux) - OMSAgent.
143
-
+`- Name <String>`Name of the VM or Virtual Machine Scale Set to be onboarded. If not specified, all VMs and Virtual Machine Scale Sets in the subscription or resource group are onboarded.
144
-
+`- ResourceGroup <String>`Name of the resource group containing the VM or Virtual Machine Scale Set to be onboarded. If not specified, all VMs and Virtual Machine Scale Sets in the subscription are onboarded.
143
+
+`- Name <String>` Name of the VM or Virtual Machine Scale Set to be onboarded. If not specified, all VMs and Virtual Machine Scale Sets in the subscription or resource group are onboarded.
144
+
+`- ResourceGroup <String>` Name of the resource group containing the VM or Virtual Machine Scale Set to be onboarded. If not specified, all VMs and Virtual Machine Scale Sets in the subscription are onboarded.
145
145
+`-PolicyAssignmentName <String>` Only include VMs associated with this policy. When the PolicyAssignmentName parameter is specified, the VMs part of the parameter SubscriptionId are considered.
146
146
+`-TriggerVmssManualVMUpdate [<SwitchParameter>]` Trigger the update of VM instances in a scale set whose upgrade policy is set to Manual.
147
147
+`-WhatIf [<SwitchParameter>]` Get info about expected effect of the commands in the script.
0 commit comments