< Back
New-ALImage
Post
NAME New-ALImage
SYNOPSIS
Creates new image(template)
SYNTAX
New-ALImage [-websession] <Object> [-name] <String> [[-description] <String>] [-connectorid] <String> [-appids]
<String[]> [-osrevid] <String> [-platrevid] <String> [[-ElasticLayerMode] <String>] [-diskformat] <String>
[[-size] <String>] [[-icon] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates new image(template)
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the 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
-appids <String[]>
IDs of application versions to add to image
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
Operating system layer version ID
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-platrevid <String>
Platform layer version ID
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ElasticLayerMode <String>
Elastic Layer setting for the image. Options "None","Session","Office365","SessionOffice365","Desktop"
Required? false
Position? 8
Default value None
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
-size <String>
Size of layer in GB (default 102400)
Required? false
Position? 10
Default value 102400
Accept pipeline input? false
Accept wildcard characters? false
-icon <String>
Icon ID (default 196608)
Required? false
Position? 11
Default value 196608
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 "Publish"|where{$_.name -eq "PVS"}
$oss = Get-ALOsLayer -websession $websession|where{$_.name -eq "Windows 10 x64"}
$osrevs = get-aloslayer -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
$ids = @("1081350","1081349")
new-alimage -websession $websession -name "Win10TEST55" -description "Accounting" -connectorid $connector.id
-osrevid $osrevid.Id -appids $ids -platrevid $platformrevid.id -diskformat $connector.ValidDiskFormats.DiskFormat
-elasticlayermode Desktop
RELATED LINKS
SYNOPSIS
Creates new image(template)
SYNTAX
New-ALImage [-websession] <Object> [-name] <String> [[-description] <String>] [-connectorid] <String> [-appids]
<String[]> [-osrevid] <String> [-platrevid] <String> [[-ElasticLayerMode] <String>] [-diskformat] <String>
[[-size] <String>] [[-icon] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates new image(template)
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the 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
-appids <String[]>
IDs of application versions to add to image
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
Operating system layer version ID
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-platrevid <String>
Platform layer version ID
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ElasticLayerMode <String>
Elastic Layer setting for the image. Options "None","Session","Office365","SessionOffice365","Desktop"
Required? false
Position? 8
Default value None
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
-size <String>
Size of layer in GB (default 102400)
Required? false
Position? 10
Default value 102400
Accept pipeline input? false
Accept wildcard characters? false
-icon <String>
Icon ID (default 196608)
Required? false
Position? 11
Default value 196608
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 "Publish"|where{$_.name -eq "PVS"}
$oss = Get-ALOsLayer -websession $websession|where{$_.name -eq "Windows 10 x64"}
$osrevs = get-aloslayer -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
$ids = @("1081350","1081349")
new-alimage -websession $websession -name "Win10TEST55" -description "Accounting" -connectorid $connector.id
-osrevid $osrevid.Id -appids $ids -platrevid $platformrevid.id -diskformat $connector.ValidDiskFormats.DiskFormat
-elasticlayermode Desktop
RELATED LINKS