Skip to content

Commit bf75ce9

Browse files
committed
fixes
1 parent 728d26b commit bf75ce9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/azure-monitor/vm/vminsights-enable-powershell.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: conceptual
55
ms.custom: devx-track-azurepowershell
66
author: guywi-ms
77
ms.author: guywild
8-
ms.date: 11/28/2023
8+
ms.date: 12/13/2023
99
---
1010

1111
# Enable VM insights by using PowerShell
@@ -14,7 +14,7 @@ This article describes how to enable VM insights on Azure virtual machines by us
1414
- Azure Virtual Machines
1515
- Azure Virtual Machine Scale Sets
1616

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.
1818

1919
[!INCLUDE [Log Analytics agent deprecation](../../../includes/log-analytics-agent-deprecation.md)]
2020

@@ -83,7 +83,7 @@ The script supports wildcards for `-Name` and `-ResourceGroup`. For example, `-N
8383

8484
Example:
8585
```azurepowershell
86-
Install-VMInsights.ps1 -SubscriptionId 12345678-abcd-abcd-1234-12345678 `
86+
Install-VMInsights.ps1 -SubscriptionId 12345678-abcd-abcd-1234-12345678 `
8787
-ResourceGroup rg-AMAPowershell `
8888
-ProcessAndDependencies `
8989
-Name vmAMAPowershellWindows `
@@ -97,7 +97,7 @@ The output has the following format:
9797
```powershell
9898
Name Account SubscriptionName Environment TenantId
9999
---- ------- ---------------- ----------- --------
100-
AzMon001 12345678-abcd-123… MSI@9876 AzMon001 AzureCloud abcd1234-9876-abcd-1234-1234abcd5648
100+
AzMon001 12345678-abcd-123… MSI@9876 AzMon001 AzureCloud abcd1234-9876-abcd-1234-1234abcd5648
101101
102102
Getting list of VMs or VM Scale Sets matching specified criteria.
103103
VMs and Virtual Machine Scale Sets matching selection criteria :
@@ -136,12 +136,12 @@ VMSS Instance Upgrade Failures : 0
136136

137137
Required Arguments:
138138
+ `-WorkspaceId <String>` Log Analytics WorkspaceID (GUID).
139-
+ `-WorkspaceKey <String>`Log Analytics Workspace primary or secondary key.
139+
+ `-WorkspaceKey <String>` Log Analytics Workspace primary or secondary key.
140140

141141
Optional Arguments:
142142
+ `-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.
145145
+ `-PolicyAssignmentName <String>` Only include VMs associated with this policy. When the PolicyAssignmentName parameter is specified, the VMs part of the parameter SubscriptionId are considered.
146146
+ `-TriggerVmssManualVMUpdate [<SwitchParameter>]` Trigger the update of VM instances in a scale set whose upgrade policy is set to Manual.
147147
+ `-WhatIf [<SwitchParameter>]` Get info about expected effect of the commands in the script.

0 commit comments

Comments
 (0)