Update-SCVMConfiguration

Updates the properties of a VMM virtual machine configuration object.

Syntax

Update-SCVMConfiguration
      [-VMConfiguration] <BaseVMConfiguration>
      [-ValidateOnly <Boolean>]
      [-VMName <String>]
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-OnBehalfOfUser <String>]
      [-OnBehalfOfUserRole <UserRole>]
      [<CommonParameters>]
Update-SCVMConfiguration
      -VMConfigurationList <System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.BaseVMConfiguration]>
      [-ValidateOnly <Boolean>]
      [-VMName <String>]
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-OnBehalfOfUser <String>]
      [-OnBehalfOfUserRole <UserRole>]
      [<CommonParameters>]

Description

The Update-SCVMConfiguration cmdlet updates the properties of a Virtual Machine Manager (VMM) virtual machine configuration object.

Examples

Example 1: Update an existing virtual machine configuration

PS C:\> $ServiceConfig = Get-SCServiceConfiguration -Name "Service01"
PS C:\> $VMConfig = Get-SCVMConfiguration -ServiceConfiguration $ServiceConfig
PS C:\> Update-SCVMConfiguration -VMConfiguration $VMConfig[0] -ValidateOnly $True

The first command gets the service configuration object named Service01 from the VMM library and stores the object in the $ServiceConfig variable.

The second command gets the virtual machine configuration object for the service configuration stored in $ServiceConfig and stores the virtual machine configuration object in $VMConfig.

The last command sets the ValidateOnly property to True for the first configuration object stored in $VMConfig.

Required Parameters

-VMConfiguration

Specifies a virtual machine configuration object.

Type:BaseVMConfiguration
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMConfigurationList

Specifies a list of configuration objects.

Type:System.Collections.Generic.List`1[Microsoft.SystemCenter.VirtualMachineManager.BaseVMConfiguration]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUser

Specifies the name of a user. This cmdlet sets the on behalf of user as the user that this parameter specifies.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUserRole

Specifies a user role. This cmdlet sets the on behalf of user role as the user role that this parameter specifies. To obtain a user role object, use the Get-SCUserRole cmdlet.

Type:UserRole
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMName

Specifies the name of a virtual machine to be placed on a physical host server. Use this parameter to verify that another virtual machine with the same name is not already deployed on that host.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ValidateOnly

Indicates whether validation of the placement is performed, but placement is not actually performed.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ComputerConfig

This cmdlet returns a ComputerConfig object.

Notes