-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated MMA Report with Resource Graph Query
- Loading branch information
1 parent
47ce668
commit 46db7ba
Showing
7 changed files
with
28 additions
and
46 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
# Steps to migrate Log Analytics agent (also known as MMA and OMS) to Azure Monitor Agent (AMA) | ||
|
||
# As a reference lease review [Monitoring Agent Migration WorkFlow](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-migration-tools?tabs=portal-1) | ||
# As a reference please review [Monitoring Agent Migration WorkFlow](https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-migration-tools?tabs=portal-1) | ||
|
||
## The main purposes of the scripts are: | ||
* Create a report with Azure VMs still running legacy monitoring agent (MMA) | ||
* Based on the report remove legacy monitoring agent | ||
|
||
## How to use it? | ||
- Create report via PS: | ||
- 01_MMA_Report.ps1 - is to gather current AVD hosts wich have been monitored via MMA agent and export it to csv file | ||
- Create report via Azure Resource Graph Explorer | ||
- Login to [Azure Portal](https://portal.azure.com/) <img src="../../docs/icons/azure.png" width="20" height="20"> | ||
- In the main search type _'Azure Resource Graph Explorer'_ | ||
|
||
* 01_MMA_Report.ps1- is to gather current AVD hosts wich have been monitored via MMA agent and export it to csv file | ||
* Review the report to confirm the list of VMs with MMA agent | ||
* 02_MMA_Extention_remove.ps1 that script will reference the csv report and remove MMA agent | ||
![Azure Resource Graph Explorer 1](../../docs/Monitoring/AzureResourceGraphExplorer1.png) | ||
|
||
- Run the query | ||
|
||
![Azure Resource Graph Explorer Report](../../docs/Monitoring/QueryReport.png) | ||
|
||
```console | ||
resources | ||
| where type == "microsoft.compute/virtualmachines" | ||
| extend agentversion = properties.agentVersion | project name, agentversion, location, resourceGroup, subscriptionId | ||
``` | ||
|
||
- Review the report to confirm the list of VMs with MMA agent | ||
|
||
- 02_MMA_Extention_remove.ps1 that script will reference the csv report and remove MMA agent |