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#
Search
On this page....
Continuous deployment for Azure web sites through Git
Countdowns
The Daily Parker +3214d 07h 41m
My next birthday 3d 03h 49m
To London 44d 14h 37m
Parker's 9th birthday 287d 05h 32m
Categories
Aviation (327) Baseball (110) Best Bars (5) Biking (44) Chicago (872) Cubs (197) Duke (132) Geography (316) Higher Ground (5) Jokes (282) Kitchen Sink (626) London (41) Parker (186) Daily (204) Photography (139) Politics (302) US (1069) World (245) Raleigh (20) Readings (8) Religion (62) San Francisco (86) Software (196) Blogs (72) Business (223) Cloud (89) Cool links (130) Security (98) Travel (180) Weather (678) Astronomy (79) Windows Azure (59) Work (45) Writing (8)
Links
Archive
<September 2014>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Full archive
Blogroll
About
David Braverman and Parker
David Braverman is a software developer in Chicago, and the creator of Weather Now. Parker is the most adorable dog on the planet, 80% of the time.
Legal
All content Copyright ©2014 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: 4449
This Year: 347
This Month: 2
This Week: 3
Comments: 0