Update-AzNewRelicMonitorTagRule
Update a TagRule
Syntax
Update-AzNewRelicMonitorTagRule
-MonitorName <String>
-ResourceGroupName <String>
-RuleSetName <String>
[-SubscriptionId <String>]
[-LogRuleFilteringTag <IFilteringTag[]>]
[-LogRuleSendAadLog <SendAadLogsStatus>]
[-LogRuleSendActivityLog <SendActivityLogsStatus>]
[-LogRuleSendSubscriptionLog <SendSubscriptionLogsStatus>]
[-MetricRuleFilteringTag <IFilteringTag[]>]
[-MetricRuleSendMetric <SendMetricsStatus>]
[-MetricRuleUserEmail <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzNewRelicMonitorTagRule
-InputObject <INewRelicIdentity>
[-LogRuleFilteringTag <IFilteringTag[]>]
[-LogRuleSendAadLog <SendAadLogsStatus>]
[-LogRuleSendActivityLog <SendActivityLogsStatus>]
[-LogRuleSendSubscriptionLog <SendSubscriptionLogsStatus>]
[-MetricRuleFilteringTag <IFilteringTag[]>]
[-MetricRuleSendMetric <SendMetricsStatus>]
[-MetricRuleUserEmail <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update a TagRule
Examples
Example 1: Update specific TagRule with specified monitor resource
Update-AzNewRelicMonitorTagRule -MonitorName test-03 -ResourceGroupName ps-test -RuleSetName default -LogRuleSendActivityLog 'Enabled'
Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ResourceGroupName RetryAfter
---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ----------------- ----------
default 6/28/2023 9:29:45 AM v-jiaji@microsoft.com User 6/29/2023 8:12:51 AM v-jiaji@microsoft.com User ps-test
Update specific TagRule with specified 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 |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | INewRelicIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-LogRuleFilteringTag
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured.If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. To construct, see NOTES section for LOGRULEFILTERINGTAG properties and create a hash table.
Type: | IFilteringTag[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogRuleSendAadLog
Flag specifying if AAD logs should be sent for the Monitor resource.
Type: | SendAadLogsStatus |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogRuleSendActivityLog
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
Type: | SendActivityLogsStatus |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogRuleSendSubscriptionLog
Flag specifying if subscription logs should be sent for the Monitor resource.
Type: | SendSubscriptionLogsStatus |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MetricRuleFilteringTag
List of filtering tags to be used for capturing metrics. To construct, see NOTES section for METRICRULEFILTERINGTAG properties and create a hash table.
Type: | IFilteringTag[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MetricRuleSendMetric
Flag specifying if metrics should be sent for the Monitor resource.
Type: | SendMetricsStatus |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MetricRuleUserEmail
User Email
Type: | String |
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 |
-RuleSetName
Name of the TagRule
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 |