Open Kat-nya opened 2 months ago
@Kat-nya Thanks for your feedback! We will investigate and update as appropriate.
@Kat-nya For an issue like this, I'd recommend you reach support team create a support ticket since the support team will be able to respond much more quickly and have a conversation with you to figure out what could be going on.
@Kat-nya Thanks for your feedback and your contribution to Azure docs. Feedback for this repository is moving away from GitHub to a system specific to the Microsoft Learn platform. Issues for this repository will soon be disabled, and additional comments from GitHub will no longer be possible. However, we are now tracking and triaging this issue in the new feedback system. To learn more about our feedback systems, please see Provide feedback for Microsoft Learn content.
@Kat-nya We are going to close this thread, if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.
We looked at this and it seems the az connectedmachine list command will work without specifying the resource group. I tested it and it worked on my machine.
To double check this, can you try running this on powershell on your machine and see If it returned any errors
az connectedmachine list --query "[].{ResourceId:id, ResourceGroup:resourceGroup, ServerName:name}" | ConvertFrom-Json
Thanks for your reply. I attempted to run the above commands on both my local machine and the Cloud Shell, both of which printed the error messages below:
PS /home/kat> az connectedmachine list --query "[].{ResourceId:id, ResourceGroup:resourceGroup, ServerName:name}" | ConvertFrom-Json
ERROR: the following arguments are required: --resource-group/-g
Examples from AI knowledge base:
az connectedmachine list --resource-group myResourceGroup az connectedmachine list
Sample command for list
https://aka.ms/cli_ref
Read more about the command in reference docs
@Kat-nya Thank you for bringing this to our attention. I've delegated this to content author, who will review it and offer their insightful opinions.
Link to the document - MMA Discovery and Removal Utility - Azure Monitor | Microsoft Learn
When running
.\LogAnalyticsAgentUninstallUtilityScript.ps1 GetInventory
, the following error messages are printed:The line causing this error is as following: https://github.com/MicrosoftDocs/azure-docs/blob/155f2c963fb4fb46026dbf5a83c36bd7f6abae1e/articles/azure-monitor/agents/azure-monitor-agent-mma-removal-tool.md?plain=1#L78
According to the AzCli docs, it seems that
--resource-group ...
is required when querying for a list of Arc machines withaz connectedmachine list
. This is not the case foraz vm list
oraz vmss list
, which makes argument--resource-group
optional thus does not produce the same error.The AzPowershell equivalent Get-AzConnectedMachine does not require specifying the resource group to list all Arc-enabled VMs. Maybe this could be an AzCli issue?
Many thanks
Document Details
ms.topic: conceptual author: guywi-ms ms.author: @guywi-ms ms.reviewer: jeffwo ms.date: 07/30/2024