az new-relic monitor

Note

This reference is part of the new-relic extension for the Azure CLI (version 2.61.0 or higher). The extension will automatically install the first time you run an az new-relic monitor command. Learn more about extensions.

Provides a set of commands to manage New Relic monitor resources in your Azure subscription, enabling integration and observability of your Azure resources through New Relic.

Commands

Name Description Type Status
az new-relic monitor create

Creates a new New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic.

Extension GA
az new-relic monitor delete

Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic.

Extension GA
az new-relic monitor get-billing-info

Retrieve marketplace and organization billing information mapped to the given New Relic monitor resource.

Extension GA
az new-relic monitor get-metric-rule

Retrieves the metric rules that are configured in the New Relic monitor resource.

Extension GA
az new-relic monitor get-metric-statu

Retrieves the metric status that are configured in the New Relic monitor resource.

Extension GA
az new-relic monitor list

Retrieves a list of all New Relic monitor resources either within a specific resource group or across the entire subscription, helping you quickly audit and manage your monitoring setup.

Extension GA
az new-relic monitor list-app-service

Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring.

Extension GA
az new-relic monitor list-connected-partner-resource

List all active deployments associated with the marketplace subscription linked to the given New Relic monitor resource.

Extension GA
az new-relic monitor list-host

List all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability.

Extension GA
az new-relic monitor list-linked-resource

Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration.

Extension GA
az new-relic monitor monitored-resource

Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup.

Extension GA
az new-relic monitor monitored-subscription

Manage subscriptions monitored by the New Relic monitor resource, ensuring optimal observability and performance.

Extension GA
az new-relic monitor monitored-subscription create

Create subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.

Extension GA
az new-relic monitor monitored-subscription delete

Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities.

Extension GA
az new-relic monitor monitored-subscription show

Get detailed information about all subscriptions currently being monitored by the New Relic monitor resource.

Extension GA
az new-relic monitor monitored-subscription update

Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance.

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

Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status.

Extension GA
az new-relic monitor switch-billing

Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace.

Extension GA
az new-relic monitor tag-rule

Provides a set of commands to manage tag rules for New Relic monitor resources, allowing you to control which Azure resources are monitored based on their tags.

Extension GA
az new-relic monitor tag-rule create

Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure resources are monitored based on their tags.

Extension GA
az new-relic monitor tag-rule delete

Delete a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags.

Extension GA
az new-relic monitor tag-rule list

Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring.

Extension GA
az new-relic monitor tag-rule show

Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status.

Extension GA
az new-relic monitor tag-rule update

Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored.

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 the New Relic agent on a VM, providing the necessary configuration details.

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

Creates a new New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic.

