2017-03-20 4 views
0

Azure에서 Paasa로 실행중인 ASP.NET 앱 서비스는 jenkins에서 제작 한 ASP.NET 빌드를 배포하는 간단한 powershell 스크립트이므로 xcopy 만 사용하면됩니다. 작동하지 않을 수 있습니다 (FTP 없음).Powershell을 사용한 Azure 앱 서비스 배포

인터넷 주변의 리소스와 옵션이 너무 많아서 특정 입력 사항에 만족할 것입니다.

답변

0

입력 마이크를 주셔서 감사합니다. 귀하의 의견은 powershell 스크립트를 사용하여 이와 같은 결과를 얻었습니다.

#param([string]$packageFolderPath,[string]$publishProfilePath) 

[string]$packageFolderPath = "C:\Site" 
[string]$publishProfilePath = "C:\Publish\app-local1.PublishSettings" 

#Get publish-settings from file 
[xml]$xml=Get-Content($publishProfilePath) 
[string]$azureSite=$xml.publishData.publishProfile.msDeploySite.get(0) 
[string]$azureUrl=$xml.publishData.publishProfile.publishUrl.get(0) 
[string]$azureUsername=$xml.publishData.publishProfile.userName.get(0) 
[string]$azurePassword=$xml.publishData.publishProfile.userPWD.get(0) 
[string]$computerName ="`"https://$azureUrl/msdeploy.axd?site=$azureSite`"" 

msdeploy.exe -verb:sync -source:contentPath=$packageFolderPath -dest:contentPath=$azureSite,ComputerName=$computerName,UserName=$azureUsername,Password=$azurePassword,AuthType='Basic' 

Write-Output "Done !" 
1

나는 msdeploy를 살펴볼 것입니다. Azure App Services에 배포하는 것은 매우 강력한 방법입니다.

+0

네, 매우 감사합니다. 입력에 감사드립니다. 다른 해결책을보기 위해 1 일 더 기다려야합니다. – Srini

관련 문제