From Canada's perspective, the ideal agreement would be one that satisfies both Armenia and Azerbaijan. They are the two parties involved. They are the ones who need to sit down and come to an agreement, so the international community, through whatever mechanism—the OSCE Minsk Group, the efforts of the EU, or something through the UN—or whatever channel, including with Canada, would be there to support and create the conditions that would allow that bilateral discussion to take place.
The specifics would be up to the two countries to decide. Obviously it's a very difficult issue. It has been going on for decades, as you say, but what we have grounds for optimism on is that both countries, both governments, have explicitly stated that they are interested in resolving it, given that one impact of the conflict has been to change some of the dynamics that had been frozen. In many ways Nagorno-Karabakh was almost the stereotypical example of a frozen conflict. While there is still much work to be done, the two sides are actively discussing the parameters for a permanent settlement.
Again, there is always a risk of these flare-ups and these tensions, and that's why I think it's important for Canada and for all of our allies to continue to reinforce to both sides the need to avoid violence, to keep de-escalating so that there is time for that peace agreement to be reached.