Stop / Start an Arc enabled machine in Azure Portal

PerhapsCloud 46 Reputation points
2024-09-08T18:52:38.2733333+00:00

How the start/stop of arc enabled machine work in Azure Portal? Is there a way it can be deallocated from Azure Portal? I'm setting up an Alert in Azure to monitor these arc enabled machines so when they are down I'd get alerted. The alert is from the Azure Monitor based on the activity log of deallocating a VM. Thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,220 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
459 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 27,576 Reputation points
    2024-09-09T06:03:48.25+00:00

    Hello @PerhapsCloud
    Azure Arc-enabled servers are managed by Azure Arc, which is a service that extends Azure management capabilities to on-premises, multi-cloud, and edge environments. When you connect a server to Azure Arc, you can manage it using the Azure portal, Azure CLI, Azure PowerShell, or Azure REST API.

    You can use the Azure CLI to start or stop the virtual machine. Here are the commands to do it:

    To stop the virtual machine:

    az vm 
    

    To start the virtual machine:

    az vm start --resource-
    

    Activity Log alert to notify you when an Azure Arc-enabled server is started or stopped, you can follow these steps:

    Create an action group. An action group is a collection of notification preferences and actions that you define. You can create an action group in the Azure portal or using Azure PowerShell or Azure CLI.

    Create an Activity Log alert. You can create an Activity Log alert in the Azure portal or using Azure PowerShell or Azure CLI.

    References:

    https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-overview

    https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/action-groups
    https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/scenarios/hybrid/arc-enabled-servers/eslz-management-and-monitoring-arc-server#design-recommendations


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.