New-HostingResource

Back to overview

NAME
New-HostingResource

SYNOPSIS
Create a new hosting resource

SYNTAX
New-HostingResource [-Name] <String> [-HypervisorConnectionName] <String> [-ClusterName] <String> [-NetworkName] <String[]> [-StorageName] <String[]>
[<CommonParameters>]


DESCRIPTION
This function creates a resource (network and storage) based on a hosting connection (see New-HostingConnection)


PARAMETERS
-Name <String>
Name of the hosting resource

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

-HypervisorConnectionName <String>
Name of the hosting connection

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

-ClusterName <String>
Name of the host cluster in vCenter

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

-NetworkName <String[]>
Array of names of networks in vCenter

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

-StorageName <String[]>
Array of names of datastores in vCenter

Required?                    true
Position?                    5
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 (http://go.microsoft.com/fwlink/?LinkID=113216).


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

C:\PS>New-HostingResource -Name cluster-01 -HypervisorConnectionName vcenter-01 -ClusterName cluster-01 -NetworkName (vlan_100,vlan_101) -StorageName
(datastore1,datastore2)



RELATED LINKS
New-HostingConnection