Skip to content

Commit 303b4a8

Browse files
Refresh autorest-selected modules from generation to main (#24694)
1 parent dd23748 commit 303b4a8

File tree

535 files changed

+25161
-2823
lines changed

Some content is hidden

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

535 files changed

+25161
-2823
lines changed
Lines changed: 21 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.NewRelic'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 7/10/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.NewRelic.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.1.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = 'fcb6df7e-4a86-4278-88de-1e16f349572c'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: NewRelic cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.NewRelic.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.NewRelic.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzNewRelicAccount', 'Get-AzNewRelicMonitor',
73-
'Get-AzNewRelicMonitorAppService', 'Get-AzNewRelicMonitorHost',
74-
'Get-AzNewRelicMonitorMetricRule',
75-
'Get-AzNewRelicMonitorMetricStatus',
76-
'Get-AzNewRelicMonitorMonitoredResource',
77-
'Get-AzNewRelicMonitorTagRule', 'Get-AzNewRelicOrganization',
78-
'Get-AzNewRelicPlan', 'Invoke-AzNewRelicHostMonitor',
79-
'New-AzNewRelicMonitor', 'New-AzNewRelicMonitorTagRule',
80-
'Remove-AzNewRelicMonitor', 'Remove-AzNewRelicMonitorTagRule',
81-
'Switch-AzNewRelicMonitorBilling',
82-
'Update-AzNewRelicMonitorTagRule'
83-
84-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
85-
CmdletsToExport = @()
86-
87-
# Variables to export from this module
88-
# VariablesToExport = @()
89-
90-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
91-
AliasesToExport = '*'
92-
93-
# DSC resources to export from this module
94-
# DscResourcesToExport = @()
95-
96-
# List of all modules packaged with this module
97-
# ModuleList = @()
98-
99-
# List of all files packaged with this module
100-
# FileList = @()
101-
102-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
103-
PrivateData = @{
104-
2+
GUID = 'fcb6df7e-4a86-4278-88de-1e16f349572c'
3+
RootModule = './Az.NewRelic.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: NewRelic cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.NewRelic.private.dll'
13+
FormatsToProcess = './Az.NewRelic.format.ps1xml'
14+
FunctionsToExport = 'Get-AzNewRelicAccount', 'Get-AzNewRelicMonitor', 'Get-AzNewRelicMonitorAppService', 'Get-AzNewRelicMonitorHost', 'Get-AzNewRelicMonitorMetricRule', 'Get-AzNewRelicMonitorMetricStatus', 'Get-AzNewRelicMonitorMonitoredResource', 'Get-AzNewRelicMonitorTagRule', 'Get-AzNewRelicOrganization', 'Get-AzNewRelicPlan', 'Invoke-AzNewRelicHostMonitor', 'New-AzNewRelicMonitor', 'New-AzNewRelicMonitorTagRule', 'Remove-AzNewRelicMonitor', 'Remove-AzNewRelicMonitorTagRule', 'Switch-AzNewRelicMonitorBilling', 'Update-AzNewRelicMonitorTagRule', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
10517
PSData = @{
106-
107-
# Tags applied to this module. These help with module discovery in online galleries.
108-
Tags = 'Azure','ResourceManager','ARM','PSModule','NewRelic'
109-
110-
# A URL to the license for this module.
111-
LicenseUri = 'https://aka.ms/azps-license'
112-
113-
# A URL to the main website for this project.
114-
ProjectUri = 'https://github.com/Azure/azure-powershell'
115-
116-
# A URL to an icon representing this module.
117-
# IconUri = ''
118-
119-
# ReleaseNotes of this module
120-
# ReleaseNotes = ''
121-
122-
# Prerelease string of this module
123-
# Prerelease = ''
124-
125-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
126-
# RequireLicenseAcceptance = $false
127-
128-
# External dependent modules of this module
129-
# ExternalModuleDependencies = @()
130-
131-
} # End of PSData hashtable
132-
133-
} # End of PrivateData hashtable
134-
135-
# HelpInfo URI of this module
136-
# HelpInfoURI = ''
137-
138-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
139-
# DefaultCommandPrefix = ''
140-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'NewRelic'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
14124
}
142-

src/NewRelic/NewRelic.Autorest/Az.NewRelic.psm1

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,37 +47,41 @@
4747

4848
# Ask for the shared functionality table
4949
$VTable = Register-AzModule
50-
50+
5151
# Tweaks the pipeline on module load
5252
$instance.OnModuleLoad = $VTable.OnModuleLoad
5353

5454
# Following two delegates are added for telemetry
5555
$instance.GetTelemetryId = $VTable.GetTelemetryId
5656
$instance.Telemetry = $VTable.Telemetry
57-
57+
58+
# Delegate to sanitize the output object
59+
$instance.SanitizeOutput = $VTable.SanitizerHandler
60+
61+
# Delegate to get the telemetry info
62+
$instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
5863

