for azure you have azcli, arm templates (their cloud formation), and terraform. They also have started? work on bicep which is a DSL to create arm templates. As for what they recommend i think that changes depending on the service/team you speak too.