Azerbaijan is just an opportunistic country. They have very strong ties with Israel and the United States while maintaining strategic partnership with Russia. Erdogan's Turkey to them is just like we are to a non-Communist Nepal.
Baku has no religious affinity towards Pakistan beyond the typical photo optics seen in the political world. I have been there a few times and mind you, the version and the method of Islam that they follow there would get them stoned or flogged in Pakistan, Afghanistan and Saudi. Azerbaijan is a quasi-European society with a lot of liberal freedoms. They identify themselves as culturally Muslims, but nothing like the Pakistanis, Afghans or the Arabs.
The only reason why Aliyev is pandering to the Pakistanis is because he is being pushed by Erdogan to do so. Yes, they do share a very good relationship with Pakistan, but their cooperation is more air than substance:
Their bilateral trade is less than the cost of a modern fighter jet - <$50 million out of which, Pakistan enjoys a 95% trade surplus.
HERE. Comparatively, India's trade with Azerbaijan is about 20 times at $1 billion, the bulk of which is petroleum products. So much so that the oil-deficient Pakistan did not dare to approach Baku for granting oil concessions at favorable rates & instead approached Saudi Arabia.
There is a lot of commotion in the area of defense cooperation, but the numbers are either unavailable or are pitifully minuscule. Baku has been in discussion with Pakistan for the import of JF-17s a year after it was inducted into Pakistan's Air Force. But several years on and not a single jet has been delivered to the Azerbaijani Air Force; the latter still retains almost entirely Soviet legacy military assets. The Azerbaijanis do buy small arms such as MANPADS & POF Eye systems from Pakistan, but a bulk of their defence goods are imported either from Turkey or Russia.
That leaves people-to-people cooperation between the two countries, which is much like the Indian-Russian ties; through the governments and the articles written in goodwill of each other. There are a lot of Pakistanis going to Azerbaijan, but the two countries don't even have a proper bilateral aviation cooperation mechanism. In fact, Azerbaijan has a better air services agreement with India.
Bottomline: Azerbaijan cooperating with Pakistan is about as relevant as the
Marshall Islands suing India (Yeah, that happened
)for possessing nuclear weapons.
It simply does not matter as long as Azerbaijanis don't engage in Islamist terrorism in India; which they won't dare.
The only thing that we have to worry about is the tendency of Indian Muslims to gravitate towards anyone offering them religious commonality and allowing them to fully disassociate themselves from their own civilization. This is evident by the fact that there is an increased enrollment by them in Turkish universities through scholarships, where they are
being turned against the country and the majority community.
Baku does not have the drive, the will or the muscle to do anything that Turkey or Pakistan have.