Browse files

Update readme and deploy script

  • Loading branch information...
1 parent 80590f4 commit 829f5ada69af3a71717502bbfb6d9485b455f413 @scottdensmore committed Feb 24, 2011
Showing with 33 additions and 17 deletions.
  1. +20 −4 README.md
  2. +7 −8 azuredeploy.msbuild
  3. +2 −1 deploy.ps1
  4. +4 −4 src/AzureDeploy.Cloud/ServiceConfiguration.cscfg
View
24 README.md
@@ -6,13 +6,29 @@ a simple build system to build and deploy your Windows Azure based solution.
## What's in this Sample
``Solution`` - an example cloud solution that includes both a worker role and
-web role.
+web role to deploy.
-``Build Scripts`` - a set of scripts to build the .
+``Build Scripts`` - a set of scripts to build the Windows Azure Commandlets.
+These have builds for each type (x86 / x64) depending on your needs. When you
+use a 32bit build msbuild, you get the 32 bit version of PowerShell (see
+msbuild script). Since this is the norm, you will need to build the 32 bit versions
+of the commandlets to install. Copy the .bat and .cmd fils into
+[place where you installed commandlets]\setup\scripts\tasks. Then run
+either installPSSnapin-x86.cmd or installPSSnapin-x64.cmd to get the version
+that works for you. When you want to uninstall run either uninstallPSSnappin-x86.bat
+or uninstallPSSnappin-x64.bat based on what you installed.
-``Deploy Powershell Scripts`` - a set of PowerShell.
+``Deploy Powershell Scripts`` - a set of PowerShell scripts that will deploy your
+Windows Azure pacakage and certificates using the Windows Azure Commandlets.
-``MSBuild Sample Build Script`` - a script .
+``MSBuild Sample Build Script`` - a script that you can use to start / customize
+for your bulds. You can then use this for your CI server to build and deploy.
## Blog Post(s)
+* Azure Deployment for your Build Server -
+<http://scottdensmore.typepad.com/blog/2010/03/azure-deployment-for-your-build-server.html>
+* Windows Azure Deployment for your Build Server Part 2 : Deploy Certs -
+<http://scottdensmore.typepad.com/blog/2010/04/windows-azure-deployment-for-your-build-server-part-2-deploy-certs.html>
+* Using MSBuild to deploy to multiple Windows Azure environments -
+<http://blogs.msdn.com/b/tomholl/archive/2011/02/23/using-msbuild-to-deploy-to-multiple-windows-azure-environments.aspx>
View
15 azuredeploy.msbuild
@@ -5,12 +5,11 @@
<!-- Azure Information -->
<PropertyGroup>
- <HostedServiceName>azuredeploy</HostedServiceName>
- <StorageAccountName>azuregoldtest</StorageAccountName>
- <StorageAccountKey>sfV0G3H2BDNyuJS9bAFvM572SbHsAYpTDGmP5QT7rmM32aRDoDSegaLMXyaYqob/YNw4/OvmlTpxUyrFsdsRuw==</StorageAccountKey>
- <DevStorageKey>UseDevelopmentStorage=true</DevStorageKey>
- <CertThumbprint>CB68800712058E8C1313C1438B8949AF7EB97609</CertThumbprint>
- <SubscriptionKey>72a6331e-b851-4380-b02f-88e36c3e758e</SubscriptionKey>
+ <HostedServiceName>YOUR SERVICE NAME</HostedServiceName>
+ <StorageAccountName>YOUR STORAGE ACCOUNT</StorageAccountName>
+ <StorageAccountKey>YOUR STORAGE ACCOUNT KEY</StorageAccountKey>
+ <ApiCertThumbprint>YOUR API CERT THUMBPRINT</ApiCertThumbprint>
+ <SubscriptionKey>YOUR SUBSCRIPTION KEY</SubscriptionKey>
<HostSlot>Staging</HostSlot>
</PropertyGroup>
@@ -81,7 +80,7 @@
<Target Name="DeployCert">
<Exec WorkingDirectory="$(MSBuildProjectDirectory)"
- Command="$(windir)\system32\WindowsPowerShell\v1.0\powershell.exe -f deploycert.ps1 $(HostedServiceName) $(CertLocation) $(CertPassword) $(CertThumbprint) $(SubscriptionKey) $(DeployCertAlgorithm) $(DeployCertThumbprint)" />
+ Command="$(windir)\system32\WindowsPowerShell\v1.0\powershell.exe -f deploycert.ps1 $(HostedServiceName) $(CertLocation) $(CertPassword) $(ApiCertThumbprint) $(SubscriptionKey) $(DeployCertAlgorithm) $(DeployCertThumbprint)" />
</Target>
<Target Name="Deploy" DependsOnTargets="BuildTasks;SetConnectionStrings;Build;DeployCert">
@@ -91,7 +90,7 @@
Properties="Configuration=$(BuildType)"/>
<Exec WorkingDirectory="$(MSBuildProjectDirectory)"
- Command="$(windir)\system32\WindowsPowerShell\v1.0\powershell.exe -f deploy.ps1 $(PackageLocation) $(PackageName) $(ServiceConfigName) $(HostedServiceName) $(CertThumbprint) $(SubscriptionKey) $(HostSlot)" />
+ Command="$(windir)\system32\WindowsPowerShell\v1.0\powershell.exe -f deploy.ps1 $(PackageLocation) $(PackageName) $(ServiceConfigName) $(HostedServiceName) $(ApiCertThumbprint) $(SubscriptionKey) $(HostSlot) $(StorageAccountName)" />
</Target>
</Project>
View
3 deploy.ps1
@@ -6,6 +6,7 @@ $thumbprint = $args[4]
$cert = Get-Item cert:\CurrentUser\My\$thumbprint
$sub = $args[5]
$slot = $args[6]
+$storage = $args[7]
$package = join-path $buildPath $packageName
$config = join-path $buildPath $serviceconfig
$a = Get-Date
@@ -34,7 +35,7 @@ if ($hostedService.Status -ne $null)
}
Get-HostedService -ServiceName $servicename -Certificate $cert -SubscriptionId $sub |
- New-Deployment -Slot $slot -Package $package -Configuration $config -Label $buildLabel -ServiceName $servicename |
+ New-Deployment -Slot $slot -Package $package -Configuration $config -Label $buildLabel -ServiceName $servicename -StorageServiceName $storage |
Get-OperationStatus -WaitToComplete
Get-HostedService -ServiceName $servicename -Certificate $cert -SubscriptionId $sub |
View
8 src/AzureDeploy.Cloud/ServiceConfiguration.cscfg
@@ -3,15 +3,15 @@
<Role name="AzureDeply.Web">
<Instances count="1" />
<ConfigurationSettings>
- <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=azuregoldtest;AccountKey=sfV0G3H2BDNyuJS9bAFvM572SbHsAYpTDGmP5QT7rmM32aRDoDSegaLMXyaYqob/YNw4/OvmlTpxUyrFsdsRuw==" />
- <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=azuregoldtest;AccountKey=sfV0G3H2BDNyuJS9bAFvM572SbHsAYpTDGmP5QT7rmM32aRDoDSegaLMXyaYqob/YNw4/OvmlTpxUyrFsdsRuw==" />
+ <Setting name="DiagnosticsConnectionString" value="UseDevelopmentStorage=true" />
+ <Setting name="DataConnectionString" value="UseDevelopmentStorage=true" />
</ConfigurationSettings>
</Role>
<Role name="AzureDeploy.WorkerRole">
<Instances count="1" />
<ConfigurationSettings>
- <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=azuregoldtest;AccountKey=sfV0G3H2BDNyuJS9bAFvM572SbHsAYpTDGmP5QT7rmM32aRDoDSegaLMXyaYqob/YNw4/OvmlTpxUyrFsdsRuw==" />
- <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=azuregoldtest;AccountKey=sfV0G3H2BDNyuJS9bAFvM572SbHsAYpTDGmP5QT7rmM32aRDoDSegaLMXyaYqob/YNw4/OvmlTpxUyrFsdsRuw==" />
+ <Setting name="DiagnosticsConnectionString" value="UseDevelopmentStorage=true" />
+ <Setting name="DataConnectionString" value="UseDevelopmentStorage=true" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>

0 comments on commit 829f5ad

Please sign in to comment.