PowerCLI Reference

New-WMNamespace

Synopsis

This cmdlet creates a new workload namespace on the specified cluster.

Syntax

New-WMNamespace -Cluster <Cluster> [-Description <String>] -Name <String> [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet creates a new workload namespace on the specified cluster. The specified cluster must have workloads feature enabled. The cmdlet requires a connection to vCenter Server using the Connect-VIServer cmdlet.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ClusterClusterSpecifies the cluster where the workloads in this namespace will run.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
DescriptionStringSpecifies the description of the workload namespace.falseFalse
NameStringSpecifies the name of the workload cluster. The value must be a valid kubernetes identifier.trueFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespace

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> New-WMNamespace -Name "MyNamespace" -Cluster "MyWMCluster"

Creates a workload namespace called "MyNamespace" on the "MyWMCluster" cluster.


Copyright © VMware, Inc. All rights reserved.