It is extremely unlikely that you will be entitled to permanent alimony under these circumstances. The length of the marriage is an important factor. But, you may be entitled to spousal support, during a separation or during the pendency of a divorce, for a period of time depending on what your husband's salary is and what your ability to find employment is. Your question does not make clear whether either of you has filed for divorce or whether you are presently separated.
During the pendency of your divorce, the courts customarily maintain the status quo, by assuring bills are paid by each party as they were before the separation. This is especially true if there is a home. Other than this, a marriage of two years duration may qualify for "rehabilitation alimony" if you can prove some type of reliance, such as your having quit your job. The alimony would be for a short time, enough to get yourself a job or finish some type of education you may have started.
It is unlikely that two years is long enough for alimony.
DISCLAIMER This answer is provided for educational purposes only. By using or participating in this site you agree and understand that there is no attorney client privilege between you and the attorney responding. This site cannot be used as a substitute for competent legal advice from a licensed attorney that practices law in the State where this offense is charged; and, who has experience in the area of law you are asking questions about and with whom you would have an attorney client relationship. The law changes frequently and varies from jurisdiction to jurisdiction. The information and materials provided are general in nature, and may not apply to a specific factual or legal circumstance described in the question, or in the State where this charge is filed
The length of the marriage is a key factor in an alimoy analysis. Without having more facts, it is difficult to assess the situation fully. However, absent something unusual having happened it is difficult to get alimony with a 2 year marriage and if you get it, it will be for less than 2 years.
Sign up to receive a 10-part series of useful information and legal advice about the divorce process.