🐛 Problem
The Remediate-LongDeallocatedVMsFiltered runbook does a validation on the VM power status before downgrading its disks to Standard HDD. However, due to changes in the Az.Compute PowerShell module, it is doing a validation on a property that no longer exists and thus assumes the VM is running and skips it.
👣 Repro steps
- Have virtual machines deallocated for more than 30 days
- Wait for the
Virtual Machine has been deallocated for long with disks still incurring costs recommendation to start appearing in the Recommendations workbook
- Wait for 4 weeks
- Trigger the
Remediate-LongDeallocatedVMsFiltered runbook
- See the "Skipping as VM is not deallocated" message in the job logs for each VM recommended
- Confirm the VM is deallocated and the message above reflects a wrong power state
🤔 Expected
The correct power state should have been validated and the remediation should have gone through.
🙋♀️ Ask for the community
We could use your help:
- Please vote this issue up (👍) to prioritize it.
- Leave comments to help us solidify the vision.
🐛 Problem
The
Remediate-LongDeallocatedVMsFilteredrunbook does a validation on the VM power status before downgrading its disks to Standard HDD. However, due to changes in the Az.Compute PowerShell module, it is doing a validation on a property that no longer exists and thus assumes the VM is running and skips it.👣 Repro steps
Virtual Machine has been deallocated for long with disks still incurring costsrecommendation to start appearing in the Recommendations workbookRemediate-LongDeallocatedVMsFilteredrunbook🤔 Expected
The correct power state should have been validated and the remediation should have gone through.
🙋♀️ Ask for the community
We could use your help: