Skip to content

New-VCFCommissionedHost

Synopsis

Commission a list of ESXi hosts.

Syntax

New-VCFCommissionedHost [-json] <String> [-validate] [<CommonParameters>]

Description

The New-VCFCommissionedHost cmdlet commissions a list of ESXi hosts.

Examples

Example 1

New-VCFCommissionedHost -json (Get-Content -Raw .\samples\hosts\commissionHostsSpec.json)

This example shows how to commission a list of ESXi hosts using a JSON specification file.

Sample JSON: Commission ESXi Host(s)
[
  {
    "fqdn": "sfo01-w01-esx01.sfo.rainpole.io",
    "username": "root",
    "storageType": "VSAN",
    "password": "VMw@re1!",
    "networkPoolName": "sfo-w01-np01",
    "networkPoolId": "850c1edc-71f8-47e2-8308-66000338f67a"
  },
  {
    "fqdn": "sfo01-w01-esx02.sfo.rainpole.io",
    "username": "root",
    "storageType": "VSAN",
    "password": "VMw@re1!",
    "networkPool  Name": "sfo-w01-np01",
    "networkPoolId": "850c1edc-71f8-47e2-8308-66000338f67a"
  },
  {
    "fqdn": "sfo01-w01-esx03.sfo.rainpole.io",
    "username": "root",
    "storageType": "VSAN",
    "password": "VMw@re1!",
    "networkPoolName": "sfo-w01-np01",
    "networkPoolId": "850c1edc-71f8-47e2-8308-66000338f67a"
  },
  {
    "fqdn": "sfo01-w01-esx04.sfo.rainpole.io",
    "username": "root",
    "storageType": "VSAN",
    "password": "VMw@re1!",
    "networkPoolName": "sfo-w01-np01",
    "networkPoolId": "850c1edc-71f8-47e2-8308-66000338f67a"
  }
]

Example 2

New-VCFCommissionedHost -json (Get-Content -Raw .\samples\hosts\commissionHostSpec.json) -validate

This example shows how to validate the ESXi host JSON specification file.

Parameters

-json

Specifies the JSON specification to be used.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-validate

Specifies to validate the JSON specification file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.