Solvothermal reactions of metal salts, 3-amino-1,2,4-triazole-5-carboxylic acid (H2atzc) and ammonium oxalate in different temperature produced two metal azolate frameworks, namely, [Cu3(atzc)2(atz)(ox)]·1.5H2O (1) and [Co5(atz)4(ox)3(HCOO)2]·DMF (2) (H2atzc=3-amino-1,2,4-triazole-5-carboxylic acid, Hatz=3-amino-1,2,4-triazole, and ox=oxalate), in which the atzc precusor was in situ decarboxylated. Structural determination reveals that 1 contains [Cu3(atzc)2(atz)]2− layers of mixed μ4-atzc and μ3-atz ligands, which are pillared by ox2− groups to form a 3D porous framework. Compound 2 contains 2D layers with basic spindle-shaped decanuclear units, which extended by ox2− and formates to form 3D porous framework. Gas adsorption investigation revealed that two kinds of frameworks exhibited selective CO2 over N2 sorption. Moreover, activated 2 shows H2 storage capacity. Additionally, magnetic properties of both the compounds have been investigated.