One of the advantages of the cloud is the elasticity where we can provision resources to address our most urgent issues. One problem, though, is the ability to clean up the environment when such resources are no longer needed. In today’s Azure Quick Tip, we are going to be listing all disks not attached to any virtual machines. That will help you to reduce costs if they are no longer required.
Get-AzDisk | where-Object { $_.DiskState -eq “Unattached” } | select Name,ResourceGroupName,Location,TimeCreated
More Quick Tips articles
- Fixing Azure Key Vault when moving to a different tenant
- Restore Azure Key Vault using just two PowerShell cmdlets
- This overlooked feature in Visual Studio Code can speed release time
- Enabling Front Door managed certificates in Azure: Status update
- How to quickly check the status of all your Azure services