3

Using the Azure portal I have successfully configured Azure's Continuous Deployment for an Azure Web App (Web Site) from a GitHub or BitBucket repository.

Is it possible to automate the process with a PowerShell script? If required I'll use a REST endpoint. My googling for a solution has lead me nowhere.

Tim Murphy
  • 4,892
  • 4
  • 40
  • 48

2 Answers2

1

This PowerShell just worked fine for my continuous deployment web site.

Import-Module azure*
Login-AzureRmAccount
$MyResourceGroup = 'myresourcegroupname'
$MyResourceName = 'myresourcename'
Invoke-AzureRmResourceAction -ResourceGroupName $MyResourceGroup -ResourceType Microsoft.Web/sites -ResourceName $MyResourceName -Action sync -ApiVersion 2015-08-01 -Force -Verbose

Thanks to this answer: https://stackoverflow.com/a/36501283/2805509

Community
  • 1
  • 1
JoeGasper
  • 131
  • 1
  • 2
-1

I'm sure this can be automated using PowerShell. What CI tool do you use?

I am using TeamCity and you can configure it to pull the source codes from your github or any other source control systems and then automate the deployment process using PowerShell. Work like a charm for me!

juvchan
  • 6,113
  • 2
  • 22
  • 35
  • I've edited the question to make it clear I'm using Azure's Continuous Deployment feature. i.e. my build server is Azure Web App. – Tim Murphy May 05 '15 at 19:19