Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit 98451f4

Browse files
committed
Updated README with instructions on how to publish the TodoListService to Azure Web Sites
1 parent 71d6f87 commit 98451f4

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,26 @@ Explore the sample by signing in, adding items to the To Do list, removing the u
145145

146146
## How To Deploy This Sample to Azure
147147

148-
Coming soon.
148+
To deploy the TodoListService to Azure Web Sites, you will create a web site, publish the TodoListService to the web site, and update the TodoListClient to call the web site instead of IIS Express.
149+
150+
### Create and Publish the TodoListService to an Azure Web Site
151+
152+
1. Sign in to the [Azure management portal](https://manage.windowsazure.com).
153+
2. Click on Web Sites in the left hand nav.
154+
3. Click New in the bottom left hand corner, select Compute --> Web Site --> Quick Create, select the hosting plan and region, and give your web site a name, e.g. todolistservice-contoso.azurewebsites.net. Click Create Web Site.
155+
4. Once the web site is created, click on it to manage it. For this set of steps, download the publish profile and save it. Other deployment mechanisms, such as from source control, can also be used.
156+
5. Switch to Visual Studio and go to the TodoListService project. Right click on the project in the Solution Explorer and select Publish. Click Import, and import the publish profile that you just downloaded.
157+
6. On the Connection tab, update the Destination URL so that it is https, for example https://todolistservice-skwantoso.azurewebsites.net. Click Next.
158+
7. On the Settings tab, make sure Enable Organizational Authentication is NOT selected. Click Publish.
159+
8. Visual Studio will publish the project and automatically open a browser to the URL of the project. If you see the default web page of the project, the publication was successful.
160+
161+
### Update the TodoListClient to call the TodoListService Running in Azure Web Sites
162+
163+
1. In Visual Studio, go to the TodoListClient project.
164+
2. Open `app.config`. Only one change is needed - update the `todo:TodoListBaseAddress` key value to be the address of the website you published, e.g. https://todolistservice-skwantoso.azurewebsites.net.
165+
3. Run the client! If you are trying multiple different client types (e.g. .Net, Windows Store, Android, iOS) you can have them all call this one published web API.
166+
167+
NOTE: Remember, the To Do list is stored in memory in this TodoListService sample. Azure Web Sites will spin down your web site if it is inactive, and your To Do list will get emptied. Also, if you increase the instance count of the web site, requests will be distributed among the instances and the To Do will not be the same on each instance.
149168

150169
## About The Code
151170

0 commit comments

Comments
 (0)