Update-SqlMonitorMonitoredObjectSuspendedStatus
Published 14 February 2023
Updates the suspended status for a specific monitored object
Syntax
Update-SqlMonitorMonitoredObjectSuspendedStatus [-MonitoredObject] <MonitoredObject> [-Status] <string> [<CommonParameters>]
Description
The Update-SqlMonitorMonitoredObjectSuspendedStatus cmdlet updates the suspended status for a specific monitored object on a SQL Monitor Server.
Parameters
  
    -MonitoredObject
    <MonitoredObject>
  
The object to be updated.
| Aliases | None | 
| Required? | true | 
| Position? | 1 | 
| Default Value | None | 
| Accept Pipeline Input | False | 
| Accept Wildcard Characters | false | 
  
    -Status
    <String>
  
The status to set the monitored object to ("Suspended" or "Unsuspended").
| Aliases | None | 
| Required? | true | 
| Position? | 2 | 
| Default Value | None | 
| Accept Pipeline Input | False | 
| Accept Wildcard Characters | false | 
  
    -ProgressAction
    <ActionPreference>
  
{{ Fill ProgressAction Description }}
| Aliases | None | 
| Required? | false | 
| Position? | named | 
| Default Value | None | 
| Accept Pipeline Input | False | 
| Accept Wildcard Characters | false | 
  <CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- 
    None.
    
 You cannot pipe input to this cmdlet.
Examples
-------------------------- EXAMPLE 1 --------------------------
Update-SqlMonitorMonitoredObjectSuspendedStatus -MonitoredObject $cluster -Status "Suspended"