Skip to content

Instantly share code, notes, and snippets.

@robdmoore
Created June 18, 2014 14:38
Show Gist options
  • Save robdmoore/dcd325e0ee73493ff1b7 to your computer and use it in GitHub Desktop.
Save robdmoore/dcd325e0ee73493ff1b7 to your computer and use it in GitHub Desktop.
PowerShell to get a publish settings file in a semi-automated way
$scriptpath = $(Split-Path $MyInvocation.MyCommand.Path)
cd $scriptpath
if (-not (ls *.publishsettings | Test-Any)) {
Write-Warning "Please save a .publishsettings file to this folder"
start .
Get-AzurePublishSettingsFile
exit 1
}
Import-AzurePublishSettingsFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment