Update-RedgateMonitorMonitoredIamObject
Published 21 January 2025
Updates the given monitored object.
Syntax
- Update-RedgateMonitorMonitoredIamObject [-MonitoredIamObject] <MonitoredIamObject> [<CommonParameters>]
Description
The Update-RedgateMonitorMonitoredIamObject cmdlet updates Amazon RDS SQL Server and PostgreSQL, Amazon Aurora Clusters, Azure SQL Servers, Azure SQL Databases, Azure Managed Instances, Cluster instances, PostgreSQL instances, Machine instances, and SQL Server on Linux instances. This currently only works for updating the Alias and Group on the objects mentioned above, and some objects may only have an Alias or Group rather than both.
Parameters
-MonitoredIamObject
<MonitoredIamObject>
{{ Fill MonitoredIamObject Description }}
Aliases | None |
Required? | true |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
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 --------------------------
- $entra = Get-RedgateMonitorMonitoredIamObject -Type MicrosoftEntraId -BaseMonitor $baseMonitor -Name "ExampleName"
- $entra.Name = "My favourite Entra ID"
- $entra | Update-RedgateMonitorMonitoredIamObject
This script will get an Microsoft EntraID "ExampleName" from the specified base monitor and edit its name.