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.
答案 0 :(得分:1)
此PowerShell在我的持续部署网站上运行良好。
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
答案 1 :(得分:-1)
我确信这可以使用PowerShell自动完成。 您使用什么CI工具?
我正在使用TeamCity,您可以将其配置为从github或任何其他源控制系统中提取源代码,然后使用PowerShell自动执行部署过程。像我的魅力一样工作!