Set-SCServiceConfiguration

Modifies the properties of an undeployed service configuration object stored in the VMM library.

Syntax

Set-SCServiceConfiguration
   [-VMHostGroup <HostGroup>]
   [-VMMServer <ServerConnection>]
   [-Name <String>]
   [-Description <String>]
   [-ServicePriority <String>]
   [-Tag <String>]
   [-CostCenter <String>]
   -ServiceConfiguration <ServiceConfiguration>
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]
Set-SCServiceConfiguration
   -Cloud <Cloud>
   [-VMMServer <ServerConnection>]
   [-Name <String>]
   [-Description <String>]
   [-ServicePriority <String>]
   [-Tag <String>]
   [-CostCenter <String>]
   -ServiceConfiguration <ServiceConfiguration>
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]

Description

The Set-SCServiceConfiguration cmdlet modifies the properties of an undeployed service configuration object stored in the Virtual Machine Manager (VMM) library.

Examples

Example 1: Set the priority for a Service Configuration object in a cloud

PS C:\> $SvcConfig = Get-SCServiceConfiguration -Name "Service02"
PS C:\> $Cloud = Get-SCCloud -Name "Production"
PS C:\> Set-SCServiceConfiguration -ServiceConfiguration $SvcConfig -Cloud $Cloud -ServicePriority "Normal"

The first command gets the service configuration object named Service02 and stores the object in the $SvcConfig variable.

The second command gets the private cloud object named Production and stores the object in the $Cloud variable.

The last command sets the priority for the service configuration object tstored in $SvcConfig to Normal.

Required Parameters

-Cloud

Specifies a private cloud object.

Type:Cloud
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceConfiguration

Specifies a service configuration object.

Type:ServiceConfiguration
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-CostCenter

Specifies the cost center for a virtual machine so that you can collect data about the allocation of virtual machines (or resources allocated to virtual machines) to make use of in your billing system.

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

Specifies a description for the service configuration.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-Name

Specifies the name of a VMM object.

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

Specifies a user name. This cmdlet operates on behalf of 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. To obtain a user role, use the Get-SCUserRole cmdlet. This cmdlet operates on behalf of the user role that this parameter specifies.

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
-ServicePriority

Specifies the priority for a service. Valid values are: Normal, Low, High. Default value: Normal.

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

Specifies a word or phrase to associate with an object so that you can search for all objects with the specified set of tags. You can search for a subset of tags, or you can search for the full set of tags.

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

Specifies a virtual machine host group object or an array of host group objects.

Type:HostGroup
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

ServiceConfiguration

This cmdlet returns a ServiceConfiguration object.