Hi! Good Day!
Once you signed and accepted the offer letter, you and the employer are already into a legal contract hence, termination of the contract will be as per UAE labour law and as per company policy. Article 16 of UAE Labour Law states: “If the contract has been terminated on part of the employee ... the employee becomes liable for compensating the employer against losses incurred by him in consequence of contract termination, provided that the amount of compensation may not exceed half a month’s pay for a period of three months or for the remaining period of contract, whichever is shorter, unless the terms of the contract provide otherwise.”
If you signed a limited contract, you are obliged to finish the 2 years contract, if its Unlimited Contract, you can resign after completing your 6 months probationary period. But take note, once you did not comply with the terms and conditions in terminating your contract, you might get a labour ban which mean you are not allowed to work in any organization except Freezone Companies and Government.
Hope you find your answer here.