< Back
New-ALAppLayerRev
Post
NAME New-ALAppLayerRev
SYNOPSIS
Creates a new layer version
SYNTAX
New-ALAppLayerRev [-websession] <Object> [-version] <String> [-name] <String> [[-description] <String>]
[-connectorid] <String> [-appid] <String> [-apprevid] <String> [-osrevid] <String> [[-platformrevid] <String>]
[-diskformat] <String> [-fileshareid] <String> [[-size] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new 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
-version <String>
Version of the revision
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the layer revision
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <String>
Description of the revision
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-connectorid <String>
ID of Connector to use
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-appid <String>
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-apprevid <String>
Base application version layer id to use
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
OS version layer id to use
Required? true
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
-platformrevid <String>
Platform version ID if needed
Required? false
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-diskformat <String>
Diskformat to store layer
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-fileshareid <String>
Required? true
Position? 11
Default value
Accept pipeline input? false
Accept wildcard characters? false
-size <String>
Size of layer in GB (default 10240)
Required? false
Position? 12
Default value 10240
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"}
$app = Get-ALapplayer -websession $websession|where{$_.name -eq "7-Zip"}
$oss = Get-ALOsLayer -websession $websession
$osrevs = get-aloslayerdetail -websession $websession -id $app.AssociatedOsLayerId
$osrevid = $osrevs.Revisions.OsLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision
-Descending|select -First 1
$apprevs = get-alapplayerDetail -websession $websession -id $app.Id
$apprevid = $apprevs.Revisions.AppLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision
-Descending|select -First 1
new-alapplayerrev -websession $websession -version "9.0" -name $app.Name -connectorid $connector.id -appid $app.Id
-apprevid $apprevid.id -osrevid $osrevid.Id -diskformat $connector.ValidDiskFormats.DiskFormat -fileshareid
$fileshare.id
RELATED LINKS
SYNOPSIS
Creates a new layer version
SYNTAX
New-ALAppLayerRev [-websession] <Object> [-version] <String> [-name] <String> [[-description] <String>]
[-connectorid] <String> [-appid] <String> [-apprevid] <String> [-osrevid] <String> [[-platformrevid] <String>]
[-diskformat] <String> [-fileshareid] <String> [[-size] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new 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
-version <String>
Version of the revision
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the layer revision
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <String>
Description of the revision
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-connectorid <String>
ID of Connector to use
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-appid <String>
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-apprevid <String>
Base application version layer id to use
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
OS version layer id to use
Required? true
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
-platformrevid <String>
Platform version ID if needed
Required? false
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-diskformat <String>
Diskformat to store layer
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-fileshareid <String>
Required? true
Position? 11
Default value
Accept pipeline input? false
Accept wildcard characters? false
-size <String>
Size of layer in GB (default 10240)
Required? false
Position? 12
Default value 10240
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"}
$app = Get-ALapplayer -websession $websession|where{$_.name -eq "7-Zip"}
$oss = Get-ALOsLayer -websession $websession
$osrevs = get-aloslayerdetail -websession $websession -id $app.AssociatedOsLayerId
$osrevid = $osrevs.Revisions.OsLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision
-Descending|select -First 1
$apprevs = get-alapplayerDetail -websession $websession -id $app.Id
$apprevid = $apprevs.Revisions.AppLayerRevisionDetail|where{$_.state -eq "Deployable"}|Sort-Object revision
-Descending|select -First 1
new-alapplayerrev -websession $websession -version "9.0" -name $app.Name -connectorid $connector.id -appid $app.Id
-apprevid $apprevid.id -osrevid $osrevid.Id -diskformat $connector.ValidDiskFormats.DiskFormat -fileshareid
$fileshare.id
RELATED LINKS