< Back
New-ALOsLayerRev
Post
NAME New-ALOsLayerRev
SYNOPSIS
Creates new OS layer version
SYNTAX
New-ALOsLayerRev [-websession] <Object> [-version] <String> [[-description] <String>] [-connectorid] <String>
[-osid] <String> [-osrevid] <String> [[-platformrevid] <String>] [-diskformat] <String> [-shareid] <String>
[-name] <String> [[-size] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates new OS 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 new layer
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <String>
Description of the layer
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-connectorid <String>
ID of Connector to use
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osid <String>
Operating system layer ID
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
OS version layer id to use
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-platformrevid <String>
Platform version ID if needed
Required? false
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-diskformat <String>
Disk format of the image
Required? true
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
-shareid <String>
ID of file share
Required? true
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the PackagingDisk or layer version
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-size <String>
Size of layer in GB (default 61440)
Required? false
Position? 11
Default value 61440
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-aloslayerrev -websession $websession -version "2.0" -connectorid $connector.Id -osid $oss.id -osrevid
$osrevid.id -diskformat $connector.ValidDiskFormats.DiskFormat -shareid $fileshare.id
RELATED LINKS
SYNOPSIS
Creates new OS layer version
SYNTAX
New-ALOsLayerRev [-websession] <Object> [-version] <String> [[-description] <String>] [-connectorid] <String>
[-osid] <String> [-osrevid] <String> [[-platformrevid] <String>] [-diskformat] <String> [-shareid] <String>
[-name] <String> [[-size] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates new OS 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 new layer
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <String>
Description of the layer
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-connectorid <String>
ID of Connector to use
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osid <String>
Operating system layer ID
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
OS version layer id to use
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-platformrevid <String>
Platform version ID if needed
Required? false
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-diskformat <String>
Disk format of the image
Required? true
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
-shareid <String>
ID of file share
Required? true
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the PackagingDisk or layer version
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-size <String>
Size of layer in GB (default 61440)
Required? false
Position? 11
Default value 61440
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-aloslayerrev -websession $websession -version "2.0" -connectorid $connector.Id -osid $oss.id -osrevid
$osrevid.id -diskformat $connector.ValidDiskFormats.DiskFormat -shareid $fileshare.id
RELATED LINKS