Skip to content

Commit 72987f7

Browse files
[skip ci] Archive e512e0a (Azure#28846)
1 parent e9965cb commit 72987f7

File tree

2,704 files changed

+285534
-149667
lines changed

Some content is hidden

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

2,704 files changed

+285534
-149667
lines changed

generated/ApplicationInsights/ApplicationInsights.Autorest/Az.ApplicationInsights.format.ps1xml

Lines changed: 1060 additions & 1128 deletions
Large diffs are not rendered by default.

generated/ApplicationInsights/ApplicationInsights.Autorest/Az.ApplicationInsights.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.ApplicationInsights.private.dll'
1313
FormatsToProcess = './Az.ApplicationInsights.format.ps1xml'
14-
FunctionsToExport = 'Get-AzApplicationInsights', 'Get-AzApplicationInsightsApiKey', 'Get-AzApplicationInsightsContinuousExport', 'Get-AzApplicationInsightsLinkedStorageAccount', 'Get-AzApplicationInsightsMyWorkbook', 'Get-AzApplicationInsightsWebTest', 'Get-AzApplicationInsightsWorkbook', 'Get-AzApplicationInsightsWorkbookRevision', 'Get-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsights', 'New-AzApplicationInsightsApiKey', 'New-AzApplicationInsightsContinuousExport', 'New-AzApplicationInsightsLinkedStorageAccount', 'New-AzApplicationInsightsMyWorkbook', 'New-AzApplicationInsightsWebTest', 'New-AzApplicationInsightsWebTestGeolocationObject', 'New-AzApplicationInsightsWebTestHeaderFieldObject', 'New-AzApplicationInsightsWorkbook', 'New-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsightsWorkbookTemplateGalleryObject', 'Remove-AzApplicationInsights', 'Remove-AzApplicationInsightsApiKey', 'Remove-AzApplicationInsightsContinuousExport', 'Remove-AzApplicationInsightsLinkedStorageAccount', 'Remove-AzApplicationInsightsMyWorkbook', 'Remove-AzApplicationInsightsWebTest', 'Remove-AzApplicationInsightsWorkbook', 'Remove-AzApplicationInsightsWorkbookTemplate', 'Set-AzApplicationInsightsContinuousExport', 'Set-AzApplicationInsightsDailyCap', 'Set-AzApplicationInsightsPricingPlan', 'Update-AzApplicationInsights', 'Update-AzApplicationInsightsLinkedStorageAccount', 'Update-AzApplicationInsightsMyWorkbook', 'Update-AzApplicationInsightsWebTestTag', 'Update-AzApplicationInsightsWorkbook', 'Update-AzApplicationInsightsWorkbookTemplate', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzApplicationInsights', 'Get-AzApplicationInsightsApiKey', 'Get-AzApplicationInsightsContinuousExport', 'Get-AzApplicationInsightsLinkedStorageAccount', 'Get-AzApplicationInsightsMyWorkbook', 'Get-AzApplicationInsightsWebTest', 'Get-AzApplicationInsightsWorkbook', 'Get-AzApplicationInsightsWorkbookRevision', 'Get-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsights', 'New-AzApplicationInsightsApiKey', 'New-AzApplicationInsightsContinuousExport', 'New-AzApplicationInsightsLinkedStorageAccount', 'New-AzApplicationInsightsMyWorkbook', 'New-AzApplicationInsightsWebTest', 'New-AzApplicationInsightsWebTestGeolocationObject', 'New-AzApplicationInsightsWebTestHeaderFieldObject', 'New-AzApplicationInsightsWorkbook', 'New-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsightsWorkbookTemplateGalleryObject', 'Remove-AzApplicationInsights', 'Remove-AzApplicationInsightsApiKey', 'Remove-AzApplicationInsightsContinuousExport', 'Remove-AzApplicationInsightsLinkedStorageAccount', 'Remove-AzApplicationInsightsMyWorkbook', 'Remove-AzApplicationInsightsWebTest', 'Remove-AzApplicationInsightsWorkbook', 'Remove-AzApplicationInsightsWorkbookTemplate', 'Set-AzApplicationInsightsContinuousExport', 'Set-AzApplicationInsightsDailyCap', 'Set-AzApplicationInsightsPricingPlan', 'Update-AzApplicationInsights', 'Update-AzApplicationInsightsLinkedStorageAccount', 'Update-AzApplicationInsightsMyWorkbook', 'Update-AzApplicationInsightsWebTestTag', 'Update-AzApplicationInsightsWorkbook', 'Update-AzApplicationInsightsWorkbookTemplate'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ApplicationInsights'

generated/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ApplicationInsightsManagementClient")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.3.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("2.3.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.3.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.3.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

generated/ApplicationInsights/ApplicationInsights.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

generated/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsights.ps1

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Get-AzApplicationInsights -ResourceGroupName "testgroup" -Name "test" -IncludePr
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent
30+
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent
3131
.Outputs
3232
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
3636
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
3737
38-
INPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter
38+
INPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
3939
[AnnotationId <String>]: The unique annotation ID. This is unique within a Application Insights component.
4040
[ComponentName <String>]: The name of the Application Insights component resource.
4141
[ExportId <String>]: The Continuous Export configuration ID. This is unique within a Application Insights component.
@@ -45,14 +45,14 @@ INPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter
4545
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
4646
[ResourceName <String>]: The name of the Application Insights component resource.
4747
[RevisionId <String>]: The id of the workbook's revision.
48-
[StorageType <StorageType?>]: The type of the Application Insights component data source for the linked storage account.
48+
[StorageType <String>]: The type of the Application Insights component data source for the linked storage account.
4949
[SubscriptionId <String>]: The ID of the target subscription.
5050
[WebTestName <String>]: The name of the Application Insights WebTest resource.
5151
.Link
5252
https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights
5353
#>
5454
function Get-AzApplicationInsights {
55-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
55+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
5656
[CmdletBinding(DefaultParameterSetName='ListBySubscription', PositionalBinding=$false)]
5757
param(
5858
[Parameter(ParameterSetName='ListBySubscription')]
@@ -154,6 +154,15 @@ begin {
154154
$PSBoundParameters['OutBuffer'] = 1
155155
}
156156
$parameterSet = $PSCmdlet.ParameterSetName
157+
158+
$testPlayback = $false
159+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
160+
161+
$context = Get-AzContext
162+
if (-not $context -and -not $testPlayback) {
163+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
164+
exit
165+
}
157166

158167
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
159168
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -179,9 +188,7 @@ begin {
179188
GetByResourceId = 'Az.ApplicationInsights.custom\Get-AzApplicationInsights';
180189
GetByInputObject = 'Az.ApplicationInsights.custom\Get-AzApplicationInsights';
181190
}
182-
if (('ListBySubscription', 'ListByResourceGroupName', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
183-
$testPlayback = $false
184-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
191+
if (('ListBySubscription', 'ListByResourceGroupName', 'Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
185192
if ($testPlayback) {
186193
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
187194
} else {
@@ -195,6 +202,9 @@ begin {
195202
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
196203
}
197204
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
205+
if ($wrappedCmd -eq $null) {
206+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
207+
}
198208
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
199209
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
200210
$steppablePipeline.Begin($PSCmdlet)

generated/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsApiKey.ps1

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,26 @@ Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -Api
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey
30+
Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentApiKey
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
3434
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
3535
36+
COMPONENTINPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter
37+
[AnnotationId <String>]: The unique annotation ID. This is unique within a Application Insights component.
38+
[ComponentName <String>]: The name of the Application Insights component resource.
39+
[ExportId <String>]: The Continuous Export configuration ID. This is unique within a Application Insights component.
40+
[Id <String>]: Resource identity path
41+
[KeyId <String>]: The API Key ID. This is unique within a Application Insights component.
42+
[PurgeId <String>]: In a purge status request, this is the Id of the operation the status of which is returned.
43+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
44+
[ResourceName <String>]: The name of the Application Insights component resource.
45+
[RevisionId <String>]: The id of the workbook's revision.
46+
[StorageType <String>]: The type of the Application Insights component data source for the linked storage account.
47+
[SubscriptionId <String>]: The ID of the target subscription.
48+
[WebTestName <String>]: The name of the Application Insights WebTest resource.
49+
3650
INPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter
3751
[AnnotationId <String>]: The unique annotation ID. This is unique within a Application Insights component.
3852
[ComponentName <String>]: The name of the Application Insights component resource.
@@ -43,17 +57,18 @@ INPUTOBJECT <IApplicationInsightsIdentity>: Identity Parameter
4357
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
4458
[ResourceName <String>]: The name of the Application Insights component resource.
4559
[RevisionId <String>]: The id of the workbook's revision.
46-
[StorageType <StorageType?>]: The type of the Application Insights component data source for the linked storage account.
60+
[StorageType <String>]: The type of the Application Insights component data source for the linked storage account.
4761
[SubscriptionId <String>]: The ID of the target subscription.
4862
[WebTestName <String>]: The name of the Application Insights WebTest resource.
4963
.Link
5064
https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsapikey
5165
#>
5266
function Get-AzApplicationInsightsApiKey {
53-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey])]
67+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentApiKey])]
5468
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5569
param(
5670
[Parameter(ParameterSetName='Get', Mandatory)]
71+
[Parameter(ParameterSetName='GetViaIdentityComponent', Mandatory)]
5772
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Path')]
5873
[System.String]
5974
# The API Key ID.
@@ -88,9 +103,14 @@ param(
88103
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Path')]
89104
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity]
90105
# Identity Parameter
91-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
92106
${InputObject},
93107

108+
[Parameter(ParameterSetName='GetViaIdentityComponent', Mandatory, ValueFromPipeline)]
109+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Path')]
110+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity]
111+
# Identity Parameter
112+
${ComponentInputObject},
113+
94114
[Parameter()]
95115
[Alias('AzureRMContext', 'AzureCredential')]
96116
[ValidateNotNull()]
@@ -147,6 +167,15 @@ begin {
147167
$PSBoundParameters['OutBuffer'] = 1
148168
}
149169
$parameterSet = $PSCmdlet.ParameterSetName
170+
171+
$testPlayback = $false
172+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
173+
174+
$context = Get-AzContext
175+
if (-not $context -and -not $testPlayback) {
176+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
177+
exit
178+
}
150179

151180
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
152181
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -168,11 +197,10 @@ begin {
168197
$mapping = @{
169198
Get = 'Az.ApplicationInsights.private\Get-AzApplicationInsightsApiKey_Get';
170199
GetViaIdentity = 'Az.ApplicationInsights.private\Get-AzApplicationInsightsApiKey_GetViaIdentity';
200+
GetViaIdentityComponent = 'Az.ApplicationInsights.private\Get-AzApplicationInsightsApiKey_GetViaIdentityComponent';
171201
List = 'Az.ApplicationInsights.private\Get-AzApplicationInsightsApiKey_List';
172202
}
173-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
174-
$testPlayback = $false
175-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
203+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
176204
if ($testPlayback) {
177205
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
178206
} else {
@@ -186,6 +214,9 @@ begin {
186214
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
187215
}
188216
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
217+
if ($wrappedCmd -eq $null) {
218+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
219+
}
189220
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
190221
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
191222
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)