Set-WMNamespaceStoragePolicy Command | Vmware PowerCLI Reference

Set-WMNamespaceStoragePolicy

This cmdlet modifies the configuration of a storage claim used by a workload namespace. The cmdlet requires a connection to vCenter Server using the Connect-VIServer cmdlet.

Syntax

Set-WMNamespaceStoragePolicy
-LimitMiB < Int64 >
-NamespaceStoragePolicy < WMNamespaceStoragePolicy[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
LimitMiB Int64 named
Specifies the new limit on the storage used by workloads running in the workload namespace using the corresponding storage policy. To remove the limit, specify $null.
required
NamespaceStoragePolicy WMNamespaceStoragePolicy[] named
  • pipeline
Specifies the storage claims whose configuration you want to change.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespaceStoragePolicy

Examples

Example 1

Get-WMNamespaceStoragePolicy -Namespace "MyNamespace" | where { $_.StoragePolicy.Name -eq "MyStoragePolicy" } | Set-WMNamespaceStoragePolicy -LimitMiB 1000

Changes the limit on the storage used by the workload namespace "MyNamespace" using the storage policy "MyStoragePolicy" to 1000 MiB.

Example 2

$allStorageForMyNamespace = Get-WMNamespaceStoragePolicy -Namespace "MyNamespace"
Set-WMNamespaceStoragePolicy -NamespaceStoragePolicy $allStorageForMyNamespace -LimitMiB $null

Removes the limit on the storage used by the workload namespace "MyNamespace" for all the storage policies currently used by this workload namespace.

Related Commands

WMNamespace

This cmdlet retrieves the workload namespaces in the vCenter Server system.

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

This cmdlet deletes a workload namespace from the vCenter Server system.

This cmdlet modifies the configuration of a workload namespace.

WMNamespaceLimits

Retrieves information about the Kubernetes resource limits of a namespace.

Changes the Kubernetes resource limits of a namespace.

WMNamespaceNetworkSpec

Creates a specification for a namespace network. The specification is later used to create the actual namespace network.

WMNamespacePermission

Retrieves information about workload namespace access permissions.

Grants an access permission to a workload namespace.

Removes an access permission to a workload namespace.

Modifies an access permission to a workload namespace.

WMNamespaceStoragePolicy

This cmdlet retrieves the configuration of the storage claimed by a workload namespace.

This cmdlet creates a storage claim for a workload namespace using the specified configuration.

This cmdlet deletes the storage claim for a workload namespace associated with a specified storage policy.

This cmdlet modifies the configuration of a storage claim used by a workload namespace.