dolevshor / azure-orphan-resources

Centralize orphan resources in Azure environments
MIT License
523 stars 135 forks source link

Feature for Virtual Machine deallocated for a said ammount of time? #33

Closed a1s1nc3day1 closed 5 months ago

a1s1nc3day1 commented 6 months ago

Hello,

Is there a feature that can be added for discovery of virtual machines that have been in deallocated state for a specified ammount of time? Let's say i have a vm that hasent been powered on for 30 or more days for example.

dolevshor commented 6 months ago

Hi @a1s1nc3day1,

This is possible by using Activity Logs ("Deallocate Virtual Machine" timestamp) but this does not indicate that the VM is orphaned and that is why I don't think it's appropriate to add it to the workbook. (same like this suggestion: https://github.com/dolevshor/azure-orphan-resources/issues/32)

ChoinaPVR commented 6 months ago

Maybe it would be a good feature to have this functionality but put it on an extra TAB like Other and there we could see the not related features like disabled VMs. They do consume so but our time or keep us in the dark. I would see a benefit from having this.

dolevshor commented 5 months ago

@ChoinaPVR,

I agree with you that this can be a good candidate for cost optimization, but it is not orphaned. The purpose of this workbook is to gather only orphaned resources.

You can use the Azure Cost Optimization Workbook to cover that.