5964
# Tweaks the pipeline per call
6065
$instance.OnNewRequest = $VTable.OnNewRequest
61-
66+
6267
# Gets shared parameter values
6368
$instance.GetParameterValue = $VTable.GetParameterValue
64-
69+
6570
# Allows shared module to listen to events from this module
6671
$instance.EventListener = $VTable.EventListener
67-
72+
6873
# Gets shared argument completers
6974
$instance.ArgumentCompleter = $VTable.ArgumentCompleter
70-
75+
7176
# The name of the currently selected Azure profile
7277
$instance.ProfileName = $VTable.ProfileName
7378

74-
7579
# Load the custom module
7680
$customModulePath = Join-Path $PSScriptRoot './custom/Az.NewRelic.custom.psm1'
7781
if(Test-Path $customModulePath) {
7882
$null = Import-Module -Name $customModulePath
7983
}
80-
84+
8185
# Export nothing to clear implicit exports
8286
Export-ModuleMember
8387

@@ -97,12 +101,12 @@
97101
# Load the last folder if no profile is selected
98102
$profileDirectory = $directories | Select-Object -Last 1
99103
}
100-
104+
101105
if($profileDirectory) {
102106
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
103107
$exportsPath = $profileDirectory.FullName
104108
}
105-
109+
106110
if($exportsPath) {
107111
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
108112
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath

src/NewRelic/NewRelic.Autorest/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
This directory contains the PowerShell module for the NewRelic service.
44

55
---
6-
76
## Info
87
- Modifiable: yes
98
- Generated: all
@@ -29,11 +28,11 @@ For information on how to develop for `Az.NewRelic`, see [how-to.md](how-to.md).
2928
3029
```yaml
3130
# pin the swagger version by using the commit id instead of branch name
32-
branch: 6b992c049ed7d6a95465d5c0a2234fc54c87b9bf
31+
commit: 6b992c049ed7d6a95465d5c0a2234fc54c87b9bf
3332
tag: package-2022-07-01
3433
require:
3534
# readme.azure.noprofile.md is the common configuration file
36-
- $(this-folder)/../readme.azure.noprofile.md
35+
- $(this-folder)/../../readme.azure.noprofile.md
3736
- $(repo)/specification/newrelic/resource-manager/readme.md
3837
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
3938
# - (this-folder)/relative-path-to-your-local-readme.md
@@ -53,6 +52,10 @@ subject-prefix: $(service-name)
5352
resourcegroup-append: true
5453
nested-object-to-string: true
5554

55+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
56+
use-extension:
57+
"@autorest/powershell": "3.x"
58+
5659
directive:
5760
- where:
5861
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Switch$|^SwitchViaIdentity$

src/NewRelic/NewRelic.Autorest/build-module.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ if($NoDocs) {
143143
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144144
}
145145
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
146+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
147+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
147148
}
148149

149150
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
162163
Write-Host -ForegroundColor Green 'Creating example stubs...'
163164
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
164165

166+
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
167+
{
168+
Write-Host -ForegroundColor Green 'Creating ux metadata...'
169+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170+
}
171+
165172
Write-Host -ForegroundColor Green '-------------Done-------------'

src/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicAccount.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,20 @@ begin {
128128
List = 'Az.NewRelic.private\Get-AzNewRelicAccount_List';
129129
}
130130
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
131-
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
131+
$testPlayback = $false
132+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
133+
if ($testPlayback) {
134+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
135+
} else {
136+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
137+
}
132138
}
133139
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
134140
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
141+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
142+
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
143+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
144+
}
135145
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
136146
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
137147
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitor.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,20 @@ begin {
160160
List1 = 'Az.NewRelic.private\Get-AzNewRelicMonitor_List1';
161161
}
162162
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
163-
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
163+
$testPlayback = $false
164+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
165+
if ($testPlayback) {
166+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
167+
} else {
168+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
169+
}
164170
}
165171
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
166172
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
173+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
174+
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
175+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
176+
}
167177
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
168178
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
169179
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorAppService.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,20 @@ begin {
142142
ListExpanded = 'Az.NewRelic.private\Get-AzNewRelicMonitorAppService_ListExpanded';
143143
}
144144
if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
145-
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
145+
$testPlayback = $false
146+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
147+
if ($testPlayback) {
148+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
149+
} else {
150+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
151+
}
146152
}
147153
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
148154
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
155+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
156+
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
157+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
158+
}
149159
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
150160
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
151161
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

src/NewRelic/NewRelic.Autorest/exports/Get-AzNewRelicMonitorHost.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,20 @@ begin {
142142
ListExpanded = 'Az.NewRelic.private\Get-AzNewRelicMonitorHost_ListExpanded';
143143
}
144144
if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
145-
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
145+
$testPlayback = $false
146+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
147+
if ($testPlayback) {
148+
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
149+
} else {
150+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
151+
}
146152
}
147153
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
148154
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
155+
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
156+
[Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
157+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
158+
}
149159
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
150160
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
151161
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)

0 commit comments

Comments
 (0)