Script for configuring continuous deployment for Azure Web App (website)
Using the Azure portal, I have successfully configured Azure Continuous Deployment for the Azure Web App (website) from the GitHub or BitBucket repository.
Is it possible to automate the process using a PowerShell script? I will use a REST endpoint as needed. My search engine for a solution did not lead to anything.
+3
source to share
2 answers
This PowerShell just worked great for my continuous deployment website.
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: fooobar.com/questions/385413 / ...
+1
source to share