There are no rules on who can be specifically tuned to sensitive magic objects, so normal rules apply. If the element does not say that only a specific alignment can / cannot be tuned to it, then any alignment can be tuned to it.
An example of this (as noted in the Medix2 response) is the Moonblade, which says:
(Requires tuning of an elf or half elf of good neutral alignment)
Hazirawn has nothing to suggest some kind of alignment limitation, so any alignment can tune into it.
When the user conflicts with the article, the article can make demands
Now, as to what happens when a user with a conflicting alignment is tuned to him, the rules for sensitive magic objects go into some details:
A sensitive element has a will of its own, shaped by its personality and alignment. If its bearer acts in the opposite way to the alignment or purpose of the element, a conflict may arise. When such a conflict occurs, the object performs a charisma check challenged by the bearer charisma check. If the article wins the contest, it makes one or more of the following demands (the list is omitted)
Therefore, although it is not explicitly limited to alignment-based conflicts, it seems very likely that a user who builds a weapon that opposes its alignment would conflict with the special purpose of that weapon (if it has one) at some point and the rules describe how to treat it (up to and including the element that takes control of the user).
The Hoard of the Dragon Queen does not take into account any particular objective or behavior of Hazirawn, but a DM can (and probably would) do some things to make it interesting.