次の方法で共有


ProvisionMachine method of the Msps_ProvisioningService class

This method is used to securely provisioning a machine. The method should be executed against a target machine identified. If this is a VM, it must have been created but has not yet been started. A Msps_ProvisioningJob instance will be returned which can be used to monitor the provisioning process.

Syntax

uint32 ProvisionMachine(
  [in]  string               PDKPath,
  [in]  string               FSKPath,
  [in]  string               MachineID,
  [out] Msps_ProvisioningJob ProvisioningJob
);

Parameters

PDKPath [in]

Path to the Provisioning Data Keyfile (PDK) used in the provisioning process.

FSKPath [in]

Path to the Fabric Specialization Keyfile (FSK) used to provision the machine.

MachineID [in]

The virtual machine ID associated with the targeted VM machine to provision. The ID is often in the form of a GUID.

ProvisioningJob [out]

On success, contains an embedded instance of a Msps_ProvisioningJob that contains the provisioning job associated with this provision attempt. This job can be queried for fabric policy, status and the result of provisioning the VM.

Remarks

If the specified machine is a virtual machine, you must first create the machine, but not start it, before provisioning.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\MSPS
MOF
MSPSService.Mof
DLL
MSPSService.dll

See also

Msps_ProvisioningService