Skip to content
Brandon Olin edited this page Mar 6, 2016 · 4 revisions

Resolves a credential object using Dave Wyatt's ProtectedData PowerShell module.

Parameters

Name Type Required Description
Path string True The path to the exported credential XML file that has been protected using the ProtectedData module
Certificate string False The thumbprint of the certificate that can decrypt the credential XML file
Password string False The password that can decrypt the credential XML file

You must define either the Credential or Password parameter when using this resolver.

Example

resource 'POSHOrigin_vSphere:VM' 'VM01' @{
    ensure = 'present'
    description = 'Test VM'
    ###
    # Other options omitted for brevity
    ###
    vCenterCredentials = Get-POSHOriginSecret 'ProtectedData' @{
        path = '.\mycred.xml'
        certificate = '39E79A87089CBE26C3B1D36A7D20A96398D07CF9'
    }
}
resource 'POSHOrigin_vSphere:VM' 'VM01' @{
    ensure = 'present'
    description = 'Test VM'
    ###
    # Other options omitted for brevity
    ###
    guestCredentials = Get-POSHOriginSecret 'ProtectedData' @{
        path = '.\mycred.xml'
        password = 'K33p1T53cr3TK33p1T5@F3'
    }
}

Clone this wiki locally