Open the Connections tab of your Battle.net account;
Click Connect next to Xbox Network;

Sign in to your Xbox account;
When you’re redirected back to the Battle.net website, you’ll see a message with the result;

Click “Continue” to finish linking your accounts.