Skip to content

Set-DrsAutomationLevel

Synopsis

Sets the vSphere Distributed Resource Scheduler automation level.

Syntax

Set-DrsAutomationLevel [-server] <String> [-user] <String> [-pass] <String> [-cluster] <String> [-level] <String> [<CommonParameters>]

Description

The Set-DrsAutomationLevel cmdlet sets the automation level of the cluster based on the setting provided.

Examples

Example 1

Set-DrsAutomationLevel -server sfo-m01-vc01.sfo.rainpole.io -user administrator@vsphere.local  -Pass VMw@re1! -cluster sfo-m01-cl01 -level PartiallyAutomated

This example sets the vSphere Distributed Resource Scheduler Automation level for the sfo-m01-cl01 cluster to Partially Automated.

Parameters

-server

The FQDN of the vCenter Server.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-user

The username to authenticate to vCenter Server.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-pass

The password to authenticate to vCenter Server.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-cluster

The name of the cluster on which the vSphere Distributed Resource Scheduler automation level settings are to be applied.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-level

The vSphere Distributed Resource Scheduler automation level to be set. The value can be one amongst ("FullyAutomated", "Manual", "PartiallyAutomated", "Disabled").

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.