Politics, Weather, Photography, and the Dog
Saturday 18 January 2014

A co-worker sent around this post from Iris Classon explaining how to set up continuous deployment in Azure. She used Visual Studio Online and Team Foundation Server. I spent about two hours this morning doing it with Visual Studio 2013 and Bitbucket. There are a couple of gotchas the way I did it:

  • First, I made a mistake, and started with the Visual Studio 2012 MVC template. There's actually a VS2013 MVC template that has better authentication features, but, well, sometimes you miss things, right?
  • Because of this, I had to add the ASP.NET Universal Providers 2.0 package from NuGet.
  • Jumping to the end, it also means I had to copy WebMatrix.Data.dll directly into the deployed Web site by FTP. It didn't get deployed through Git.
  • When I created a new Web database using the Azure portal quick-create, no amount of convincing could persuade the portal to create the database in the North Central U.S. data center just outside Chicago. Instead, it created the thing in Southeast Asia. Since the Web site was in Chicago, this was inconvenient. I wound up just adding a new database to an existing Azure server.
  • The ASP.NET universal providers required create table permissions when the application started, to create the app's membership tables. Since I had created the database on an existing server, this required me to add the application user account to the database owners role for a moment, which I don't like doing. Oh, and because it was a new database, I had to grant select, insert, update, and delete permissions to the application user account manually.

The app is pretty simple, and may not last long in its current incarnation. If you're really curious you can see it here.

The app, however, isn't the point; continuous deployment is. And I found, once I got it running, that pushing changes to the site's repository in Bitbucket updated the site transparently.

I'll play with this a little more when I have time.

Saturday 18 January 2014 13:36:32 CST (UTC-06:00)  |  | Cloud#
On this page....
Continuous deployment for Azure web sites through Git
The Daily Parker +3616d 11h 26m
Whiskey Fest 21d 22h 17m
My next birthday 331d 11h 41m
Parker's 10th birthday 251d 01h 47m
Aviation (380) Baseball (114) Best Bars (10) Biking (46) Chicago (1039) Cubs (199) Duke (134) Geography (385) Higher Ground (5) Jokes (284) Kitchen Sink (743) London (86) Parker (207) Daily (204) Photography (171) Politics (312) US (1185) World (297) Raleigh (21) Readings (8) Religion (69) San Francisco (96) Software (235) Blogs (93) Business (263) Cloud (96) Cool links (157) Security (113) Travel (302) Weather (781) Astronomy (108) Windows Azure (65) Work (112) Writing (15)
<October 2015>
Full archive
David Braverman and Parker
David Braverman is the Chief Technology Officer of Holden International in Chicago, and the creator of Weather Now. Parker is the most adorable dog on the planet, 80% of the time.
All content Copyright ©2015 David Braverman.
Creative Commons License
The Daily Parker by David Braverman is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License, excluding photographs, which may not be republished unless otherwise noted.
Admin Login
Sign In
Blog Stats
Total Posts: 4989
This Year: 375
This Month: 11
This Week: 7
Comments: 0