Skip to content

Instantly share code, notes, and snippets.

@MarkRobertJohnson
Last active April 4, 2018 18:19
Show Gist options
  • Save MarkRobertJohnson/161b184adbd6cd7a799f2b9abbcf8618 to your computer and use it in GitHub Desktop.
Save MarkRobertJohnson/161b184adbd6cd7a799f2b9abbcf8618 to your computer and use it in GitHub Desktop.
Install Service Fabric
if(!(Get-Command choco -erroraction SilentlyContinue)) {
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
choco install webpicmd -y
$webpicmd = 'webpicmd'
if(!(Get-Command $webpicmd -erroraction SilentlyContinue )) {
$webpicmd = 'C:\Program Files\Microsoft\Web Platform Installer\WebpiCmd.exe'
}
& "$webpicmd" /Install /Products:MicrosoftAzure-ServiceFabric-CoreSDK /AcceptEula
& "$webpicmd" /install /Products:WindowsAzurePowershellGet /AcceptEula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment