# Invoke-RASStopOptimization

## NAME

Invoke-RASStopOptimization

## SYNOPSIS

Stop optimization on specified object.

## SYNTAX

**Invoke-RASStopOptimization**\
-[HostId](#hostid-string) _(string)_\
-[ObjType](#objtype) {AVDTemplate |\
RDSTemplate | VDITemplate | AVDHost | RDSHost | VDIHost}\
-[ProviderId](#providerid-string) _(uint)_\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

Stops optimization on a specified object.

## PARAMETERS

## ObjType

([StopOptimizationObjType](../types/stopoptimizationobjtype))\
Type of object to stop optimization for.

Possible values: AVDTemplate, RDSTemplate, VDITemplate, AVDHost,\
RDSHost, VDIHost

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ProviderId (uint)

Provider Id.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HostId (string)

Host Id.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

-none-

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Invoke-RASCommand -Action StopOptimization -ObjType AVDHost -ProviderId\
1 -HostId "f243a429-4502-4aa3-a1ed-0b61a32638e2"

Attempts to stop optimization of AVD Host with Id\
"f243a429-4502-4aa3-a1ed-0b61a32638e2" and under provider with Id 1.

## RELATED LINKS

* [Get-RASTemplate](get-rastemplate)
* [Get-RASAVDHost](get-rasavdhost)
* [Get-RASRDSHost](get-rasrdshost)
* [Get-RASVDIHost](get-rasvdihost)
