Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM keeps auto stopping even after disabling or deleting AutoStop logic app #54

Closed
KerryRJ opened this issue Apr 27, 2022 · 8 comments
Closed

Comments

@KerryRJ
Copy link

KerryRJ commented Apr 27, 2022

Any ideas on how to troubleshoot this?

@alurbina
Copy link

Hello,

Can we verify if the VM has any associated alerts? If so, can we delete / disable them? If this does not work, can you share with us more details of the VM?

@KerryRJ
Copy link
Author

KerryRJ commented Apr 28, 2022

The VM is a Standard D2ds v5 (2 vcpus, 8 GiB memory) created via AVD.

verify if the VM has any associated alerts

Where do I find these VM associated alerts?

I eventually deleted and recreated the VMs automation group, and haven't yet configured auto stop. Knowing where and what to look for reguarding the associated alerts would be handy.

@balas77
Copy link
Contributor

balas77 commented Apr 28, 2022

To verify the VM alerts: Navigate to your VM in the Azure portal --> click Alerts (under Monitoring tab) --> click Alert Rules. Make sure you select the filter as enabled. Once you find the alert, then either you can disable or delete it.

image

image

image

@KerryRJ
Copy link
Author

KerryRJ commented Apr 29, 2022

That was really helpful. The auto stop alert was still there and enabled after I had deleted the start stop resource group. It is also did not seem to have updated or disabled even though I had tried disabling the auto stop logic app. Is this by design?

@balas77
Copy link
Contributor

balas77 commented Apr 29, 2022

Yes by design the alert will be created on your VMs which is outside of the Start/Stop resource group so even if you delete the Start/Stop RG, this will not going to delete the alert which is part of your VM resource.

Also disabling/deleting the logic app is not going to take any effect to delete the alert as the logic app is just an orchestrator to call the function app which is responsible to create the alert based on the payload you have configured. So if you want to disable the alert then you can add the VM in the payload exclude list (refer our doc here for sample exclude list) in the logic app.

@KerryRJ
Copy link
Author

KerryRJ commented Apr 29, 2022

If configuration in the Logic App is modified, are any settings there carried over to the alert rule?

@balas77
Copy link
Contributor

balas77 commented Apr 29, 2022

Yes new alert will be created on the VM (old alert will be deleted) whenever the logic app runs so if you change the value of any property (say AutoStop_Threshold : 10) in the auto stop payload then new alert will be created based on the updated value.

@KerryRJ
Copy link
Author

KerryRJ commented Apr 29, 2022

The alert that I just deleted still had the original values from first configuration. Subsequent changes in the logic app never seemed to have been applied to the rule.

I am closing this issue but will keep an eye out when I configure and enable the new auto stop functionality and verify if it is indeed updating.

Thank for your assistance.

@KerryRJ KerryRJ closed this as completed Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants