Skip to content

Instantly share code, notes, and snippets.

View mattcorr's full-sized avatar

Matt Corr mattcorr

View GitHub Profile
@mattcorr
mattcorr / sample.xml
Created October 31, 2017 04:58
Services in the ServiceManifest.xml
</ConfigOverrides>
<Policies>
<RunAsPolicy CodePackageRef="Code" UserRef="ServiceAccount" EntryPointType="All" />
<EndpointBindingPolicy EndpointRef="ServiceHttpsEndpoint" CertificateRef="EndpointCert" />
</Policies>
</ServiceManifestImport>
@mattcorr
mattcorr / Check-Deployments.ps1
Created June 26, 2015 12:21
Powershell Script for ensuring the BTDF AppsToReference and AppsToRemove definitions are linked correctly across multiple Deployment.btdfproj files
Param ([string]$RootLocalTFSPath)
# Check the path
if (!(Test-Path $RootLocalTFSPath))
{
Write-Host "Unable to find directory '$RootLocalTFSPath'. Please check parameter and try again." -f Red
return
}
# load all Deployment.btdfproj files in the main folder
param ( [string]
[ValidateSet("Confluence", "Jira")]
$Application,
[string]
$DumpFolder = "N:\temp"
)
$currentDate = Get-Date
<#
.SYNOPSIS
This script will update a defined list of BizTalk Application's tracking settings to be enabled or disabled for all Orchestrations, Send/ReceivePorts, Pipelines and Schemas.
.DESCRIPTION
This script is based on one originally created by Sandro Pereira which was obtained from here:
http://sandroaspbiztalkblog.wordpress.com/2014/11/03/biztalk-devops-how-to-take-control-of-your-environment-disable-tracking-settings-in-biztalk-server-environment/
I have extended it to update tracking settings to be enabled or disabled for a definable list of matching BizTalk applications.
.PARAMETER NameLike
The optional Parameter that provides a LIKE clause for the BizTalk application Name. If ommitted, then all BizTalk applications will have their tracking updated.
@mattcorr
mattcorr / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mattcorr
mattcorr / create-folder.ps1
Created April 25, 2015 11:32
Create-Folder runbook
workflow Create-Folder
{
param (
[parameter(Mandatory=$true)]
[PSCredential]
$VMCredential,
[parameter(Mandatory=$true)]
[Uri]
$VMUri,
@mattcorr
mattcorr / blank-workflow.ps1
Created April 25, 2015 11:31
Blank Workflow
workflow ScriptName
{
}
@mattcorr
mattcorr / azure-ad-test.ps1
Created April 25, 2015 08:55
azure ad test workflow
workflow Azure-AD-Test
{
# Get required variables
$cred = Get-AutomationPSCredential -Name 'Automation Account'
$subName = Get-AutomationVariable -Name 'Subscription Name'
$vmCred = Get-AutomationPSCredential -Name 'VM Account'
#perform authentication
Add-AzureAccount -Credential $cred
Select-AzureSubscription -SubscriptionName $subName