 In the Einhorn-Brunner reaction hydrazines react with imides to give triazoles.Being a good nucleophile, N2H4 can attack sulfonyl halides and acyl halides.The tosylhydrazine also forms hydrazones upon treatment with carbonyls.