New-VDIHost

NAME

New-VDIHost

SYNOPSIS

Adds a VDI Host server to a site.

SYNTAX

New-VDIHost [-Server] <string> [[-SiteId] <uint>] [-VDIType] <HypervisorType> {HyperVUnknown | HyperVWin2008Std | HyperVWin2008Ent | HyperVWin2008Dtc | HyperV | HyperVWin2012Std | HyperVWin2012Dtc | HyperVWin2012Srv | HyperVWin2008R2Std | HyperVWin2008R2Ent | HyperVWin2008R2Dtc | HyperVWin2012R2Std | HyperVWin2012R2Dtc | HyperVWin2012R2Srv | HyperVWin2016Std | HyperVWin2016Dtc | HyperVWin2016Srv | HyperVWin2019Std | HyperVWin2019Dtc | HyperVWin2019Srv | HyperVFailoverClusterUnknown | HyperVFailoverClusterEnt | HyperVFailoverClusterDtc | HyperVFailoverClusterWin2012 | HyperVFailoverClusterWin2012R2 | HyperVFailoverClusterWin2016 | HyperVFailoverClusterWin2019 | VmwareESXUnknown | VmwareESXi4_0 | VmwareESX4_0 | VmwareESXi4_1 | VmwareESX4_1 | VmwareESXi5_0 | VmwareESXi5_1 | VmwareESXi5_5 | VmwareESXi6_0 | VmwareESXi6_5 | VmwareESXi6_7 | VmwareVCenterUnknown | VmwareVCenter4_0 | VmwareVCenter4_1 | VmwareVCenter5_0 | VmwareVCenter5_1 | VmwareVCenter5_5 | VmwareVCenter6_0 | VmwareVCenter6_5 | VmwareVCenter6_7 | CitrixXenUnknown | CitrixXen5_0 | CitrixXen5_5 | CitrixXen5_6 | CitrixXen5_6_1 | CitrixXen6_0 | CitrixXen6_1 | CitrixXen6_2 | CitrixXen6_5 | CitrixXen7_0 | CitrixXen7_1 | CitrixXen7_2 | QemuKvmUnknown | QemuKvm1_2_14 | NutanixUnknown | Nutanix5_0 | RemotePCUnknown | RemotePCStatic | RemotePCDynamic | ScaleUnknown | Scale7_4 | Azure} -VDIPassword <SecureString> -VDIUsername <string> [-NoInstall <SwitchParameter>] [-PreferredPAObj <PA>] [-VDIAgent <string>] [-VDIAgentOStype <RASAgentOSType> {Win32 | Win64 | Appliance}] [-VDIPort <uint>] [<CommonParameters>]

New-VDIHost [-Server] <string> [[-SiteId] <uint>] [-VDIType] <HypervisorType> {HyperVUnknown | HyperVWin2008Std | HyperVWin2008Ent | HyperVWin2008Dtc | HyperV | HyperVWin2012Std | HyperVWin2012Dtc | HyperVWin2012Srv | HyperVWin2008R2Std | HyperVWin2008R2Ent | HyperVWin2008R2Dtc | HyperVWin2012R2Std | HyperVWin2012R2Dtc | HyperVWin2012R2Srv | HyperVWin2016Std | HyperVWin2016Dtc | HyperVWin2016Srv | HyperVWin2019Std | HyperVWin2019Dtc | HyperVWin2019Srv | HyperVFailoverClusterUnknown | HyperVFailoverClusterEnt | HyperVFailoverClusterDtc | HyperVFailoverClusterWin2012 | HyperVFailoverClusterWin2012R2 | HyperVFailoverClusterWin2016 | HyperVFailoverClusterWin2019 | VmwareESXUnknown | VmwareESXi4_0 | VmwareESX4_0 | VmwareESXi4_1 | VmwareESX4_1 | VmwareESXi5_0 | VmwareESXi5_1 | VmwareESXi5_5 | VmwareESXi6_0 | VmwareESXi6_5 | VmwareESXi6_7 | VmwareVCenterUnknown | VmwareVCenter4_0 | VmwareVCenter4_1 | VmwareVCenter5_0 | VmwareVCenter5_1 | VmwareVCenter5_5 | VmwareVCenter6_0 | VmwareVCenter6_5 | VmwareVCenter6_7 | CitrixXenUnknown | CitrixXen5_0 | CitrixXen5_5 | CitrixXen5_6 | CitrixXen5_6_1 | CitrixXen6_0 | CitrixXen6_1 | CitrixXen6_2 | CitrixXen6_5 | CitrixXen7_0 | CitrixXen7_1 | CitrixXen7_2 | QemuKvmUnknown | QemuKvm1_2_14 | NutanixUnknown | Nutanix5_0 | RemotePCUnknown | RemotePCStatic | RemotePCDynamic | ScaleUnknown | Scale7_4 | Azure} -Password <SecureString> -Username <string> -VDIPassword <SecureString> -VDIUsername <string> [-PreferredPAObj <PA>] [-VDIAgent <string>] [-VDIAgentOStype <RASAgentOSType> {Win32 | Win64 | Appliance}] [-VDIPort <uint>] [<CommonParameters>]

