DSCResources/VE_XD7Catalog/VE_XD7Catalog.psm1

Import-LocalizedData -BindingVariable localizedData -FileName VE_XD7Catalog.Resources.psd1;

function Get-TargetResource
{
    [CmdletBinding()]
    [OutputType([System.Collections.Hashtable])]
    param
    (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [System.String] $Name,

        [Parameter(Mandatory)]
        [ValidateSet('Permanent','Random','Static')]
        [System.String] $Allocation,

        [Parameter(Mandatory)]
        [ValidateSet('Manual','PVS','MCS')]
        [System.String] $Provisioning,

        [Parameter(Mandatory)]
        [ValidateSet('Discard','Local','PVD')]
        [System.String] $Persistence,

        [Parameter()]
        [ValidateNotNull()]
        [System.Boolean] $IsMultiSession = $false,

        [Parameter()]
        [AllowNull()]
        [System.String] $MinimumFunctionalLevel,

        [Parameter()]
        [AllowNull()]
        [System.String] $Description,

        [Parameter()]
        [AllowNull()]
        [System.String] $PvsAddress,

        [Parameter()]
        [AllowNull()]
        [System.String] $PvsDomain,

        [Parameter()]
        [ValidateSet('Present','Absent')]
        [System.String] $Ensure = 'Present',

        [Parameter()]
        [AllowNull()]
        [System.Management.Automation.PSCredential]
        [System.Management.Automation.CredentialAttribute()]
        $Credential
    )
    begin
    {
        AssertXDModule -Name 'Citrix.Broker.Admin.V2' -IsSnapin;
    }
    process
    {
        $scriptBlock = {

            Add-PSSnapin -Name 'Citrix.Broker.Admin.V2' -ErrorAction Stop;
            $brokerCatalog = Get-BrokerCatalog -Name $using:Name -ErrorAction SilentlyContinue;

            $targetResource = @{
                Name = $brokerCatalog.Name
                Allocation = [System.String] $brokerCatalog.AllocationType
                Provisioning = [System.String] $brokerCatalog.ProvisioningType
                Description = $brokerCatalog.Description
                MinimumFunctionalLevel = $brokerCatalog.MinimumFunctionalLevel
                PvsAddress = $brokerCatalog.PvsAddress
                PvsDomain = $brokerCatalog.PvsDomain
                IsMultiSession = $brokerCatalog.SessionSupport -eq 'MultiSession'
                Ensure = $using:Ensure
            }

            switch ($brokerCatalog.PersistUserChanges)
            {
                'OnLocal'
                {
                    $targetResource['Persistence'] = 'Local'
                }
                'OnPvd'
                {
                    $targetResource['Persistence'] = 'PVD'
                }
                'Discard'
                {
                    $targetResource['Persistence'] = 'Discard'
                }
            }

            return $targetResource

        } #end scriptBlock

        $invokeCommandParams = @{
            ScriptBlock = $scriptBlock
            ErrorAction = 'Stop'
        }

        Write-Verbose ($localizedData.InvokingScriptBlockWithParams -f [System.String]::Join("','", @($Name)))
        if ($Credential)
        {
            AddInvokeScriptBlockCredentials -Hashtable $invokeCommandParams -Credential $Credential
            $targetResource = Invoke-Command @invokeCommandParams
        }
        else
        {
            $invokeScriptBlock = [System.Management.Automation.ScriptBlock]::Create($scriptBlock.ToString().Replace('$using:','$'))
            $targetResource = InvokeScriptBlock -ScriptBlock $invokeScriptBlock
        }
        return $targetResource

    } #end process
} #end function Get-TargetResource


