Don't know where you reside, but rosemary is one of the easiest plants to grow
we live with very hot summers and frosty winters. it lives through it all. It can also be kept on a patio, in winter and it will be fine.
There are several types, I prefer the one that grows low and out. Check with your local nurseries for what grows best where you live. It really is nice to have the fresh rosemary.