Strange really as he wasn't going to be picked anyway. And I wouldn't pick him either right now.
I think we missed an opportunity when he was younger, when he was doing well with tests. He gave lots of opportunities to Asad, but we probably should have given more to Azhar. We didn't have a stable opener under Misbah or under Afridi, and he perhaps could have helped. Would never have been a great ODI player, but might have been a good one for us. Now we have potentially four players, Babar, Fakhar, Imam and Haris who could all probably do a better job opening than Azhar.
It was wrong to give him ODI captaincy and trying to learn captaincy at the same time as trying to get used to ODIs wasn't a great idea. Should have been allowed more as just a player.
It was unfortunate he was made captain, but I can see why Azhar was. Misbah just retired, as did Afridi, Malik hadn't cemented back his place yet. Hafeez was out of the side admist problems with his bowling and being unpopular for the loss against India in the T20 world cup (it's not like we never lost to India before in a world cup). And Sarfraz was newish at the time to LOI.
What we should have done was have changed captains from Misbah whilst keeping him as a player earlier and given Hafeez a try. There was no point accepting us to be rubbish for years on end, when we could have at least tried something else. I don't necessarily blame Misbah for that, but a fresh change of captaincy was at least worth trying. Look how it worked from Azhar to Sarfraz. Misbah even batted at a higher SR before he got captaincy, it might have been good for his individual performance. And tried out Azhar in ODIs as a player and tell him to focus on learning captaincy in domestic, if the need arose that he needed to take over.