Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Created November 27, 2015 20:53
Show Gist options
  • Select an option

  • Save Dalmirog-zz/97988e0fb62905137fb0 to your computer and use it in GitHub Desktop.

Select an option

Save Dalmirog-zz/97988e0fb62905137fb0 to your computer and use it in GitHub Desktop.
$ServiceConfigFileName = "ServiceConfiguration.Cloud.cscfg"
$CscfgFile = Get-Item $ServiceConfigFileName
If (Test-Path $CscfgFile){
Write-Output "File $ServiceConfigFileName was found on $($cscfgfile.FullName)"
}
else{
Write-Error "File $ServiceConfigFileName was not found"
}
#[xml]$cscfgcontent = Get-Content $CscfgFile
#changing the node [ServiceConfiguration.Role[0].Instances.count]
#$cscfgcontent.ServiceConfiguration.Role[0].Instances.count = "1"
#$cscfgcontent.ConfigurationSettings.Role[0].WebHostUrl = "http://test.com"
#saving the changes
#$cscfgcontent.Save($cscfgfile.FullName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment