function Install-NewRelicInfrastructure { <# .SYNOPSIS Installs the New Relic Infrastructure Monitor .PARAMETER serverRole The role of the Server "App,Web,DB,Report,Redis,Entrust" .PARAMETER pod The pod the server is in .PARAMETER environmentKey The environment. This usually comes from the job in teamcity #> [CmdletBinding()] Param( [Parameter(Mandatory = $true)] [string]$serverRole, [Parameter(Mandatory = $true)] [string]$pod, [Parameter(Mandatory = $false)] [Alias("Environment")] [string]$environmentKey ) $logLead = (Get-LogLeadName); Write-Verbose ("$logLead : Choco Installing New Relic Infra") choco upgrade newrelic-infra -y --no-progress Write-Host ("$logLead : Choco Installation completed") Set-InfrastructureConfiguration $serverRole $pod $environmentKey Start-Service newrelic-infra }