NAME
Add-DcsvCenter
SYNOPSIS
Adds a VMware vCenter configuration to the server group configuration. VMware hosts and virtual machines in the vCenter are added as hosts.
SYNTAX
Add-DcsvCenter -Address <String> [ -Username <String> ] [ -Password <String> ] [ -Connection <String> ] [ -PipelineVariable <String> ]
Add-DcsvCenter -Address <String> [ -Credential <PSCredential> ] [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Adds a VMware vCenter configuration to the server group configuration. VMware hosts and virtual machines in the vCenter are added as hosts.
PARAMETERS
- -Address<String>
- Computer name or IP address of the vCenter to be added.
-
- Required: true
- Position: 1
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Username<String>
- User name of the account used to connect to the vCenter.
-
- Required: false
- Position: 2
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Password<String>
- Login password of the account used to connect to the vCenter.
-
- Required: false
- Position: 3
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection will be used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Credential<PSCredential>
- The PSCredential object containing user name and password for the vCenter. This object can be obtained by invoking the Windows PowerShell cmdlet Get-Credential, see Example 2. In this manner, credentials can be passed through the object instead of typing the credentials.
-
- Required: false
- Position: 2
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
- -FilterVirtualMachines<String>
- This parameter helps the system to filter out any discovered virtual machines from the vCenter.
-
- Required: false
- Position: 6
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
- -AutoUpdateTags<String>
- When this parameter is enabled, the system automatically searches for Tags associated with the Datastores.
-
- Required: false
- Position: 7
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
OUTPUTS
VimVirtualCenterData : Object that identifies and describes the vCenter.
NOTES
Also see Get-DcsvCenter, Add-DcsvCenterDataStore, Set-DcsvCenterProperties, Remove-DcsvCenter, Set-DcsvCenterMultipathPolicy, Set-DcsHypervisorHost.
EXAMPLES
Add-DcsvCenter -Address ESXivc55 -Username administrator -Password vmvcenterpw
Adds the vCenter with the name "ESXivc55" to the configuration. The username and password of the vCenter login are "administrator" and "vmvcenterpw".
ServerAddress | : | ESXivc55 |
Username | : | administrator |
Description | : | |
FullName | : | VMware vCenter Server 5.5.0 build-1099559 |
ProductBuild | : | 1099559 |
Version | : | 5.5 |
State | : | WaitingForFirstUpdate |
Sequencenumber | : | 23793 |
Id | : | 0A76B835-99B2-4340-97F3-3E5F769589AE |
Caption | : | ESXivc55 |
ExtendedCaption | : | ESXivc55 |
Internal | : | False |
$vCtrCred = Get-Credential Add-DcsvCenter -Address ESXivc55 -Credential $vCtrCred
The Windows PowerShell cmdlet Get-Credential is invoked to collect the credentials for the vCenter. When Get-Credential is invoked a dialog box opens and the user name and password can be entered in a secure manner. The credentials are saved to the variable $vCtrCred.
cmdlet Get-Credential at command pipeline position 1 Supply values for the following parameters: Credential