ps/Modules/Alkami.DevOps.Certificates/Public/Get-SecretServerConnection.ps1
2023-05-30 22:51:22 -07:00

27 lines
666 B
PowerShell

function Get-SecretServerConnection {
<#
.SYNOPSIS
Exports a [SecretServerConnection] which can be used from Powershell's commandline. Largely for testing purposes.
.PARAMETER Site
The uri for the Secret Server to connect to.
.PARAMETER userName
Secret Server username.
.PARAMETER password
Secret Server password.
#>
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[string]$Site,
[Parameter(Mandatory = $true)]
[string]$UserName,
[Parameter(Mandatory = $true)]
[string]$Password
)
return [SecretServerConnection]::new([string]$Site, [string]$UserName, [string]$Password);
}