az new-relic monitor
Note
This reference is part of the new-relic extension for the Azure CLI (version 2.57.0 or higher). The extension will automatically install the first time you run an az new-relic monitor command. Learn more about extensions.
Manage NewRelic Monitor resource.
Commands
Name | Description | Type | Status |
---|---|---|---|
az new-relic monitor create |
Create a NewRelicMonitorResource. |
Extension | GA |
az new-relic monitor delete |
Delete a NewRelicMonitorResource. |
Extension | GA |
az new-relic monitor get-billing-info |
Get marketplace info mapped to the given monitor. |
Extension | GA |
az new-relic monitor get-metric-rule |
Get metric rules. |
Extension | GA |
az new-relic monitor get-metric-statu |
Get metric status. |
Extension | GA |
az new-relic monitor list |
List NewRelicMonitorResource resources. |
Extension | GA |
az new-relic monitor list-app-service |
List the app service resources currently being monitored by the NewRelic resource. |
Extension | GA |
az new-relic monitor list-connected-partner-resource |
List of all active deployments that are associated with the marketplace subscription linked to the given monitor. |
Extension | GA |
az new-relic monitor list-host |
List the compute vm resources currently being monitored by the NewRelic resource. |
Extension | GA |
az new-relic monitor list-linked-resource |
List all Azure resources associated to the same NewRelic organization and account as the target resource. |
Extension | GA |
az new-relic monitor monitored-resource |
List the resources currently being monitored by the NewRelic monitor resource. |
Extension | GA |
az new-relic monitor monitored-subscription |
Manage list of subscriptions and the state of the monitoring. |
Extension | GA |
az new-relic monitor monitored-subscription create |
Create the subscriptions that should be monitored by the NewRelic monitor resource. |
Extension | GA |
az new-relic monitor monitored-subscription delete |
Delete the subscriptions that are being monitored by the NewRelic monitor resource. |
Extension | GA |
az new-relic monitor monitored-subscription show |
Get the subscriptions currently being monitored by the NewRelic monitor resource. |
Extension | GA |
az new-relic monitor monitored-subscription update |
Update the subscriptions that should be monitored by the NewRelic monitor resource. |
Extension | GA |
az new-relic monitor monitored-subscription wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az new-relic monitor show |
Get a NewRelicMonitorResource. |
Extension | GA |
az new-relic monitor switch-billing |
Switches the billing for NewRelic monitor resource. |
Extension | GA |
az new-relic monitor tag-rule |
Manage tag rule of a NewRelic Monitor resource. |
Extension | GA |
az new-relic monitor tag-rule create |
Create a TagRule. |
Extension | GA |
az new-relic monitor tag-rule delete |
Delete a TagRule. |
Extension | GA |
az new-relic monitor tag-rule list |
List TagRule resources by NewRelicMonitorResource. |
Extension | GA |
az new-relic monitor tag-rule show |
Get a TagRule. |
Extension | GA |
az new-relic monitor tag-rule update |
Update a TagRule. |
Extension | GA |
az new-relic monitor tag-rule wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az new-relic monitor vm-host-payload |
Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM. |
Extension | GA |
az new-relic monitor wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az new-relic monitor create
Create a NewRelicMonitorResource.
az new-relic monitor create --monitor-name
--resource-group
[--account-creation-source {LIFTR, NEWRELIC}]
[--identity]
[--location]
[--new-relic-account]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--org-creation-source {LIFTR, NEWRELIC}]
[--plan-data]
[--tags]
[--user-info]
Examples
Create a NewRelicMonitorResource.
az new-relic monitor create --resource-group MyResourceGroup --name MyNewRelicMonitor --location eastus2euap --user-info first-name="vdftzcggiref" last-name="bcsztgqovdlmzf" email-address="UserEmail@123.com" phone-number="123456" --plan-data billing-cycle="MONTHLY" effective-date='2022-10-25T15:14:33+02:00' plan-details="newrelic-pay-as-you-go-free-live@TIDgmz7xq9ge3py@PUBIDnewrelicinc1635200720692.newrelic_liftr_payg" usage-type="PAYG" --account-creation-source "LIFTR" --org-creation-source "LIFTR" --tags key6976=oaxfhf
Required Parameters
Name of the Monitors resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Optional Parameters
Source of account creation.
The managed service identities assigned to this resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The geo-location where the resource lives When not specified, the location of the resource group will be used. When not specified, the location of the resource group will be used.
MarketplaceSubscriptionStatus of the resource Support shorthand-syntax, json-file and yaml-file. Try "??" to show Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Do not wait for the long-running operation to finish.
Source of org creation.
Plan details Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
User Info Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor delete
Delete a NewRelicMonitorResource.
az new-relic monitor delete --user-email
[--ids]
[--monitor-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
Examples
Delete a NewRelicMonitorResource.
az new-relic monitor delete --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email UserEmail@123.com
Required Parameters
User Email.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor get-billing-info
Get marketplace info mapped to the given monitor.
az new-relic monitor get-billing-info [--g]
[--ids]
[--monitor-name]
[--subscription]
Examples
Get marketplace info mapped to the given monitor.
az new-relic monitor get-billing-info --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor get-metric-rule
Get metric rules.
az new-relic monitor get-metric-rule --user-email
[--ids]
[--monitor-name]
[--resource-group]
[--subscription]
Examples
Get metric rules.
az new-relic monitor get-metric-rule --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup --user-email UserEmail@123.com
Required Parameters
User Email.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor get-metric-statu
Get metric status.
az new-relic monitor get-metric-statu --user-email
[--azure-resource-ids]
[--ids]
[--monitor-name]
[--resource-group]
[--subscription]
Examples
Get metric status.
az new-relic monitor get-metric-statu --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email UserEmail@123.com --azure-resource-ids MyAzureResourceIds
Required Parameters
User Email.
Optional Parameters
Azure resource IDs Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor list
List NewRelicMonitorResource resources.
az new-relic monitor list [--max-items]
[--next-token]
[--resource-group]
Examples
List NewRelicMonitorResource resources by subscription ID
az new-relic monitor list
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Name of resource group. You can configure the default group using az configure --defaults group=.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor list-app-service
List the app service resources currently being monitored by the NewRelic resource.
az new-relic monitor list-app-service --monitor-name
--resource-group
--user-email
[--azure-resource-ids]
[--max-items]
[--next-token]
Examples
List the app service resources currently being monitored by the NewRelic resource.
az new-relic monitor list-app-service --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email UserEmail@123.com --azure-resource-ids MyAzureResourceIds
Required Parameters
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
User Email.
Optional Parameters
Azure resource IDs Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor list-connected-partner-resource
List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
az new-relic monitor list-connected-partner-resource --monitor-name
--resource-group
[--body]
[--max-items]
[--next-token]
Examples
List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
az new-relic monitor list-connected-partner-resource --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor
Required Parameters
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Optional Parameters
Reusable representation of an email address.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor list-host
List the compute vm resources currently being monitored by the NewRelic resource.
az new-relic monitor list-host --monitor-name
--resource-group
--user-email
[--max-items]
[--next-token]
[--vm-ids]
Examples
List the compute vm resources currently being monitored by the NewRelic resource.
az new-relic monitor list-host --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --user-email UserEmail@123.com --vm-ids MyVmIds
Required Parameters
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
User Email.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
VM resource IDs Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor list-linked-resource
List all Azure resources associated to the same NewRelic organization and account as the target resource.
az new-relic monitor list-linked-resource --monitor-name
--resource-group
[--max-items]
[--next-token]
Examples
List all Azure resources associated to the same NewRelic organization and account as the target resource.
az new-relic monitor list-linked-resource --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup
Required Parameters
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor monitored-resource
List the resources currently being monitored by the NewRelic monitor resource.
az new-relic monitor monitored-resource --monitor-name
--resource-group
[--max-items]
[--next-token]
Examples
List the resources currently being monitored by the NewRelic monitor resource.
az new-relic monitor monitored-resource --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup
Required Parameters
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor show
Get a NewRelicMonitorResource.
az new-relic monitor show [--ids]
[--monitor-name]
[--resource-group]
[--subscription]
Examples
Get a NewRelicMonitorResource.
az new-relic monitor show --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor switch-billing
Switches the billing for NewRelic monitor resource.
az new-relic monitor switch-billing --user-email
[--azure-resource-id]
[--ids]
[--monitor-name]
[--organization-id]
[--plan-data]
[--resource-group]
[--subscription]
Examples
Switches the billing for NewRelic monitor resource.
az new-relic monitor switch-billing --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup --azure-resource-id resourceId --organization-id organizationId --user-email="UserEmail@123.com" --plan-data billing-cycle="MONTHLY" effective-date='2022-10-25T15:14:33+02:00' plan-details="nr-privateofferplan03-upfront@TID5xd5yfrmr6no@PUBIDnewrelicinc-privateoffers.nr-privateoffers1" usage-type="COMMITTED"
Required Parameters
User Email.
Optional Parameters
Azure resource Id.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Organization id.
Plan details Support shorthand-syntax, json-file and yaml-file. Try "??" to show more. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor vm-host-payload
Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.
az new-relic monitor vm-host-payload [--ids]
[--monitor-name]
[--resource-group]
[--subscription]
Examples
Get MonitorsVmHostPayload.
az monitor vm-host-payload --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az new-relic monitor wait
Place the CLI in a waiting state until a condition is met.
az new-relic monitor wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--monitor-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
Name of the Monitoring resource.
Name of resource group. You can configure the default group using az configure --defaults group=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.