Hi Gayathri, Would this query work for you?
resources
| where type has "microsoft.compute/disks"
| extend diskState = tostring(properties.diskState)
| extend createdTimeStamp = properties.timeCreated
| where managedBy == ""
| where not(name endswith "-ASRReplica" or name startswith "ms-asr-")
| where createdTimeStamp < now()-timespan(30d)