< Back
New-ALAppLayer
Post
NAME New-ALAppLayer
SYNOPSIS
Creates a new application layer
SYNTAX
New-ALAppLayer [-websession] <Object> [-version] <String> [-name] <String> [[-description] <String>]
[[-revdescription] <String>] [[-OsLayerSwitching] <String>] [-connectorid] <String> [-osrevid] <String>
[[-platformrevid] <String>] [-diskformat] <String> [-fileshareid] <String> [[-size] <String>] [[-icon] <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new application layer
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 layer
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the layer
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
-revdescription <String>
Revision description
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OsLayerSwitching <String>
Allow OS Switching NotBoundToOsLayer=ON BoundToOsLayer=OFF
Required? false
Position? 6
Default value BoundToOsLayer
Accept pipeline input? false
Accept wildcard characters? false
-connectorid <String>
ID of Connector to use
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
Operating system version ID
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>
Disk format of the image
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-fileshareid <String>
Fileshare ID to store disk
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
-icon <String>
Icon ID (default 196608)
Required? false
Position? 13
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 Create|where{$_.name -eq "MYvCenter"}
$fileshare = 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
new-alapplayer -websession $websession -version "1.0" -name "Accounting APP" -description "Accounting application"
-connectorid $connector.id -osrevid $osrevid.Id -diskformat $connector.ValidDiskFormats.DiskFormat
-OsLayerSwitching BoundToOsLayer -fileshareid $fileshare.id
RELATED LINKS
SYNOPSIS
Creates a new application layer
SYNTAX
New-ALAppLayer [-websession] <Object> [-version] <String> [-name] <String> [[-description] <String>]
[[-revdescription] <String>] [[-OsLayerSwitching] <String>] [-connectorid] <String> [-osrevid] <String>
[[-platformrevid] <String>] [-diskformat] <String> [-fileshareid] <String> [[-size] <String>] [[-icon] <String>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new application layer
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 layer
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the layer
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
-revdescription <String>
Revision description
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OsLayerSwitching <String>
Allow OS Switching NotBoundToOsLayer=ON BoundToOsLayer=OFF
Required? false
Position? 6
Default value BoundToOsLayer
Accept pipeline input? false
Accept wildcard characters? false
-connectorid <String>
ID of Connector to use
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osrevid <String>
Operating system version ID
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>
Disk format of the image
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-fileshareid <String>
Fileshare ID to store disk
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
-icon <String>
Icon ID (default 196608)
Required? false
Position? 13
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 Create|where{$_.name -eq "MYvCenter"}
$fileshare = 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
new-alapplayer -websession $websession -version "1.0" -name "Accounting APP" -description "Accounting application"
-connectorid $connector.id -osrevid $osrevid.Id -diskformat $connector.ValidDiskFormats.DiskFormat
-OsLayerSwitching BoundToOsLayer -fileshareid $fileshare.id
RELATED LINKS