< Back

New-ALPlatformLayerRev

Mon Jan 13, 2020 7:49 am

NAME New-ALPlatformLayerRev



SYNOPSIS

Creates new platform layer version





SYNTAX

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

<String>] [-shareid] <String> [-layerid] <String> [-layerrevid] <String> [-version] <String> [-Diskname] <String>

[[-size] <String>] [-diskformat] <String> [[-HypervisorPlatformTypeId] <String>] [[-ProvisioningPlatformTypeId]

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





DESCRIPTION

Creates new platform layer version





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



-layerid <String>

Platform layer ID



Required? true

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-layerrevid <String>

Version ID to base version from



Required? true

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-version <String>

Version of the new layer



Required? true

Position? 8

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Diskname <String>

Disk file name



Required? true

Position? 9

Default value

Accept pipeline input? false

Accept wildcard characters? false



-size <String>

Size of layer in MB (default 10240)



Required? false

Position? 10

Default value 10240

Accept pipeline input? false

Accept wildcard characters? false



-diskformat <String>

Disk format of the image



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:\\>$connector = Get-ALconnector -websession $websession -type "Create"



$shares = get-alremoteshare -websession $websession

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

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

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

-Descending|select -First 1

$plats = Get-ALPlatformlayer -websession $websession|where{$_.name -eq "Windows 10 VDA"}

$platrevs = get-alplatformlayerDetail -websession $websession -id $plats.id

$platformrevid = $platrevs.Revisions.PlatformLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object

revision -Descending|select -First 1



$params = @{

websession = $websession;

osrevid = $osrevid.Id;

connectorid = $connector.Id;

shareid = $shares.id;

layerid = $plats.Id;

layerrevid = $platformrevid.id;

version = "5.0";

Diskname = $plats.Name;

Verbose = $true;

Description = "test";

diskformat = $connector.ValidDiskFormats.DiskFormat;











RELATED LINKS