From ff39b85f506704aaa6e400b823c551aecaa7a0fc Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Thu, 3 Sep 2026 01:45:46 +0000
Subject: [PATCH] [skip ci] Archive ee50d3afb5b4b5403f4e9c5ec5f7c60a35883bcc
---
.../exports/Get-AzNewRelicAccount.ps1 | 3 +-
.../exports/Get-AzNewRelicBillingInfo.ps1 | 3 +-
...Get-AzNewRelicConnectedPartnerResource.ps1 | 3 +-
.../exports/Get-AzNewRelicMonitor.ps1 | 3 +-
.../Get-AzNewRelicMonitorMetricRule.ps1 | 3 +-
.../Get-AzNewRelicMonitorMetricStatus.ps1 | 3 +-
...Get-AzNewRelicMonitorMonitoredResource.ps1 | 3 +-
.../exports/Get-AzNewRelicMonitorTagRule.ps1 | 3 +-
.../Get-AzNewRelicMonitoredAppService.ps1 | 3 +-
.../exports/Get-AzNewRelicMonitoredHost.ps1 | 3 +-
.../Get-AzNewRelicMonitoredSubscription.ps1 | 3 +-
.../exports/Get-AzNewRelicOrganization.ps1 | 3 +-
.../exports/Get-AzNewRelicPlan.ps1 | 3 +-
.../Initialize-AzNewRelicSaaSResource.ps1 | 3 +-
.../exports/Invoke-AzNewRelicHostMonitor.ps1 | 3 +-
...voke-AzNewRelicLatestMonitorLinkedSaaS.ps1 | 3 +-
.../Invoke-AzNewRelicLinkMonitorSaaS.ps1 | 3 +-
.../Invoke-AzNewRelicResubscribeMonitor.ps1 | 7 +-
.../exports/New-AzNewRelicMonitor.ps1 | 3 +-
.../exports/New-AzNewRelicMonitorTagRule.ps1 | 3 +-
.../New-AzNewRelicMonitoredSubscription.ps1 | 3 +-
.../exports/ProxyCmdletDefinitions.ps1 | 92 +++++++------------
.../exports/Remove-AzNewRelicMonitor.ps1 | 3 +-
.../Remove-AzNewRelicMonitorTagRule.ps1 | 3 +-
...Remove-AzNewRelicMonitoredSubscription.ps1 | 3 +-
.../Switch-AzNewRelicMonitorBilling.ps1 | 3 +-
.../Update-AzNewRelicMonitorIngestionKey.ps1 | 7 +-
.../Update-AzNewRelicMonitorTagRule.ps1 | 3 +-
...Update-AzNewRelicMonitoredSubscription.ps1 | 3 +-
.../NewRelic.Autorest/generate-info.json | 2 +-
...zNewRelicResubscribeMonitor_Resubscribe.cs | 4 +-
...cResubscribeMonitor_ResubscribeExpanded.cs | 4 +-
...subscribeMonitor_ResubscribeViaIdentity.cs | 4 +-
...eMonitor_ResubscribeViaIdentityExpanded.cs | 4 +-
...cribeMonitor_ResubscribeViaJsonFilePath.cs | 4 +-
...bscribeMonitor_ResubscribeViaJsonString.cs | 4 +-
.../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 1 +
.../BuildTime/Models/PsProxyOutputs.cs | 71 +++++++++++++-
.../generated/runtime/ISendAsync.cs | 18 ++++
39 files changed, 164 insertions(+), 136 deletions(-)
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1
index 54aa1a459f14..659560366253 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1
@@ -112,8 +112,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1
index ae69520a0a31..59600e760c68 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicBillingInfo.ps1
@@ -133,8 +133,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1
index 8a7fa96df57e..f0f9fc8b0ec2 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicConnectedPartnerResource.ps1
@@ -113,8 +113,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1
index 7cbbb9b2a8d8..5aa559ee1361 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1
@@ -151,8 +151,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1
index c7e0e413a621..02dc78efc01f 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricRule.ps1
@@ -158,8 +158,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1
index 567e26fb188d..c31e242a4bb0 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMetricStatus.ps1
@@ -166,8 +166,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1
index eb7568c97bf4..ea1656fd3409 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorMonitoredResource.ps1
@@ -113,8 +113,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1
index 234c086d66a5..52b524e6d31d 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorTagRule.ps1
@@ -157,8 +157,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1
index 49afbe233695..e5a071737f02 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredAppService.ps1
@@ -138,8 +138,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1
index 12e4ad5e8ac7..9142891c54ed 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredHost.ps1
@@ -138,8 +138,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1
index 033a90ced3e9..52055e33dd7d 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitoredSubscription.ps1
@@ -133,8 +133,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1
index 25ffed179db5..f7ce9e2838f2 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicOrganization.ps1
@@ -112,8 +112,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1
index f49234eb023a..bc64c2ef6df1 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicPlan.ps1
@@ -114,8 +114,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1
index 85f3331bcc64..a07d4c87a9b3 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Initialize-AzNewRelicSaaSResource.ps1
@@ -146,8 +146,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1
index 0657d222daad..0b7d54c00ee9 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicHostMonitor.ps1
@@ -133,8 +133,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1
index 155b89027f88..6657bb682c35 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLatestMonitorLinkedSaaS.ps1
@@ -136,8 +136,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1
index bf72326ae284..3d45f165703a 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicLinkMonitorSaaS.ps1
@@ -191,8 +191,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1
index ac5d07dbbe48..02a04784b863 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Invoke-AzNewRelicResubscribeMonitor.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
.Description
-Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
.Example
Invoke-AzNewRelicResubscribeMonitor -MonitorName "test-01" -ResourceGroupName "ps-test" -OrganizationId "987654321" -PlanId "newrelicpaygtestplan3@123456789123456@PUBIDnewrelicinc1234567891234" -PublisherId "newrelicinc1234567891234" -OfferId "newrelic-pay-as-you-go"
.Example
@@ -245,8 +245,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1
index ca6ef6b16a31..19d733c65c44 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitor.ps1
@@ -305,8 +305,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1
index fb479b62ff0b..ddb612e65ea3 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitorTagRule.ps1
@@ -208,8 +208,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1
index 2dfeb4846724..68f97a3c655c 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/New-AzNewRelicMonitoredSubscription.ps1
@@ -172,8 +172,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1
index 745d018a13e9..61a5a8042c26 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -112,8 +112,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -315,8 +314,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -499,8 +497,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -707,8 +704,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -917,8 +913,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1122,8 +1117,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1351,8 +1345,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1590,8 +1583,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -1776,8 +1768,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2003,8 +1994,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2188,8 +2178,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2372,8 +2361,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2588,8 +2576,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -2794,8 +2781,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3001,8 +2987,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3263,8 +3248,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3354,9 +3338,9 @@ end {
<#
.Synopsis
-Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
.Description
-Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
.Example
Invoke-AzNewRelicResubscribeMonitor -MonitorName "test-01" -ResourceGroupName "ps-test" -OrganizationId "987654321" -PlanId "newrelicpaygtestplan3@123456789123456@PUBIDnewrelicinc1234567891234" -PublisherId "newrelicinc1234567891234" -OfferId "newrelic-pay-as-you-go"
.Example
@@ -3583,8 +3567,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -3830,8 +3813,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4110,8 +4092,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4333,8 +4314,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4576,8 +4556,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -4806,8 +4785,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5085,8 +5063,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5334,8 +5311,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5425,9 +5401,9 @@ Refreshes the ingestion key for all monitors linked to the same account associat
.Description
Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor.
.Example
-Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test
+Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test
.Example
-Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test | Update-AzNewRelicMonitorIngestionKey
+Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test | Update-AzNewRelicMonitorIngestionKey
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicIdentity
@@ -5546,8 +5522,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -5866,8 +5841,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -6091,8 +6065,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
@@ -6591,8 +6564,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1
index a71cb761f6e6..a6141ec6df11 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitor.ps1
@@ -158,8 +158,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1
index 88d40b44b3b0..3d80fa372da1 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitorTagRule.ps1
@@ -172,8 +172,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1
index 21780673bb80..9a9678527733 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Remove-AzNewRelicMonitoredSubscription.ps1
@@ -151,8 +151,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1
index a5d637e87789..cda90f11526f 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Switch-AzNewRelicMonitorBilling.ps1
@@ -208,8 +208,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1
index 95af977a36f4..a08f2fd9f808 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorIngestionKey.ps1
@@ -20,9 +20,9 @@ Refreshes the ingestion key for all monitors linked to the same account associat
.Description
Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor.
.Example
-Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test
+Update-AzNewRelicMonitorIngestionKey -MonitorName clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test
.Example
-Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName vanshjoshi-clientparity-test | Update-AzNewRelicMonitorIngestionKey
+Get-AzNewRelicMonitor -Name clientParity-Test-1014 -ResourceGroupName azps-newrelic-clientparity-test | Update-AzNewRelicMonitorIngestionKey
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicIdentity
@@ -141,8 +141,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1
index b62c2206b494..cbb2252102ee 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitorTagRule.ps1
@@ -249,8 +249,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1 b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1
index 44cf846d8ff2..28f4f419a940 100644
--- a/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1
+++ b/generated/NewRelic/NewRelic.Autorest/exports/Update-AzNewRelicMonitoredSubscription.ps1
@@ -176,8 +176,7 @@ begin {
$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
- Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
- exit
+ throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
diff --git a/generated/NewRelic/NewRelic.Autorest/generate-info.json b/generated/NewRelic/NewRelic.Autorest/generate-info.json
index dc95a1a034c5..d1c78086ffef 100644
--- a/generated/NewRelic/NewRelic.Autorest/generate-info.json
+++ b/generated/NewRelic/NewRelic.Autorest/generate-info.json
@@ -1,3 +1,3 @@
{
- "generate_Id": "acc03236-0a96-42e1-b9e0-b1adb9eb0672"
+ "generate_Id": "9f4f3383-f06f-427a-9815-bd98daca4a5f"
}
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs
index 8b3751bf85ce..95b0be5291b3 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_Resubscribe.cs
@@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets
using System;
///
- /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+ /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
///
///
/// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_Resubscribe", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")]
public partial class InvokeAzNewRelicResubscribeMonitor_Resubscribe : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs
index 7d2f60416076..053ff748d7c6 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded.cs
@@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets
using System;
///
- /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+ /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
///
///
/// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")]
public partial class InvokeAzNewRelicResubscribeMonitor_ResubscribeExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs
index 83852a0f6822..abea5c6ae2e7 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity.cs
@@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets
using System;
///
- /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+ /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
///
///
/// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaIdentity", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")]
public partial class InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentity : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs
index 51c895ca08f2..41aaba03c608 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded.cs
@@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets
using System;
///
- /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+ /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
///
///
/// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")]
public partial class InvokeAzNewRelicResubscribeMonitor_ResubscribeViaIdentityExpanded : global::System.Management.Automation.PSCmdlet,
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs
index 1826a26158f5..2cc885daa88b 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath.cs
@@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets
using System;
///
- /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+ /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
///
///
/// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaJsonFilePath", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.NotSuggestDefaultParameterSet]
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs
index fe2842b4e2d1..6dcafaa8afda 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/cmdlets/InvokeAzNewRelicResubscribeMonitor_ResubscribeViaJsonString.cs
@@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Cmdlets
using System;
///
- /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace
+ /// Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.
///
///
/// [OpenAPI] Resubscribe=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe"
///
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzNewRelicResubscribeMonitor_ResubscribeViaJsonString", SupportsShouldProcess = true)]
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.INewRelicMonitorResource))]
- [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace")]
+ [global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Description(@"Resubscribes the New Relic Organization of the underlying Monitor Resource to be billed by Azure Marketplace.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Generated]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe", ApiVersion = "2025-05-01-preview")]
[global::Microsoft.Azure.PowerShell.Cmdlets.NewRelic.NotSuggestDefaultParameterSet]
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
index 77cf93224a2d..5f2b83a697a2 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
@@ -139,6 +139,7 @@ protected override void ProcessRecord()
}
sb.Append($"){Environment.NewLine}{Environment.NewLine}");
+ sb.Append(variantGroup.ToDynamicParamOutput());
sb.Append(variantGroup.ToBeginOutput());
sb.Append(variantGroup.ToProcessOutput());
sb.Append(variantGroup.ToEndOutput());
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
index bda3e2a7f48e..799e543f877b 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
@@ -6,6 +6,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
+using System.Management.Automation.Language;
using System.Text;
using System.Text.RegularExpressions;
using static Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PowerShell.PsProxyOutputExtensions;
@@ -199,6 +200,69 @@ public string ClearTelemetryContext()
}
}
+ internal class DynamicParamOutput : BaseOutput
+ {
+ public DynamicParamOutput(VariantGroup variantGroup) : base(variantGroup)
+ {
+ }
+
+ // Change Safety: only emit a dynamicparam block when the wrapped command actually declares dynamic
+ // parameters, either via IDynamicParameters (compiled private cmdlets) or via its own `dynamicparam`
+ // block (custom-fronted cmdlets, which wrap a hand-written function in custom/ instead of a private
+ // cmdlet). For every other cmdlet this emits nothing (zero diff), so it is a no-op that just forwards
+ // the wrapped command's runtime parameters through the proxy.
+ private bool HasDynamicParameters() => VariantGroup.Variants.Any(v =>
+ {
+ if (v.IsFunction)
+ {
+ // FunctionInfo.ScriptBlock.Ast is a FunctionDefinitionAst (the `function Name { ... }` wrapper);
+ // its Body (a ScriptBlockAst) is what actually exposes the DynamicParamBlock property.
+ var ast = (v.Info as FunctionInfo)?.ScriptBlock?.Ast;
+ var scriptBlockAst = ast as ScriptBlockAst ?? (ast as FunctionDefinitionAst)?.Body;
+ return scriptBlockAst?.DynamicParamBlock != null;
+ }
+ var implementingType = (v.Info as CmdletInfo)?.ImplementingType;
+ return implementingType != null && typeof(IDynamicParameters).IsAssignableFrom(implementingType);
+ });
+
+ private string GetParameterSetToCmdletMapping()
+ {
+ var sb = new StringBuilder();
+ sb.AppendLine($"{Indent}$mapping = @{{");
+ foreach (var variant in VariantGroup.Variants)
+ {
+ sb.AppendLine($@"{Indent}{Indent}{variant.VariantName} = '{variant.PrivateModuleName}\{variant.PrivateCmdletName}';");
+ }
+ sb.Append($"{Indent}}}");
+ return sb.ToString();
+ }
+
+ public override string ToString() => !HasDynamicParameters() ? String.Empty : $@"dynamicparam {{
+{Indent}$parameterSet = $PSCmdlet.ParameterSetName
+{GetParameterSetToCmdletMapping()}
+{Indent}if (-not $mapping.ContainsKey($parameterSet)) {{ $parameterSet = @($mapping.Keys)[0] }}
+{Indent}try {{
+{Indent}{Indent}$targetCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet -bor [System.Management.Automation.CommandTypes]::Function, $PSBoundParameters)
+{Indent}{Indent}$dynamicParams = @($targetCmd.Parameters.GetEnumerator() | Microsoft.PowerShell.Core\Where-Object {{ $_.Value.IsDynamic }})
+{Indent}{Indent}if ($dynamicParams.Length -gt 0) {{
+{Indent}{Indent}{Indent}$paramDictionary = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
+{Indent}{Indent}{Indent}foreach ($param in $dynamicParams) {{
+{Indent}{Indent}{Indent}{Indent}$param = $param.Value
+{Indent}{Indent}{Indent}{Indent}if (-not $MyInvocation.MyCommand.Parameters.ContainsKey($param.Name)) {{
+{Indent}{Indent}{Indent}{Indent}{Indent}$dynParam = [System.Management.Automation.RuntimeDefinedParameter]::new($param.Name, $param.ParameterType, $param.Attributes)
+{Indent}{Indent}{Indent}{Indent}{Indent}$paramDictionary.Add($param.Name, $dynParam)
+{Indent}{Indent}{Indent}{Indent}}}
+{Indent}{Indent}{Indent}}}
+{Indent}{Indent}{Indent}return $paramDictionary
+{Indent}{Indent}}}
+{Indent}}} catch {{
+{Indent}{Indent}throw
+{Indent}}}
+}}
+
+";
+ }
+
internal class BeginOutput : BaseOutput
{
public BeginOutput(VariantGroup variantGroup) : base(variantGroup)
@@ -218,13 +282,12 @@ public string GetProcessCustomAttributesAtRuntime()
private string GetLoginVerification()
{
- if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet)
+ if (!VariantGroup.IsInternal && IsAzure && !VariantGroup.IsModelCmdlet)
{
return $@"
{Indent}{Indent}$context = Get-AzContext
{Indent}{Indent}if (-not $context -and -not $testPlayback) {{
-{Indent}{Indent}{Indent}Write-Error ""No Azure login detected. Please run 'Connect-AzAccount' to log in.""
-{Indent}{Indent}{Indent}exit
+{Indent}{Indent}{Indent}throw ""No Azure login detected. Please run 'Connect-AzAccount' to log in.""
{Indent}{Indent}}}
";
}
@@ -641,6 +704,8 @@ public static string ToSyntaxTypeName(this Type type)
public static ParameterNameOutput ToParameterNameOutput(this string parameterName, bool isLast) => new ParameterNameOutput(parameterName, isLast);
+ public static DynamicParamOutput ToDynamicParamOutput(this VariantGroup variantGroup) => new DynamicParamOutput(variantGroup);
+
public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup);
public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup);
diff --git a/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs b/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs
index a30d3ada55a8..d83c90d0ec59 100644
--- a/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs
+++ b/generated/NewRelic/NewRelic.Autorest/generated/runtime/ISendAsync.cs
@@ -356,6 +356,20 @@ internal static Task CloneWithContentAndDispose(this HttpReq
/// A clone of the HttpRequestMessage
internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null)
{
+ // Resolve a relative target against the original request so same-origin relative nextLinks are not misclassified as cross-origin.
+ var effectiveTargetUri = requestUri;
+ if (effectiveTargetUri != null && !effectiveTargetUri.IsAbsoluteUri && original.RequestUri != null && original.RequestUri.IsAbsoluteUri)
+ {
+ System.Uri.TryCreate(original.RequestUri, effectiveTargetUri, out effectiveTargetUri);
+ }
+ // Keep credentials only for a same-origin (scheme+host+port) https target. A null target (no retarget, e.g. retry)
+ // or an unresolved relative target preserves existing behavior and keeps the headers.
+ var isSameOrigin = effectiveTargetUri == null || !effectiveTargetUri.IsAbsoluteUri ||
+ (original.RequestUri != null && original.RequestUri.IsAbsoluteUri &&
+ original.RequestUri.Scheme.Equals(effectiveTargetUri.Scheme, System.StringComparison.OrdinalIgnoreCase) &&
+ original.RequestUri.Host.Equals(effectiveTargetUri.Host, System.StringComparison.OrdinalIgnoreCase) &&
+ original.RequestUri.Port == effectiveTargetUri.Port &&
+ effectiveTargetUri.Scheme.Equals(System.Uri.UriSchemeHttps, System.StringComparison.OrdinalIgnoreCase));
var clone = new HttpRequestMessage
{
Method = method ?? original.Method,
@@ -376,6 +390,10 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste
*/
if (!"x-ms-unique-id".Equals(header.Key) && !"x-ms-client-request-id".Equals(header.Key) && !"CommandName".Equals(header.Key) && !"FullCommandName".Equals(header.Key) && !"ParameterSetName".Equals(header.Key) && !"User-Agent".Equals(header.Key))
{
+ if (!isSameOrigin && ("Authorization".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase) || "Proxy-Authorization".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase) || "Cookie".Equals(header.Key, System.StringComparison.OrdinalIgnoreCase)))
+ {
+ continue;
+ }
clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
}
}