Get-AzNewRelicMonitorMonitoredResource

List the resources currently being monitored by the NewRelic monitor resource.

Syntax

Get-AzNewRelicMonitorMonitoredResource
   -MonitorName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

List the resources currently being monitored by the NewRelic monitor resource.

Examples

Example 1: List the resources currently being monitored by the NewRelic monitor resource.

Get-AzNewRelicMonitorMonitoredResource -MonitorName test-03 -ResourceGroupName ps-test | Format-List

Id                     : /SUBSCRIPTIONS/11111111-2222-3333-4444-123456789101/RESOURCEGROUPS/PS-TEST/PROVIDERS/MICROSOFT.WEB/SITES/SITETEST
ReasonForLogsStatus    : CapturedByRules
ReasonForMetricsStatus : 
SendingLog             : Enabled
SendingMetric          : 

Id                     : /SUBSCRIPTIONS/11111111-2222-3333-4444-123456789101/RESOURCEGROUPS/PS-TEST/PROVIDERS/MICROSOFT.WEB/SERVERFARMS/PSTEST
ReasonForLogsStatus    : CapturedByRules
ReasonForMetricsStatus : 
SendingLog             : Enabled
SendingMetric          : 

Id                     : /SUBSCRIPTIONS/11111111-2222-3333-4444-123456789101/RESOURCEGROUPS/PS-TEST/PROVIDERS/MICROSOFT.WEB/SITES/SITETEST2
ReasonForLogsStatus    : CapturedByRules
ReasonForMetricsStatus : 
SendingLog             : Enabled
SendingMetric          : 

Id                     : /SUBSCRIPTIONS/11111111-2222-3333-4444-123456789101/RESOURCEGROUPS/PS-TEST/PROVIDERS/MICROSOFT.INSIGHTS/COMPONENTS/INSIGHTTEST2
ReasonForLogsStatus    : CapturedByRules
ReasonForMetricsStatus : 
SendingLog             : Enabled
SendingMetric          : 

Id                     : /SUBSCRIPTIONS/11111111-2222-3333-4444-123456789101/RESOURCEGROUPS/ACCTEST9482/PROVIDERS/MICROSOFT.INSIGHTS/COMPONENTS/TEST3210
ReasonForLogsStatus    : DiagnosticSettingsLimitReached
ReasonForMetricsStatus : 
SendingLog             : Disabled
SendingMetric          : 

Id                     : /SUBSCRIPTIONS/11111111-2222-3333-4444-123456789101/RESOURCEGROUPS/MC_KANSINGH-RG_TESTNRCLUSTER_EASTUS/PROVIDERS/MICROSOFT.NETWORK/PUBLICIPADDRESSES/00001111-aaaa-2222-bbbb-3333cccc4444
ReasonForLogsStatus    : DiagnosticSettingsLimitReached
ReasonForMetricsStatus : 
SendingLog             : Disabled
SendingMetric          :

List the resources currently being monitored by the NewRelic monitor resource.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MonitorName

Name of the Monitors resource

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IMonitoredResource