< Back

New-ALPlatformLayer

Mon Jan 13, 2020 7:47 am

NAME New-ALPlatformLayer



SYNOPSIS

Creates new platform layer





SYNTAX

New-ALPlatformLayer [-websession] <Object> [-osrevid] <String> [-connectorid] <String> [[-Description] <String>]

[-shareid] <String> [[-iconid] <String>] [-name] <String> [[-size] <String>] [-diskformat] <String>

[[-platformrevid] <String>] [-type] <String> [[-HypervisorPlatformTypeId] <String>] [[-ProvisioningPlatformTypeId]

<String>] [[-BrokerPlatformTypeId] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Creates new platform layer





PARAMETERS

-websession <Object>

Existing Webrequest session for ELM Appliance



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-osrevid <String>

OS version layer id to use



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-connectorid <String>

ID of Connector to use



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>

Description of the layer



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-shareid <String>

ID of file share



Required? true

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-iconid <String>



Required? false

Position? 6

Default value 196608

Accept pipeline input? false

Accept wildcard characters? false



-name <String>

Name of the layer



Required? true

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-size <String>

Size of layer in GB (default 10240)



Required? false

Position? 8

Default value 10240

Accept pipeline input? false

Accept wildcard characters? false



-diskformat <String>

Disk format of the image



Required? true

Position? 9

Default value

Accept pipeline input? false

Accept wildcard characters? false



-platformrevid <String>

Platform version ID if needed



Required? false

Position? 10

Default value

Accept pipeline input? false

Accept wildcard characters? false



-type <String>

Type of platform layer to create (Create or Publish)



Required? true

Position? 11

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HypervisorPlatformTypeId <String>

Hypervisor type of platform layer (default=vsphere)



Required? false

Position? 12

Default value vsphere

Accept pipeline input? false

Accept wildcard characters? false



-ProvisioningPlatformTypeId <String>

Provisioning type MCS or PVS (default=mcs)



Required? false

Position? 13

Default value mcs

Accept pipeline input? false

Accept wildcard characters? false



-BrokerPlatformTypeId <String>

Broker type used (default=xendesktop)



Required? false

Position? 14

Default value xendesktop

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$fileshare = Get-ALRemoteshare -websession $websession



$connector = Get-ALconnector -websession $websession -type Create|where{$_.name -eq "MYvCenter"}

$oss = Get-ALOsLayer -websession $websession|where{$_.name -eq "Windows 2016 Standard"}

$osrevs = get-aloslayerdetail -websession $websession -id $oss.id

$osrevid = $osrevs.Revisions.OsLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision

-Descending|select -First 1

New-ALPlatformLayer -websession $websession -osrevid $osrevid.Id -name "Citrix XA VDA 7.18" -connectorid

$connector.id -shareid $fileshare.id -diskformat $connector.ValidDiskFormats.DiskFormat -type Create











RELATED LINKS