< Back
Import-ALOsLayer
Post
NAME Import-ALOsLayer
SYNOPSIS
Creates a new operating system layer
SYNTAX
Import-ALOsLayer [-websession] <Object> [-vmname] <String> [[-description] <String>] [-connectorid] <String>
[-shareid] <String> [[-icon] <String>] [-name] <String> [[-size] <String>] [-version] <String> [-vmid] <String>
[-hypervisor] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new operating system layer
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-vmname <String>
Virtual machine name to import from
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
-shareid <String>
ID of file share
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-icon <String>
Icon ID (default 196608)
Required? false
Position? 6
Default value 196608
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the layer
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-size <String>
Size of layer in GB (default 61440)
Required? false
Position? 8
Default value 61440
Accept pipeline input? false
Accept wildcard characters? false
-version <String>
Version number of the layer
Required? true
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-vmid <String>
Virtual Machine ID from vCenter or GUID XenCenter
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-hypervisor <String[]>
Hypversior to import from (ESXI or XenServer)
Required? true
Position? 11
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:\\>$fileshare = Get-ALRemoteshare -websession $websession
$connector = Get-ALconnector -websession $websession -type Create|where{$_.name -eq "MYvCenter"}
$shares = get-alremoteshare -websession $websession
#vCenter Command
$vm = Get-VM "Windows2016VM"
$vmid = $vm.Id -replace "VirtualMachine-",""
$response = import-aloslayer -websession $websession -vmname $vm.name -connectorid $connector.id -shareid
$fileshare.id -name "Windows 2016" -version "1.0" -vmid $vmid -hypervisor esxi
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$fileshare = Get-ALRemoteshare -websession $websession
$connector = Get-ALconnector -websession $websession -type Create|where{$_.name -eq "MYXenCenter"}
$shares = get-alremoteshare -websession $websession
#Xen Command
$XenVM = get-xenvm -name $VMName
$response = import-aloslayer -websession $websession -vmname $vmname -connectorid $connector.id -shareid
$fileshare.id -name "Windows 2016" -version "1.0" -vmid $XenVM.uuid -hypervisor xenserver
RELATED LINKS
SYNOPSIS
Creates a new operating system layer
SYNTAX
Import-ALOsLayer [-websession] <Object> [-vmname] <String> [[-description] <String>] [-connectorid] <String>
[-shareid] <String> [[-icon] <String>] [-name] <String> [[-size] <String>] [-version] <String> [-vmid] <String>
[-hypervisor] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new operating system layer
PARAMETERS
-websession <Object>
Existing Webrequest session for ELM Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-vmname <String>
Virtual machine name to import from
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
-shareid <String>
ID of file share
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-icon <String>
Icon ID (default 196608)
Required? false
Position? 6
Default value 196608
Accept pipeline input? false
Accept wildcard characters? false
-name <String>
Name of the layer
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-size <String>
Size of layer in GB (default 61440)
Required? false
Position? 8
Default value 61440
Accept pipeline input? false
Accept wildcard characters? false
-version <String>
Version number of the layer
Required? true
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-vmid <String>
Virtual Machine ID from vCenter or GUID XenCenter
Required? true
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-hypervisor <String[]>
Hypversior to import from (ESXI or XenServer)
Required? true
Position? 11
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:\\>$fileshare = Get-ALRemoteshare -websession $websession
$connector = Get-ALconnector -websession $websession -type Create|where{$_.name -eq "MYvCenter"}
$shares = get-alremoteshare -websession $websession
#vCenter Command
$vm = Get-VM "Windows2016VM"
$vmid = $vm.Id -replace "VirtualMachine-",""
$response = import-aloslayer -websession $websession -vmname $vm.name -connectorid $connector.id -shareid
$fileshare.id -name "Windows 2016" -version "1.0" -vmid $vmid -hypervisor esxi
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$fileshare = Get-ALRemoteshare -websession $websession
$connector = Get-ALconnector -websession $websession -type Create|where{$_.name -eq "MYXenCenter"}
$shares = get-alremoteshare -websession $websession
#Xen Command
$XenVM = get-xenvm -name $VMName
$response = import-aloslayer -websession $websession -vmname $vmname -connectorid $connector.id -shareid
$fileshare.id -name "Windows 2016" -version "1.0" -vmid $XenVM.uuid -hypervisor xenserver
RELATED LINKS