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
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Cluster | Cluster | Specifies the cluster where the workloads in this namespace will run. | true | True (ByValue) | |
Confirm | SwitchParameter | If 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. | false | False | |
Description | String | Specifies the description of the workload namespace. | false | False | |
Name | String | Specifies the name of the workload cluster. The value must be a valid kubernetes identifier. | true | False | |
Server | VIServer[] | 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. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespaceNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> New-WMNamespace -Name "MyNamespace" -Cluster "MyWMCluster"
Creates a workload namespace called "MyNamespace" on the "MyWMCluster" cluster.