function Test-TargetResource
{
    [CmdletBinding()]
    [OutputType([System.Boolean])]
    param
    (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [System.String] $Name,

        [Parameter(Mandatory)]
        [ValidateSet('Permanent','Random','Static')]
        [System.String] $Allocation,

        [Parameter(Mandatory)]
        [ValidateSet('Manual','PVS','MCS')]
        [System.String] $Provisioning,

        [Parameter(Mandatory)]
        [ValidateSet('Discard','Local','PVD')]
        [System.String] $Persistence,

        [Parameter()]
        [ValidateNotNull()]
        [System.Boolean] $IsMultiSession = $false,

        [Parameter()]
        [AllowNull()]
        [System.String] $MinimumFunctionalLevel,

        [Parameter()]
        [AllowNull()]
        [System.String] $Description,

        [Parameter()]
        [AllowNull()]
        [System.String] $PvsAddress,

        [Parameter()]
        [AllowNull()]
        [System.String] $PvsDomain,

        [Parameter()]
        [ValidateSet('Present','Absent')]
        [System.String] $Ensure = 'Present',

        [Parameter()]
        [AllowNull()]
        [System.Management.Automation.PSCredential]
        [System.Management.Automation.CredentialAttribute()]
        $Credential
    )
    process
    {

        $PSBoundParameters['Ensure'] = $Ensure
        $targetResource = Get-TargetResource @PSBoundParameters
        $inCompliance = $true

        foreach ($property in $PSBoundParameters.Keys)
        {
            if ($targetResource.ContainsKey($property))
            {
                if ($targetResource[$property] -ne $PSBoundParameters[$property])
                {
                    Write-Verbose ($localizedData.ResourcePropertyMismatch -f $property, $PSBoundParameters[$property], $targetResource[$property])
                    $inCompliance = $false
                }
            }
        }

        if ($inCompliance)
        {
            Write-Verbose ($localizedData.ResourceInDesiredState -f $Name)
        }
        else
        {
            Write-Verbose ($localizedData.ResourceNotInDesiredState -f $Name)
        }

        return $inCompliance

    } #end process
} #end function Test-TargetResource


function Set-TargetResource
{
    [CmdletBinding()]
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
    param
    (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [System.String] $Name,

        [Parameter(Mandatory)]
        [ValidateSet('Permanent','Random','Static')]
        [System.String] $Allocation,

        [Parameter(Mandatory)]
        [ValidateSet('Manual','PVS','MCS')]
        [System.String] $Provisioning,

        [Parameter(Mandatory)]
        [ValidateSet('Discard','Local','PVD')]
        [System.String] $Persistence,

        [Parameter()]
        [ValidateNotNull()]
        [System.Boolean] $IsMultiSession = $false,

        [Parameter()]
        [AllowNull()]
        [System.String] $Description,

        [Parameter()]
        [AllowNull()]
        [System.String] $MinimumFunctionalLevel,

        [Parameter()]
        [AllowNull()]
        [System.String] $PvsAddress,

        [Parameter()]
        [AllowNull()]
        [System.String] $PvsDomain,

        [Parameter()]
        [ValidateSet('Present','Absent')]
        [System.String] $Ensure = 'Present',

        [Parameter()]
        [AllowNull()]
        [System.Management.Automation.PSCredential]
        [System.Management.Automation.CredentialAttribute()]
        $Credential
    )
    begin
    {
        AssertXDModule -Name 'Citrix.Broker.Admin.V2' -IsSnapin
    }
    process
    {
        $scriptBlock = {

            Add-PSSnapin -Name 'Citrix.Broker.Admin.V2' -ErrorAction Stop
            $brokerCatalog = Get-BrokerCatalog -Name $using:Name -ErrorAction SilentlyContinue

            if ($using:Ensure -eq 'Present')
            {
                if ($brokerCatalog)
                {
                    $recreateMachineCatalog = $false
                    if ($brokerCatalog.AllocationType -ne $using:Allocation)
                    {
                        Write-Warning ($using:localizedData.ChangingMachineCatalogUnsupportedWarning -f $using:Name, 'Allocation')
                        $recreateMachineCatalog = $true
                    }
                    elseif ($brokerCatalog.ProvisioningType -ne $using:Provisioning)
                    {
                        Write-Warning ($using:localizedData.ChangingMachineCatalogUnsupportedWarning -f $using:Name, 'Provisioning')
                        $recreateMachineCatalog = $true
                    }
                    elseif (($brokerCatalog.PersistUserChanges -replace 'On', '') -ne $using:Persistence)
                    {
                        Write-Warning ($using:localizedData.ChangingMachineCatalogUnsupportedWarning -f $using:Name, 'Persistence')
                        $recreateMachineCatalog = $true
                    }
                    elseif ($brokerCatalog.SessionSupport -eq 'Multisession' -and $using:IsMultiSession -ne $true)
                    {
                        Write-Warning ($using:localizedData.ChangingMachineCatalogUnsupportedWarning -f $using:Name, 'Session')
                        $recreateMachineCatalog = $true
                    }

                    if ($recreateMachineCatalog)
                    {
                        Write-Verbose ($using:localizedData.RemovingMachineCatalog -f $using:Name)
                        [ref] $null = Remove-BrokerCatalog -Name $using:Name
                        $brokerCatalog = $null
                    }
                    else
                    {
                        Write-Verbose ($using:localizedData.UpdatingMachineCatalog -f $using:Name)
                        $setBrokerCatalogParams = @{
                            Name = $using:Name
                            Description = $using:Description
                        }

                        if ($using:MinimumFunctionalLevel)
                        {
                            $setBrokerCatalogParams['MinimumFunctionalLevel'] = $using:MinimumFunctionalLevel
                        }
                        if ($using:PvsDomain)
                        {
                            $setBrokerCatalogParams['PvsDomain'] = $using:PvsDomain
                        }
                        if ($using:PvsAddress)
                        {
                            $setBrokerCatalogParams['PvsAddress'] = $using:PvsAddress
                        }

                        [ref] $null = Set-BrokerCatalog @setBrokerCatalogParams

                    }
                } #end if brokerCatalog

                if (-not $brokerCatalog)
                {
                    $newBrokerCatalogParams = @{
                        Name = $using:Name
                        AllocationType = $using:Allocation
                        SessionSupport = 'SingleSession'
                        ProvisioningType = $using:Provisioning
                        PersistUserChanges = 'Discard'
                    }

                    if ($using:Provisioning -eq 'Manual')
                    {
                        $newBrokerCatalogParams['MachinesArePhysical'] = $true
                    }
                    if ($using:Description)
                    {
                        $newBrokerCatalogParams['Description'] = $using:Description
                    }
                    if ($using:PvsAddress)
                    {
                        $newBrokerCatalogParams['PvsAddress'] = $using:PvsAddress
                    }
                    if ($using:PvsDomain)
                    {
                        $newBrokerCatalogParams['PvsDomain'] = $using:PvsDomain
                    }
                    if ($using:IsMultiSession)
                    {
                        $newBrokerCatalogParams['SessionSupport'] = 'MultiSession'
                    }
                    if ($using:Persistence -eq 'Local')
                    {
                        $newBrokerCatalogParams['PersistUserChanges'] = 'OnLocal'
                    }
                    elseif ($using:Persistence -eq 'PVD')
                    {
                        $newBrokerCatalogParams['PersistUserChanges'] = 'OnPvd'
                    }
                    if ($using:MinimumFunctionalLevel)
                    {
                        $newBrokerCatalogParams['MinimumFunctionalLevel'] = $MinimumFunctionalLevel
                    }

                    Write-Verbose ($using:localizedData.CreatingMachineCatalog -f $using:Name)
                    [ref] $null = New-BrokerCatalog @newBrokerCatalogParams
                }
            }
            else
            {
                Write-Verbose ($using:localizedData.RemovingMachineCatalog -f $using:Name)
                [ref] $null = Remove-BrokerCatalog -Name $using:Name
            }

        } #end scriptBlock

        $invokeCommandParams = @{
            ScriptBlock = $scriptBlock
            ErrorAction = 'Stop'
        }

        $scriptBlockParams = @($Name, $Ensure, $Allocation, $Provisioning, $Persistence, $IsMultiSession, $Description, $PvsAddress, $PvsDomain)
        Write-Verbose ($localizedData.InvokingScriptBlockWithParams -f [System.String]::Join("','", $scriptBlockParams))
        if ($Credential)
        {
            AddInvokeScriptBlockCredentials -Hashtable $invokeCommandParams -Credential $Credential
            [ref] $null = Invoke-Command @invokeCommandParams
        }
        else
        {
            $invokeScriptBlock = [System.Management.Automation.ScriptBlock]::Create($scriptBlock.ToString().Replace('$using:','$'))
            [ref] $null = InvokeScriptBlock -ScriptBlock $invokeScriptBlock
        }

    } #end process
} #end function Set-TargetResource