New-VDIHost [-Server] <string> [[-SiteId] <uint>] [-VDIType] <HypervisorType> {HyperVUnknown | HyperVWin2008Std | HyperVWin2008Ent | HyperVWin2008Dtc | HyperV | HyperVWin2012Std | HyperVWin2012Dtc | HyperVWin2012Srv | HyperVWin2008R2Std | HyperVWin2008R2Ent | HyperVWin2008R2Dtc | HyperVWin2012R2Std | HyperVWin2012R2Dtc | HyperVWin2012R2Srv | HyperVWin2016Std | HyperVWin2016Dtc | HyperVWin2016Srv | HyperVWin2019Std | HyperVWin2019Dtc | HyperVWin2019Srv | HyperVFailoverClusterUnknown | HyperVFailoverClusterEnt | HyperVFailoverClusterDtc | HyperVFailoverClusterWin2012 | HyperVFailoverClusterWin2012R2 | HyperVFailoverClusterWin2016 | HyperVFailoverClusterWin2019 | VmwareESXUnknown | VmwareESXi4_0 | VmwareESX4_0 | VmwareESXi4_1 | VmwareESX4_1 | VmwareESXi5_0 | VmwareESXi5_1 | VmwareESXi5_5 | VmwareESXi6_0 | VmwareESXi6_5 | VmwareESXi6_7 | VmwareVCenterUnknown | VmwareVCenter4_0 | VmwareVCenter4_1 | VmwareVCenter5_0 | VmwareVCenter5_1 | VmwareVCenter5_5 | VmwareVCenter6_0 | VmwareVCenter6_5 | VmwareVCenter6_7 | CitrixXenUnknown | CitrixXen5_0 | CitrixXen5_5 | CitrixXen5_6 | CitrixXen5_6_1 | CitrixXen6_0 | CitrixXen6_1 | CitrixXen6_2 | CitrixXen6_5 | CitrixXen7_0 | CitrixXen7_1 | CitrixXen7_2 | QemuKvmUnknown | QemuKvm1_2_14 | NutanixUnknown | Nutanix5_0 | RemotePCUnknown | RemotePCStatic | RemotePCDynamic | ScaleUnknown | Scale7_4 | Azure} -SubscriptionID <Guid> -TenantID <Guid> -VDIPassword <SecureString> -VDIUsername <string> [-NoInstall <SwitchParameter>] [-PreferredPAObj <PA>] [-VDIAgent <string>] [-VDIAgentOStype <RASAgentOSType> {Win32 | Win64 | Appliance}] [<CommonParameters>]

