< Back
Invoke-ALLayerFinalize
Post
NAME Invoke-ALLayerFinalize
SYNOPSIS
Runs finalize process on a layer
SYNTAX
Invoke-ALLayerFinalize [-websession] <Object> [-fileshareid] <String> [-LayerRevisionId] <String> [-uncpath]
<String> [-filename] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Runs finalize process on a layer
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-fileshareid <String>
ID of file share location used to store disk
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LayerRevisionId <String>
Revision ID of layer to be finalized
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-uncpath <String>
UNC Path of fileshare
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-filename <String>
Filename of the disk
Required? true
Position? 5
Default value
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:\\>$app = Get-ALapplayer -websession $websession|where{$_.name -eq "7-Zip"}
$apprevs = get-alapplayerdetail -websession $websession -id $app.Id
$shares = get-alremoteshare -websession $websession
$apprevid = $apprevs.Revisions.AppLayerRevisionDetail|where{$_.state -eq "Finalizable"}|Sort-Object revision
-Descending|select -First 1
$disklocation = get-allayerinstalldisk -websession $websession -layerid $apprevid.LayerId
invoke-allayerfinalize -websession $websession -fileshareid $shares.id -LayerRevisionId $apprevid.Id -uncpath
$disklocation.diskuncpath -filename $disklocation.diskname
RELATED LINKS
SYNOPSIS
Runs finalize process on a layer
SYNTAX
Invoke-ALLayerFinalize [-websession] <Object> [-fileshareid] <String> [-LayerRevisionId] <String> [-uncpath]
<String> [-filename] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Runs finalize process on a layer
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-fileshareid <String>
ID of file share location used to store disk
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LayerRevisionId <String>
Revision ID of layer to be finalized
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-uncpath <String>
UNC Path of fileshare
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-filename <String>
Filename of the disk
Required? true
Position? 5
Default value
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:\\>$app = Get-ALapplayer -websession $websession|where{$_.name -eq "7-Zip"}
$apprevs = get-alapplayerdetail -websession $websession -id $app.Id
$shares = get-alremoteshare -websession $websession
$apprevid = $apprevs.Revisions.AppLayerRevisionDetail|where{$_.state -eq "Finalizable"}|Sort-Object revision
-Descending|select -First 1
$disklocation = get-allayerinstalldisk -websession $websession -layerid $apprevid.LayerId
invoke-allayerfinalize -websession $websession -fileshareid $shares.id -LayerRevisionId $apprevid.Id -uncpath
$disklocation.diskuncpath -filename $disklocation.diskname
RELATED LINKS