## Import the XD7Common library functions
$moduleRoot = Split-Path -Path $MyInvocation.MyCommand.Path -Parent;
$moduleParent = Split-Path -Path $moduleRoot -Parent;
Import-Module (Join-Path -Path $moduleParent -ChildPath 'VE_XD7Common');

## Import the InvokeScriptBlock function into the current scope
. (Join-Path -Path (Join-Path -Path $moduleParent -ChildPath 'VE_XD7Common') -ChildPath 'InvokeScriptBlock.ps1');

Export-ModuleMember -Function *-TargetResource;

# SIG # Begin signature block
# MIIm9AYJKoZIhvcNAQcCoIIm5TCCJuECAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUcL/DfSbO9P7Q5E3Kc5lJ+Z7x
# hbOggiCcMIIFjTCCBHWgAwIBAgIQDpsYjvnQLefv21DiCEAYWjANBgkqhkiG9w0B
# AQwFADBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD
# VQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVk
# IElEIFJvb3QgQ0EwHhcNMjIwODAxMDAwMDAwWhcNMzExMTA5MjM1OTU5WjBiMQsw
# CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu
# ZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQw
# ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz
# 7MKnJS7JIT3yithZwuEppz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS
# 5F/WBTxSD1Ifxp4VpX6+n6lXF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