You can stay inside Azerbaijan for a maximum of 30 days. Also, note that if you are planning to stay longer than 10 days in Azerbaijan then you need to register with the State Migration Service of the Republic of Azerbaijan once inside the country. You can do this by asking your hotel to apply on your behalf once inside the country- they will be able to assist you.