Hi Tahir,
You are not the only one who is having this pain, since you have completed 1.5 years then I suggests you to bear 6 more months and then you can resign. This is the rule in Dubai, I am not sure about Ajman. You can always contact your relevant consulate and they will guide you. Good luck