Redgate Monitor 14

Remove-RedgateMonitorTag

Removes a list of tags from a monitored object.

Syntax

Remove-RedgateMonitorTag [-MonitoredObject] <MonitoredObject> [-Tags] <string[]> [<CommonParameters>]

Description

Removes a list of tags from a previously retrieved monitored object using Get-RedgateMonitorMonitoredObject.

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

-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.

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

  • [string[]] List of tags

Examples

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

# Removes tags ["foo", "bar"] from all the SQL Server instances.
Get-RedgateMonitorMonitoredObject -Type SqlServerInstance | Remove-RedgateMonitorTag -Tags foo, bar

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

# Remove tags ["mi", "bar"] from all azure managed instances.
Get-RedgateMonitorMonitoredObject -Type AzureManagedInstance | Remove-RedgateMonitorTag -Tags mi, bar


Didn't find what you were looking for?