Skip to content

Commit 91e21f7

Browse files
Vansh-JoshiCopilot
andauthored
Client Parity Refresh for New Relic (#28710)
Co-authored-by: Copilot <[email protected]>
1 parent bfe3899 commit 91e21f7

File tree

76 files changed

+3636
-526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3636
-526
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NewRelic")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/NewRelic/NewRelic.Autorest/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ For information on how to develop for `Az.NewRelic`, see [how-to.md](how-to.md).
2828
2929
```yaml
3030
# pin the swagger version by using the commit id instead of branch name
31-
commit: 559f989d2b38bc80db762cfd277614583dddc3bb
32-
tag: package-2024-01-01
31+
commit: 91e3aca0bfa4b59a9f578959d0b214a26b90df40
32+
tag: package-2025-05-01-preview
3333
require:
3434
# readme.azure.noprofile.md is the common configuration file
3535
- $(this-folder)/../../readme.azure.noprofile.md
@@ -151,6 +151,12 @@ directive:
151151
subject: MonitorAppService
152152
set:
153153
subject: MonitoredAppService
154+
- where:
155+
verb: Invoke
156+
subject: ResubscribeMonitor
157+
parameter-name: -SubscriptionId1
158+
set:
159+
parameter-name: -NewSubscriptionId
154160
# customize the body property and parameter name
155161
# - from: source-file-csharp
156162
# where: $

src/NewRelic/NewRelic.Autorest/UX/NewRelic.Observability/monitors-monitoredSubscriptions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "monitors/monitoredSubscriptions",
3-
"apiVersion": "2024-01-01",
3+
"apiVersion": "2025-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.newrelic"
66
},
77
"commands": [
88
{
99
"name": "Get-AzNewRelicMonitoredSubscription",
10-
"description": "List the subscriptions currently being monitored by the NewRelic monitor resource.",
10+
"description": "Lists all the subscriptions currently being monitored by the NewRelic monitor resource.",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
1212
"help": {
1313
"learnMore": {
@@ -25,7 +25,7 @@
2525
},
2626
"examples": [
2727
{
28-
"description": "List the subscriptions currently being monitored by the NewRelic monitor resource.",
28+
"description": "Lists all the subscriptions currently being monitored by the NewRelic monitor resource.",
2929
"parameters": [
3030
{
3131
"name": "-MonitorName",

src/NewRelic/NewRelic.Autorest/UX/NewRelic.Observability/monitors-tagRules.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "monitors/tagRules",
3-
"apiVersion": "2024-01-01",
3+
"apiVersion": "2025-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.newrelic"
66
},
77
"commands": [
88
{
99
"name": "Get-AzNewRelicMonitorTagRule",
10-
"description": "Get a TagRule",
10+
"description": "Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
1212
"help": {
1313
"learnMore": {
@@ -26,7 +26,7 @@
2626
},
2727
"examples": [
2828
{
29-
"description": "Get a TagRule",
29+
"description": "Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status",
3030
"parameters": [
3131
{
3232
"name": "-MonitorName",
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"name": "Remove-AzNewRelicMonitorTagRule",
53-
"description": "Delete a TagRule",
53+
"description": "Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags",
5454
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}",
5555
"help": {
5656
"learnMore": {
@@ -69,7 +69,7 @@
6969
},
7070
"examples": [
7171
{
72-
"description": "Delete a TagRule",
72+
"description": "Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags",
7373
"parameters": [
7474
{
7575
"name": "-MonitorName",

src/NewRelic/NewRelic.Autorest/UX/NewRelic.Observability/monitors.json

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "monitors",
3-
"apiVersion": "2024-01-01",
3+
"apiVersion": "2025-05-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.newrelic"
66
},
77
"commands": [
88
{
99
"name": "Get-AzNewRelicBillingInfo",
10-
"description": "Get marketplace info mapped to the given monitor.",
10+
"description": "Retrieves marketplace and organization information mapped to the given New Relic monitor resource",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getBillingInfo",
1212
"help": {
1313
"learnMore": {
@@ -25,7 +25,7 @@
2525
},
2626
"examples": [
2727
{
28-
"description": "Get marketplace info mapped to the given monitor.",
28+
"description": "Retrieves marketplace and organization information mapped to the given New Relic monitor resource",
2929
"parameters": [
3030
{
3131
"name": "-MonitorName",
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"name": "Invoke-AzNewRelicHostMonitor",
48-
"description": "Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.",
48+
"description": "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",
4949
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/vmHostPayloads",
5050
"help": {
5151
"learnMore": {
@@ -63,7 +63,45 @@
6363
},
6464
"examples": [
6565
{
66-
"description": "Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.",
66+
"description": "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",
67+
"parameters": [
68+
{
69+
"name": "-MonitorName",
70+
"value": "[Path.monitorName]"
71+
},
72+
{
73+
"name": "-ResourceGroupName",
74+
"value": "[Path.resourceGroupName]"
75+
},
76+
{
77+
"name": "-SubscriptionId",
78+
"value": "[Path.subscriptionId]"
79+
}
80+
]
81+
}
82+
]
83+
},
84+
{
85+
"name": "Invoke-AzNewRelicLatestMonitorLinkedSaaS",
86+
"description": "Returns the latest SaaS linked to the newrelic organization of the underlying monitor.",
87+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/latestLinkedSaaS",
88+
"help": {
89+
"learnMore": {
90+
"url": "https://learn.microsoft.com/powershell/module/az.newrelic/invoke-aznewreliclatestmonitorlinkedsaas"
91+
},
92+
"parameterSets": [
93+
{
94+
"parameters": [
95+
"-MonitorName <String>",
96+
"-ResourceGroupName <String>",
97+
"[-SubscriptionId <String>]"
98+
]
99+
}
100+
]
101+
},
102+
"examples": [
103+
{
104+
"description": "Returns the latest SaaS linked to the newrelic organization of the underlying monitor.",
67105
"parameters": [
68106
{
69107
"name": "-MonitorName",

src/NewRelic/NewRelic.Autorest/custom/autogen-model-cmdlets/New-AzNewRelicFilteringTagObject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.FilteringTag
2626
https://learn.microsoft.com/powershell/module/Az.NewRelic/new-aznewrelicfilteringtagobject
2727
#>
2828
function New-AzNewRelicFilteringTagObject {
29+
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.ModelCmdletAttribute()]
2930
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.FilteringTag')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(

src/NewRelic/NewRelic.Autorest/custom/autogen-model-cmdlets/New-AzNewRelicMonitoredSubscriptionObject.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.MonitoredSubscription
2626
https://learn.microsoft.com/powershell/module/Az.NewRelic/new-aznewrelicmonitoredsubscriptionobject
2727
#>
2828
function New-AzNewRelicMonitoredSubscriptionObject {
29+
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.ModelCmdletAttribute()]
2930
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.MonitoredSubscription')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(
Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.NewRelic
3-
Module Guid: fcb6df7e-4a86-4278-88de-1e16f349572c
3+
Module Guid: 9594ee80-6c29-41b6-a615-e8689b5ae0dd
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.newrelic
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -12,10 +12,10 @@ Microsoft Azure PowerShell: NewRelic cmdlets
1212

1313
## Az.NewRelic Cmdlets
1414
### [Get-AzNewRelicAccount](Get-AzNewRelicAccount.md)
15-
List all the existing accounts
15+
Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created
1616

1717
### [Get-AzNewRelicBillingInfo](Get-AzNewRelicBillingInfo.md)
18-
Get marketplace info mapped to the given monitor.
18+
Retrieves marketplace and organization information mapped to the given New Relic monitor resource
1919

2020
### [Get-AzNewRelicConnectedPartnerResource](Get-AzNewRelicConnectedPartnerResource.md)
2121
List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
@@ -24,34 +24,46 @@ List of all active deployments that are associated with the marketplace subscrip
2424
Get a NewRelicMonitorResource
2525

2626
### [Get-AzNewRelicMonitoredAppService](Get-AzNewRelicMonitoredAppService.md)
27-
List the app service resources currently being monitored by the NewRelic resource.
27+
Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring
2828

2929
### [Get-AzNewRelicMonitoredHost](Get-AzNewRelicMonitoredHost.md)
30-
List the compute vm resources currently being monitored by the NewRelic resource.
30+
Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability
3131

3232
### [Get-AzNewRelicMonitoredSubscription](Get-AzNewRelicMonitoredSubscription.md)
33-
List the subscriptions currently being monitored by the NewRelic monitor resource.
33+
Lists all the subscriptions currently being monitored by the NewRelic monitor resource.
3434

3535
### [Get-AzNewRelicMonitorMetricRule](Get-AzNewRelicMonitorMetricRule.md)
36-
Get metric rules
36+
Retrieves the metric rules that are configured in the New Relic monitor resource
3737

3838
### [Get-AzNewRelicMonitorMetricStatus](Get-AzNewRelicMonitorMetricStatus.md)
39-
Get metric status
39+
Retrieves the metric status that are configured in the New Relic monitor resource
4040

4141
### [Get-AzNewRelicMonitorMonitoredResource](Get-AzNewRelicMonitorMonitoredResource.md)
42-
List the resources currently being monitored by the NewRelic monitor resource.
42+
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
4343

4444
### [Get-AzNewRelicMonitorTagRule](Get-AzNewRelicMonitorTagRule.md)
45-
Get a TagRule
45+
Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status
4646

4747
### [Get-AzNewRelicOrganization](Get-AzNewRelicOrganization.md)
48-
List all the existing organizations
48+
Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created
4949

5050
### [Get-AzNewRelicPlan](Get-AzNewRelicPlan.md)
51-
List plans data
51+
Lists the plans data linked to your organization, providing an overview of the available plans
52+
53+
### [Initialize-AzNewRelicSaaSResource](Initialize-AzNewRelicSaaSResource.md)
54+
Resolve the token to get the SaaS resource ID and activate the SaaS resource
5255

5356
### [Invoke-AzNewRelicHostMonitor](Invoke-AzNewRelicHostMonitor.md)
54-
Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.
57+
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
58+
59+
### [Invoke-AzNewRelicLatestMonitorLinkedSaaS](Invoke-AzNewRelicLatestMonitorLinkedSaaS.md)
60+
Returns the latest SaaS linked to the newrelic organization of the underlying monitor.
61+
62+
### [Invoke-AzNewRelicLinkMonitorSaaS](Invoke-AzNewRelicLinkMonitorSaaS.md)
63+
Links a new SaaS to the newrelic organization of the underlying monitor.
64+
65+
### [Invoke-AzNewRelicResubscribeMonitor](Invoke-AzNewRelicResubscribeMonitor.md)
66+
Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace
5567

5668
### [New-AzNewRelicFilteringTagObject](New-AzNewRelicFilteringTagObject.md)
5769
Create an in-memory object for FilteringTag.
@@ -60,29 +72,32 @@ Create an in-memory object for FilteringTag.
6072
Create a NewRelicMonitorResource
6173

6274
### [New-AzNewRelicMonitoredSubscription](New-AzNewRelicMonitoredSubscription.md)
63-
Add the subscriptions that should be monitored by the NewRelic monitor resource.
75+
Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.
6476

6577
### [New-AzNewRelicMonitoredSubscriptionObject](New-AzNewRelicMonitoredSubscriptionObject.md)
6678
Create an in-memory object for MonitoredSubscription.
6779

6880
### [New-AzNewRelicMonitorTagRule](New-AzNewRelicMonitorTagRule.md)
69-
Create a TagRule
81+
Create a new set of tag rules for a specific New Relic monitor resource, determining which Azure resources are monitored based on their tags
7082

7183
### [Remove-AzNewRelicMonitor](Remove-AzNewRelicMonitor.md)
72-
Delete a NewRelicMonitorResource
84+
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
7385

7486
### [Remove-AzNewRelicMonitoredSubscription](Remove-AzNewRelicMonitoredSubscription.md)
7587
Deletes the subscriptions that are being monitored by the NewRelic monitor resource
7688

7789
### [Remove-AzNewRelicMonitorTagRule](Remove-AzNewRelicMonitorTagRule.md)
78-
Delete a TagRule
90+
Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags
7991

8092
### [Switch-AzNewRelicMonitorBilling](Switch-AzNewRelicMonitorBilling.md)
81-
Switches the billing for NewRelic monitor resource.
93+
Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace
8294

8395
### [Update-AzNewRelicMonitoredSubscription](Update-AzNewRelicMonitoredSubscription.md)
84-
Add the subscriptions that should be monitored by the NewRelic monitor resource.
96+
Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.
97+
98+
### [Update-AzNewRelicMonitorIngestionKey](Update-AzNewRelicMonitorIngestionKey.md)
99+
Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor.
85100

86101
### [Update-AzNewRelicMonitorTagRule](Update-AzNewRelicMonitorTagRule.md)
87-
Update a TagRule
102+
Update the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored
88103

src/NewRelic/NewRelic.Autorest/docs/Get-AzNewRelicAccount.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzNewRelicAccount
99

1010
## SYNOPSIS
11-
List all the existing accounts
11+
Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Get-AzNewRelicAccount -Location <String> -UserEmail <String> [-SubscriptionId <S
1818
```
1919

2020
## DESCRIPTION
21-
List all the existing accounts
21+
Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created
2222

2323
## EXAMPLES
2424

src/NewRelic/NewRelic.Autorest/docs/Get-AzNewRelicBillingInfo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzNewRelicBillingInfo
99

1010
## SYNOPSIS
11-
Get marketplace info mapped to the given monitor.
11+
Retrieves marketplace and organization information mapped to the given New Relic monitor resource
1212

1313
## SYNTAX
1414

@@ -25,7 +25,7 @@ Get-AzNewRelicBillingInfo -InputObject <INewRelicIdentity> [-DefaultProfile <PSO
2525
```
2626

2727
## DESCRIPTION
28-
Get marketplace info mapped to the given monitor.
28+
Retrieves marketplace and organization information mapped to the given New Relic monitor resource
2929

3030
## EXAMPLES
3131

0 commit comments

Comments
 (0)