The ship captain of a vessel sailing under Azeri flag cannot be a foreigner
"Chapter 4 - Ship crew. Captain of the ship
Article 46. Citizenship of Crew Members
The crew of the vessel floating under the State Flag of the Republic of Azerbaijan may include foreigners and stateless persons in accordance with the legislation of the Republic of Azerbaijan, except for the ship captain, senior assistant of the ship captain, senior mechanic and radiologist. [...]" (Commercial Shipping Code of the Republic of Azerbaijan dated June 22, 2001 № 146-IIQ [google translated])
Commercial Shipping Code of the Republic of Azerbaijan dated June 22, 2001 № 146-IIQ [google translated]
[<a href="http://www.e-qanun.az/framework/4355">Code</a>]