Add-SqlMonitorTags
Published 14 February 2023
Adds a list of tags to a monitored object.
Syntax
Add-SqlMonitorTags [-MonitoredObject] <MonitoredObject> [-Tags] <string[]> [<CommonParameters>]
Description
Adds 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 add tags to. Can be an Instance, AmazonRdsSqlServer or AzureManagedInstance that extends the MonitoredObject class.
-
[string[]] List of tags
Examples
-------------------------- EXAMPLE 1 --------------------------
# Set tags ["foo", "bar"] to all the SQL Server instances. Get-SqlMonitorInstance | Add-SqlMonitorTags -Tags foo, bar