iis - How can i install ARR on azure VM via PowerShell? -
i have deployed project azure cloud service additionally must install application request routing (arr).
peace of .ps1 powershell command:
if( get-service ) { write-host "stopping iis , was..." stop-service -force } $filepath="%temp%\arr.msi" $process = (start-process -filepath msiexec -argumentlist /i, $filepath, /qn -wait).exitcode write-host $process if( get-service ) { start-service was,w3svc -verbose } output:
downloading msi packages... downloading msi package: d:\users\butter~1\appdata\local\temp\2\arr.msi downloaded... done. performing installation... stopping iis , was... 1619 done verbose: performing operation "start-service" on target "world wide web publishing service (w3svc)". verbose: performing operation "start-service" on target "windows process activation service (was)".
there no error doesn't install arr. can help?
i couldn't find way of doing directly through powershell. if don't mind using chocolatey can web platform installer command line (webpicmd), example:
#download , install chocolatey , through chocolatey install webpicmd iex ((new-object net.webclient).downloadstring("https://chocolatey.org/install.ps1")) cinst webpicommandline #install url rewrite , arr $webpiproducts = @('urlrewrite2', 'arrv3_0') webpicmd /install /products:"$($webpiproducts -join ',')" /accepteula more info webpicmd here: http://www.iis.net/learn/install/web-platform-installer/web-platform-installer-v4-command-line-webpicmdexe-rtw-release
inspiration chocolatey came blog post: http://www.tugberkugurlu.com/archive/script-out-everything-initialize-your-windows-azure-vm-for-your-web-server-with-iis-web-deploy-and-other-stuff
Comments
Post a Comment