I am working to delete the unused azure resources which are not used since last 3 months to save the cost.
I tried to find in internet but not getting the proper answer.
Is any one know how to get the list though powershell or can export the details from the azure portal?
2
Answers
"Unused" means a lot of different things when you look at different resource types. Maybe you are looking for VMs which are deallocated? Or for a SQL DB which had zero per cent CPU util? Or….
So, there is no general way to determine this through the ARM APIs.
Yes, you can get the status of Vms as it is deallocated or not by using Azure resource graph as below and i followed SO-thread as below:
As you asked that you want Vms if its not used in 3 months by using Azure log Analytics Worksapce query and followed M-QandA as below: