Partager via


AddResourceSettings method of the CIM_VirtualSystemManagementService class

Adds resources to a virtual system configuration.

Note

When this method is applied to a stateful virtual system configuration, the resources are added to the active virtual system.

Syntax

uint32 AddResourceSettings(
  [in]  CIM_VirtualSystemSettingData      REF AffectedConfiguration,
  [in]  string                                ResourceSettings[],
  [out] CIM_ResourceAllocationSettingData REF ResultingResourceSettings[],
  [out] CIM_ConcreteJob                   REF Job
);

Parameters

AffectedConfiguration [in]

A reference to the virtual system configuration that receives the resources.

ResourceSettings [in]

An array that contains embedded instance of the CIM_ResourceAllocationSettingData class that represent the resource settings to add to the virtual system configuration.

ResultingResourceSettings [out]

An array that contains references to CIM_ResourceAllocationSettingData instances that represent the resource settings that were added to the virtual system configuration.

Job [out]

If the operation is to run asynchronously, this parameter will return a job for the operation.

Return value

The possible return values are:

Completed with No Error (0)

Not Supported (1)

Failed (2)

Timeout (3)

Invalid Parameter (4)

DMTF Reserved (5 4095)

Method Parameters Checked - Job Started (4096)

Method Reserved (4097 32767)

Vendor Specific (32768 65535)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

CIM_VirtualSystemManagementService