# Stop-RASVM

## NAME

Stop-RASVM

## SYNOPSIS

Stops a virtual machine.

## SYNTAX

**Stop-RASVM** \[-[ProviderId](#ProviderId)] _\<uint>_ \[-[Id](#Id)] _\<string>_ \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Stop-RASVM** \[-[InputObject](#InputObject)] _<_[_VM_](../classes-and-enumerations/vm)_>_ \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Stops a virtual machine.

## PARAMETERS

-**ProviderId \<uint>**\
The name of the target Provider server.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<string>**\
Target virtual machine UUID.

```
        Required?                    true

        Position?                    1

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InputObject <**[**VM**](../classes-and-enumerations/vm)**>**\
The VM on which to perform the power operation.

To obtain an object of type VM, use the Get-VM cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        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

[VM](../classes-and-enumerations/vm)

## OUTPUTS

-none-

## EXAMPLES

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

Stop-RASVM -ProviderId 2 -Id 42311235-09c5-ca15-337d-b9723015edf0

Stops the specified virtual machine on the specified Provider.\
&#xNAN;**---------- EXAMPLE 2 ----------**

Get-RASVM -ProviderId 2 -Id 42311235-09c5-ca15-337d-b9723015edf0 | Stop-RASVM

Stops the specified virtual which is identified by an object obtained from the pipeline output.

## RELATED LINKS

* [Get-RASVM](get-rasvm)
* [Start-RASVM](start-rasvm)
* [Suspend-RASVM](suspend-rasvm)
* [Reset-RASVM](reset-rasvm)
* [Restart-RASVM](restart-rasvm)