New-VDIHost [-Server] <string> [[-SiteId] <uint>] [-VDIType] <HypervisorType> {HyperVUnknown | HyperVWin2008Std | HyperVWin2008Ent | HyperVWin2008Dtc | HyperV | HyperVWin2012Std | HyperVWin2012Dtc | HyperVWin2012Srv | HyperVWin2008R2Std | HyperVWin2008R2Ent | HyperVWin2008R2Dtc | HyperVWin2012R2Std | HyperVWin2012R2Dtc | HyperVWin2012R2Srv | HyperVWin2016Std | HyperVWin2016Dtc | HyperVWin2016Srv | HyperVWin2019Std | HyperVWin2019Dtc | HyperVWin2019Srv | HyperVFailoverClusterUnknown | HyperVFailoverClusterEnt | HyperVFailoverClusterDtc | HyperVFailoverClusterWin2012 | HyperVFailoverClusterWin2012R2 | HyperVFailoverClusterWin2016 | HyperVFailoverClusterWin2019 | VmwareESXUnknown | VmwareESXi4_0 | VmwareESX4_0 | VmwareESXi4_1 | VmwareESX4_1 | VmwareESXi5_0 | VmwareESXi5_1 | VmwareESXi5_5 | VmwareESXi6_0 | VmwareESXi6_5 | VmwareESXi6_7 | VmwareVCenterUnknown | VmwareVCenter4_0 | VmwareVCenter4_1 | VmwareVCenter5_0 | VmwareVCenter5_1 | VmwareVCenter5_5 | VmwareVCenter6_0 | VmwareVCenter6_5 | VmwareVCenter6_7 | CitrixXenUnknown | CitrixXen5_0 | CitrixXen5_5 | CitrixXen5_6 | CitrixXen5_6_1 | CitrixXen6_0 | CitrixXen6_1 | CitrixXen6_2 | CitrixXen6_5 | CitrixXen7_0 | CitrixXen7_1 | CitrixXen7_2 | QemuKvmUnknown | QemuKvm1_2_14 | NutanixUnknown | Nutanix5_0 | RemotePCUnknown | RemotePCStatic | RemotePCDynamic | ScaleUnknown | Scale7_4 | Azure} -Password <SecureString> -SubscriptionID <Guid> -TenantID <Guid> -Username <string> -VDIPassword <SecureString> -VDIUsername <string> [-PreferredPAObj <PA>] [-VDIAgent <string>] [-VDIAgentOStype <RASAgentOSType> {Win32 | Win64 | Appliance}] [<CommonParameters>]

DESCRIPTION

Adds a VDI Host server to a site.

The RAS VDI Agent will be installed on the server by default. You can optionally skip the agent installation by including the -NoInstall parameter.

PARAMETERS


-Server <string>
A VDI Host server FQDN or IP address.

In case of Azure, it is a name under which this provider will be diplayed in list.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint>
The site ID to which to add the specified server.

If the parameter is omitted, the Licensing Server site ID will be used.

        Required?                    false
        Position?                    1
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-VDIType <HypervisorType>
The hypervisor type installed on the VDI Host.

To get the list of available types, execute [System.Enum]::GetNames('RASAdminEngine.Core.OutputModels.HypervisorType')

From the returned list, choose your hypervisor type and then use it as a value for this parameter.

Possible values: HyperVUnknown, HyperVWin2008Std, HyperVWin2008Ent, HyperVWin2008Dtc, HyperV, HyperVWin2012Std, HyperVWin2012Dtc, HyperVWin2012Srv, HyperVWin2008R2Std, HyperVWin2008R2Ent, HyperVWin2008R2Dtc, HyperVWin2012R2Std, HyperVWin2012R2Dtc, HyperVWin2012R2Srv, HyperVWin2016Std, HyperVWin2016Dtc, HyperVWin2016Srv, HyperVWin2019Std, HyperVWin2019Dtc, HyperVWin2019Srv, HyperVFailoverClusterUnknown, HyperVFailoverClusterEnt, HyperVFailoverClusterDtc, HyperVFailoverClusterWin2012, HyperVFailoverClusterWin2012R2, HyperVFailoverClusterWin2016, HyperVFailoverClusterWin2019, VmwareESXUnknown, VmwareESXi4_0, VmwareESX4_0, VmwareESXi4_1, VmwareESX4_1, VmwareESXi5_0, VmwareESXi5_1, VmwareESXi5_5, VmwareESXi6_0, VmwareESXi6_5, VmwareESXi6_7, VmwareVCenterUnknown, VmwareVCenter4_0, VmwareVCenter4_1, VmwareVCenter5_0, VmwareVCenter5_1, VmwareVCenter5_5, VmwareVCenter6_0, VmwareVCenter6_5, VmwareVCenter6_7, CitrixXenUnknown, CitrixXen5_0, CitrixXen5_5, CitrixXen5_6, CitrixXen5_6_1, CitrixXen6_0, CitrixXen6_1, CitrixXen6_2, CitrixXen6_5, CitrixXen7_0, CitrixXen7_1, CitrixXen7_2, QemuKvmUnknown, QemuKvm1_2_14, NutanixUnknown, Nutanix5_0, RemotePCUnknown, RemotePCStatic, RemotePCDynamic, ScaleUnknown, Scale7_4, Azure

        Required?                    true
        Position?                    2
        Default value                VmwareVCenter6_5
        Accept pipeline input?       false
        Accept wildcard characters?  false

