Public/Connect-F5.ps1

function Connect-F5 {
<#
.SYNOPSIS
    Helper function to connect to an F5 using POSH F5-LTM module
.NOTES
    Creates a global varibale so that add-on functions can utilise the F5-LTM object for connectons
    Requires F5-LTM modules from github
#>


    param(

            [Alias('F5 IP Address')]
            [Parameter(Mandatory=$true)]
            [string]$ip=''

        )

    $creds = Get-Credential

   
    $Global:F5Session = New-F5Session -LTMName $ip -LTMCredentials $creds -Default -PassThru
}