Public/ps1/Configuration/Install-LeftConnectionBase.ps1



### Storing the remote connection credentials on a save way
function Install-LeftConnectionBase{
    param(
        [Parameter(Mandatory)]
        [String]$Tenant,
                
        $Credential,
        [String] $LogFolder,
        [int] $LogHours,
        [int] $LogRetention
    )
    
    
    Set-ConfigurationValue -name UserName -value $Credential.UserName
    Set-ConfigurationValue -name Tenant -value $Tenant
    Set-ConfigurationValue -name Password -value ($Credential.Password | ConvertFrom-SecureString)

    Set-LogConfiguration -LogFilder $LogFolder -LogHours $LogHours -LogRetention $LogRetention


}