-NoInstall <SwitchParameter>
Specifies NOT to install the RAS VDI Agent on the server.

If this parameter is omitted, the agent will be push installed on the server using your RAS admin credentials.

To specify different credentials for push installation, specify the Username and Password parameters.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false

-VDIUsername <string>
A user account to log in to the hypervisor management tool (e.g. VMware vCenter).

In case of Azure, it is an ID of the application which will be used by VDI agent to manage Azure resources.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-VDIPassword <SecureString>
The password of the account specified in the VDIUsername parameter.

In case of Azure, it is a secret key of the application which will be used by VDI agent to manage Azure resources.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Username <string>
An administrator account for push installing the RAS VDI Agent on the server.

If this parameter is omitted, your RAS admin username (and password) will be used.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Password <SecureString>
The password of the account specified in the Username parameter.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-VDIAgent <string>
FQDN or IP address of the server where the RAS VDI Agent is running.

.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-VDIAgentOStype <RASAgentOSType>
OS type of the server where the RAS VDI Agent is running.

Possible values: Win32, Win64, Appliance

        Required?                    false
        Position?                    named
        Default value                Win32
        Accept pipeline input?       false
        Accept wildcard characters?  false

-VDIPort <uint>
The port to communicate with the VDI host specified in Server parameter.

In case of Azure, it is not required.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-PreferredPAObj <PA>

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-TenantID <Guid>
ID of the Azure tenant which resources will be managed by RAS.

You only need to specify this parameter if Azure is used as VDI provider.

        Required?                    true
        Position?                    named
        Default value                00000000-0000-0000-0000-000000000000
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SubscriptionID <Guid>
ID of the Azure subscription which resources will be managed by RAS.

You only need to specify this parameter if Azure is used as VDI provider.

        Required?                    true
        Position?                    named
        Default value                00000000-0000-0000-0000-000000000000
        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 documentation. 

INPUTS

-none-

OUTPUTS

VDIHost

EXAMPLES


---------- EXAMPLE 1 ----------

New-VDIHost "server.company.dom"

Adds the specified VDI Host server to the Licensing Server site (default).

The RAS VDI Agent will be installed on the server using your RAS admin credentials (default).

---------- EXAMPLE 2 ----------

New-VDIHost -Server "server.company.dom" -SiteId 2 -Username "myname" -Password $pass

Adds the specified VDI Host server to the specified site.

The -Username and -Password parameters specify credentials which will be used to push install the RAS VDI Agent on the server.

---------- EXAMPLE 3 ----------

New-VDIHost "server.company.dom" -NoInstall

Adds the specified VDI Host server to the Licensing Server site (default).

The RAS VDI Agent will NOT be installed on the server.

You may want to skip the agent installation if a proper version of it is already installed on the server.

---------- EXAMPLE 4 ----------

New-VDIHost "Azure Cloud" -VDIType Azure -TenantID "58dabf97-3bf6-4f8c-bd95-8c883bf37d3d" -SubscriptionID "4986048b-a420-43d3-8cab-344ff6580b3f" -VDIUsername "16731946-e0aa-4816-8cd9-12763670d257" -VDIPassword $pass

Adds Azure to the Licensing Server site (default).

Resources of the subscription "4986048b-a420-43d3-8cab-344ff6580b3f" in the tenant "58dabf97-3bf6-4f8c-bd95-8c883bf37d3d" will be managed by RAS.

Access rights to the resources will be limited by permissions given to the Azure application "16731946-e0aa-4816-8cd9-12763670d257".

RELATED LINKS