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)  | Comments [0] | Cloud#
Search
On this page....
Continuous deployment for Azure web sites through Git
Countdowns
The Daily Parker +3078d 11h 01m
To San Francisco 35d 12h 43m
Parker's 8th birthday 58d 02h 13m
My next birthday 139d 00h 30m
Categories
Aviation (300) Baseball (100) Best Bars (4) Biking (42) Chicago (826) Cubs (179) Duke (131) Geography (300) Higher Ground (5) Jokes (282) Kitchen Sink (578) London (32) Parker (180) Daily (204) Photography (134) Politics (302) US (1015) World (223) Raleigh (20) Readings (8) Religion (61) San Francisco (77) Software (185) Blogs (67) Business (203) Cloud (79) Cool links (122) Security (94) Travel (140) Weather (652) Astronomy (72) Windows Azure (46) Work (26) Writing (7)
Links
Archive
<April 2014>
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
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: 4263
This Year: 161
This Month: 26
This Week: 10
Comments: 0