az new-relic monitor create --monitor-name --name
                            --resource-group
                            [--account-creation-source --account-source {LIFTR, NEWRELIC}]
                            [--acquire-policy-token]
                            [--change-reference]
                            [--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

--monitor-name --name -n

Name of the Monitors resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--account-creation-source --account-source

Source of account creation.

Property Value
Parameter group: Properties Arguments
Accepted values: LIFTR, NEWRELIC
--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--identity

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.

Property Value
Parameter group: Resource Arguments
Default value: {'type': 'SystemAssigned'}
--location -l

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.

Property Value
Parameter group: Resource Arguments
--new-relic-account

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.

Property Value
Parameter group: Properties Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--org-creation-source

Source of org creation.

Property Value
Parameter group: Properties Arguments
Accepted values: LIFTR, NEWRELIC
--plan-data

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.

Property Value
Parameter group: Properties Arguments
--tags

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.

Property Value
Parameter group: Resource Arguments
--user-info

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.

Property Value
Parameter group: Properties Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor delete

Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic.

az new-relic monitor delete --user-email
                            [--acquire-policy-token]
                            [--change-reference]
                            [--ids]
                            [--monitor-name --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

User Email.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name --name -n

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor get-billing-info

Retrieve marketplace and organization billing information mapped to the given New Relic monitor resource.

az new-relic monitor get-billing-info [--acquire-policy-token]
                                      [--change-reference]
                                      [--g --resource-group]
                                      [--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

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--g --resource-group

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor get-metric-rule

Retrieves the metric rules that are configured in the New Relic monitor resource.

az new-relic monitor get-metric-rule --user-email
                                     [--acquire-policy-token]
                                     [--change-reference]
                                     [--ids]
                                     [--monitor-name --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

User Email.

Property Value
Parameter group: Request Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name --name -n

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor get-metric-statu

Retrieves the metric status that are configured in the New Relic monitor resource.

az new-relic monitor get-metric-statu --user-email
                                      [--acquire-policy-token]
                                      [--azure-resource-ids]
                                      [--change-reference]
                                      [--ids]
                                      [--monitor-name --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

User Email.

Property Value
Parameter group: Request Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--azure-resource-ids

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.

Property Value
Parameter group: Request Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name --name -n

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor list

Retrieves a list of all New Relic monitor resources either within a specific resource group or across the entire subscription, helping you quickly audit and manage your monitoring setup.

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

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--max-items

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.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor list-app-service

Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring.

az new-relic monitor list-app-service --monitor-name --name
                                      --resource-group
                                      --user-email
                                      [--acquire-policy-token]
                                      [--azure-resource-ids]
                                      [--change-reference]
                                      [--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

--monitor-name --name -n

Name of the Monitoring resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--user-email

User Email.

Property Value
Parameter group: Request Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--azure-resource-ids

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.

Property Value
Parameter group: Request Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-items

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.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor list-connected-partner-resource

List all active deployments associated with the marketplace subscription linked to the given New Relic monitor resource.

az new-relic monitor list-connected-partner-resource --monitor-name
                                                     --resource-group
                                                     [--acquire-policy-token]
                                                     [--body]
                                                     [--change-reference]
                                                     [--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

--monitor-name

Name of the Monitoring resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--body

Reusable representation of an email address.

--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-items

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.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor list-host

List all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability.

az new-relic monitor list-host --monitor-name --name
                               --resource-group
                               --user-email
                               [--acquire-policy-token]
                               [--change-reference]
                               [--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

--monitor-name --name -n

Name of the Monitoring resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--user-email

User Email.

Property Value
Parameter group: Request Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-items

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.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
--vm-ids

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.

Property Value
Parameter group: Request Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor list-linked-resource

Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration.

az new-relic monitor list-linked-resource --monitor-name
                                          --resource-group
                                          [--acquire-policy-token]
                                          [--change-reference]
                                          [--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

--monitor-name

Name of the Monitoring resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-items

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.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor monitored-resource

Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup.

az new-relic monitor monitored-resource --monitor-name --name
                                        --resource-group
                                        [--acquire-policy-token]
                                        [--change-reference]
                                        [--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

--monitor-name --name -n

Name of the Monitoring resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-items

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.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor show

Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status.

az new-relic monitor show [--ids]
                          [--monitor-name --name]
                          [--resource-group]
                          [--subscription]

Examples

Get a NewRelicMonitorResource.

az new-relic monitor show --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name --name -n

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor switch-billing

Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace.

az new-relic monitor switch-billing --user-email
                                    [--acquire-policy-token]
                                    [--azure-resource-id]
                                    [--change-reference]
                                    [--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

User Email.

Property Value
Parameter group: Request Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--azure-resource-id

Azure resource Id.

Property Value
Parameter group: Request Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--organization-id

Organization id.

Property Value
Parameter group: Request Arguments
--plan-data

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.

Property Value
Parameter group: Request Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor vm-host-payload

Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details.

az new-relic monitor vm-host-payload [--acquire-policy-token]
                                     [--change-reference]
                                     [--ids]
                                     [--monitor-name]
                                     [--resource-group]
                                     [--subscription]

Examples

Get MonitorsVmHostPayload.

az monitor vm-host-payload --monitor-name MyNewRelicMonitor --resource-group MyResourceGroup

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--monitor-name

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az new-relic monitor wait

Place the CLI in a waiting state until a condition is met.

az new-relic monitor wait [--acquire-policy-token]
                          [--change-reference]
                          [--created]
                          [--custom]
                          [--deleted]
                          [--exists]
                          [--ids]
                          [--interval]
                          [--monitor-name --name]
                          [--resource-group]
                          [--subscription]
                          [--timeout]
                          [--updated]

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--created

Wait until created with 'provisioningState' at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

Property Value
Parameter group: Wait Condition Arguments
--deleted

Wait until deleted.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--exists

Wait until the resource exists.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--ids

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.

Property Value
Parameter group: Resource Id Arguments
--interval

Polling interval in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 30
--monitor-name --name -n

Name of the Monitoring resource.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
--timeout

Maximum wait in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False