Yes, a common synthesis of benzotriazole starts with o-phenylenediamine as shown in the following figure.
The first step in the reaction involves straightforward diazotization of one of the amino groups (exactly like what's done in the first part of the Sandmeyer reaction) to produce the ortho-amino diazonium ion. Instead of eliminating nitrogen as in the Sandmeyer case, the molecule loses a proton and then the diazomium ion internally captures the ortho-imino group to yield the triazole product.
The reaction is not reversible, the benzotriazole is very stable and the intermediate diazonium ion is relatively high energy making the back reaction unlikely under normal conditions. The reaction will also work with substituted o-phenylenediamines as long as the substituent doesn't interfere with the diazotization step. So for example, alkyl- or halo-substituted o-phenylenediamines will produce the corresponding alkyl- or halo-benzotriazoles.
Intramolecular cyclization to produce a triazole will only occur if the amino groups in the starting diamine are ortho to one another. If m- or p-phenylenediamines or non-ortho naphthyl diamines are used, then products resulting from intermolecular azo coupling will occur. See an article by Freeman  for some examples.
- Freeman, H. Aromatic Amines: Use in Azo Dye Chemistry. Front Biosci 2013, 18 (1), 145. DOI: 10.2741/4093. (Open Access)