New-WMNamespace

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.

Syntax

-Cluster  <Cluster>
-Name  <String>
[-Description  <String>]
[-RunAsync]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Cluster
Cluster named
  • pipeline
  • Specifies the cluster where the workloads in this namespace will run.
    required
    Name
    String named Specifies the name of the workload cluster. The value must be a valid kubernetes identifier.
    optional
    Description
    String named Specifies the description of the workload namespace.
    optional
    RunAsync
    SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespace

    Examples


    Example 1

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

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

    Related Commands

    Feedback

    Was this page helpful?