<t>You have to add web.config file to your root Angular2 app. That's how Azure servers (IIS Server) works.<br/>
<br/>
Im using webpack so I put it on src folder. Don't forget to copy it to your dist folder when you depploy. I used CopyWebpackPlugin to setup my webpack to copy it.<br/>
<br/>
This is the web.config file:<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
```<br/>
<br/>
It has 2 rules: <br/>
<br/>
1st rule is to redirect all calls to https. Remove it if you don't use https. <br/>
<br/>
2nd rule is to fix your problem. I got reference of 2nd rule here (thanks to user **gravityaddiction** from www.reddit.com): <br/>
[https://www.reddit.com/r/Angular2/comments/4sl719/moving_an_angular_2_app_to_a_real_server/](https://www.reddit.com/r/Angular2/comments/4sl719/moving_an_angular_2_app_to_a_real_server/)</t>