How to create and assign attributes to machines