I want to create an alert ie send an email as soon as anyone logs into an Azure Vm .
I have tried to create the alert but there is no "Sign In" alert.
How can i do this in Azure Portal ?
I want to create an alert ie send an email as soon as anyone logs into an Azure Vm .
I have tried to create the alert but there is no "Sign In" alert.
How can i do this in Azure Portal ?
To create an alert when a user logs into a VM, you can follow the steps below.
Navigate to the VM > Logs and enable the logs. Once the logs are enabled, it will take some time to synchronize them.
Run the below KQL query to fetch the
VMConnected logsOutput:
VM.Please refer to the Stack Link I provided in my answer for a similar requirement.