According to the Ministry of Human Resources and Emiratisation, those employees under the limited contracts, must complete the term of the contract to avoid a year bam from working in the United Arab Emirates. 

While those you are still under the unlimited contacts, should inform his or her employer ahead of time about the resignation then complete the assigned notice period. 

Thus, in a legislation under the Ministerial Decree No. 1186 of 2010 concerning the controls and conditions for granting a new work permit for worker after the end of the working relationship and other relevant decisions. 

Source: MOHRE