Prepare for It. In this case, all you can do is politely deliver your resignation, then strive to make the transition as easy as possible for your team. Your manager may not have the ideal reaction to your news__and your workplace may not be the most pleasant environment for the next two weeks__but to avoid burning bridges, it's best to work through it with a positive attitude.
Acceptance With Grace. The best_case scenario__and honestly, the most common reaction__is that your boss will accept your resignation with understanding and sincere congratulations. Your manager will be happy to see that you're advancing your career and moving on to something bigger and better.