using resource type to extract vm resources

using description is not reliable since it can be rewritten.