SQL Monitor 12

Where are you using Redgate Monitor? (pick the closest answer)

These pages cover SQL Monitor 12, which is not the latest version. Help for other versions is also available.

Remove-SqlMonitorTags

Removes a list of tags to a monitored object.

Syntax

  1. Remove-SqlMonitorTags [-MonitoredObject] <MonitoredObject> [-Tags] <string[]> [<CommonParameters>]
  2.  

Description

Removes a list of tags to a previously retrieved monitored object using Get-SqlMonitorInstance, Get-SqlMonitorAmazonRdsSqlServer or Get-SqlMonitorAzureManagedInstance.

Parameters

-MonitoredObject <MonitoredObject>

{{ Fill MonitoredObject Description }}

Aliases None
Required? true
Position? 1
Default Value None
Accept Pipeline Input True (ByValue)
Accept Wildcard Characters false

-Tags <String[]>

{{ Fill Tags Description }}

Aliases None
Required? true
Position? 2
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.

  • [MonitoredObject] The monitored object to remove tags on. Can be an Instance, AmazonRdsSqlServer or AzureManagedInstance that extends the MonitoredObject class.

  • [string[]] List of tags

Return values

The output type is the type of the objects that the cmdlet emits.

  • None.
    You cannot pipe input to this cmdlet.

Examples

-------------------------- EXAMPLE 1 --------------------------

  1. # Removes tags ["sqlserverinstances", "foobar"] to all the SQL Server instances.
  2. Get-SqlMonitorInstance | Remove-SqlMonitorTags -Tags sqlserverinstances, foobar

-------------------------- EXAMPLE 2 --------------------------

  1. # Remove tags ["mi", "foobar"] from all azure managed instances.
  2. Get-SqlMonitorAzureManagedInstance | Remove-SqlMonitorTags -Tags mi, foobar


Do you have any feedback on this documentation?

Let us know at sqlmonitorfeedback@red-gate.com


Didn't find what you were looking for?