Skip to content

Commit 348232c

Browse files
authored
[Az.ApplicationInsights] The code base is going to be refactored, the following cmdlet adds a BreakingChange announcement (#28272)
1 parent 734b09f commit 348232c

24 files changed

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

src/ApplicationInsights/ApplicationInsights.Autorest/README.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,4 +429,109 @@ directive:
429429
- Location
430430
- Kind
431431
- Category
432+
433+
# #breaking change message
434+
- where:
435+
verb: Get|Remove
436+
subject: ApiKey
437+
set:
438+
breaking-change:
439+
deprecated-output-properties:
440+
- LinkedReadProperty
441+
- LinkedWriteProperty
442+
new-output-properties:
443+
- LinkedReadProperty
444+
- LinkedWriteProperty
445+
change-description: The types of the properties LinkedReadProperty, LinkedWriteProperty will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.
446+
deprecated-by-version: 9.0.0
447+
deprecated-by-azversion: 15.0.0
448+
change-effective-date: 2025/11/03
449+
450+
- where:
451+
verb: Get|New|Update
452+
subject: MyWorkbook
453+
set:
454+
breaking-change:
455+
deprecated-output-properties:
456+
- PropertiesTag
457+
new-output-properties:
458+
- PropertiesTag
459+
change-description: The types of the properties PropertiesTag will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.
460+
deprecated-by-version: 9.0.0
461+
deprecated-by-azversion: 15.0.0
462+
change-effective-date: 2025/11/03
463+
464+
- where:
465+
verb: New
466+
subject: MyWorkbook|Workbook
467+
set:
468+
breaking-change:
469+
deprecated-output-properties:
470+
- IdentityType
471+
- IdentityUserAssignedIdentity
472+
new-output-properties:
473+
- EnableSystemAssignedIdentity
474+
- UserAssignedIdentity
475+
change-description: IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.
476+
deprecated-by-version: 9.0.0
477+
deprecated-by-azversion: 15.0.0
478+
change-effective-date: 2025/11/03
479+
480+
- where:
481+
verb: Get|Update
482+
subject: WebTest
483+
set:
484+
breaking-change:
485+
deprecated-output-properties:
486+
- RequestHeader
487+
- PropertiesLocations
488+
new-output-properties:
489+
- RequestHeader
490+
- PropertiesLocations
491+
change-description: The type of property 'RequestHeader' will be changed from 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField]'. And the property 'PropertiesLocations' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest' will be removed.
492+
deprecated-by-version: 9.0.0
493+
deprecated-by-azversion: 15.0.0
494+
change-effective-date: 2025/11/03
495+
496+
- where:
497+
verb: Get|New|Update
498+
subject: Workbook
499+
set:
500+
breaking-change:
501+
deprecated-output-properties:
502+
- PropertiesTag
503+
new-output-properties:
504+
- PropertiesTag
505+
change-description: The type of property 'PropertiesTag' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.
506+
deprecated-by-version: 9.0.0
507+
deprecated-by-azversion: 15.0.0
508+
change-effective-date: 2025/11/03
509+
510+
- where:
511+
verb: Get
512+
subject: WorkbookRevision
513+
set:
514+
breaking-change:
515+
deprecated-output-properties:
516+
- PropertiesTag
517+
new-output-properties:
518+
- PropertiesTag
519+
change-description: The type of property 'PropertiesTag' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.
520+
deprecated-by-version: 9.0.0
521+
deprecated-by-azversion: 15.0.0
522+
change-effective-date: 2025/11/03
523+
524+
- where:
525+
verb: Get|New|Update
526+
subject: WorkbookTemplate
527+
set:
528+
breaking-change:
529+
deprecated-output-properties:
530+
- Gallery
531+
new-output-properties:
532+
- Gallery
533+
change-description: The type of property 'Gallery' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IWorkbookTemplateGallery' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IWorkbookTemplateGallery]'.
534+
deprecated-by-version: 9.0.0
535+
deprecated-by-azversion: 15.0.0
536+
change-effective-date: 2025/11/03
432537
```

src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azappli
2323
#>
2424
function Get-AzApplicationInsights {
2525
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
26+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))]
2627
[CmdletBinding(DefaultParameterSetName='ListBySubscription', PositionalBinding=$false)]
2728
param(
2829
[Parameter(ParameterSetName='Get', Mandatory)]

src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli
2626
#>
2727
function New-AzApplicationInsights {
2828
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])]
29+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))]
2930
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3031
param(
3132
[Parameter(Mandatory)]

src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli
2323
#>
2424
function New-AzApplicationInsightsApiKey {
2525
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey])]
26+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentApiKey", DeprecatedOutputProperties = ("LinkedReadProperty and LinkedWriteProperty System.String[]"), NewOutputProperties = ("LinkedReadProperty and LinkedWriteProperty System.Collections.Generic.List`1[System.String]"))]
2627
[CmdletBinding(DefaultParameterSetName='ComponentNameParameterSet', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
2728
param(
2829
[Parameter(ParameterSetName="ComponentNameParameterSet")]

src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli
4646
#>
4747
function New-AzApplicationInsightsWebTest {
4848
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest])]
49+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IWebTest", DeprecatedOutputProperties = ("RequestHeader System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField]"), NewOutputProperties = ("RequestHeader System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField]"))]
4950
[CmdletBinding(DefaultParameterSetName='CreateStandard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
5051
param(
5152
[Parameter(Mandatory)]

src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azappli
2424
#>
2525
function Set-AzApplicationInsightsDailyCap {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures])]
27+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentBillingFeatures", DeprecatedOutputProperties = ("CurrentBillingFeature System.String[]"), NewOutputProperties = ("CurrentBillingFeature System.Collections.Generic.List`1[System.String]"))]
2728
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
2829
param(
2930
[Parameter(Mandatory)]

src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azappli
2424
#>
2525
function Set-AzApplicationInsightsPricingPlan {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures])]
27+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentBillingFeatures", DeprecatedOutputProperties = ("CurrentBillingFeature System.String[]"), NewOutputProperties = ("CurrentBillingFeature System.Collections.Generic.List`1[System.String]"))]
2728
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
2829
param(
2930
[Parameter(Mandatory)]

src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azap
2626
#>
2727
function Update-AzApplicationInsights {
2828
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])]
29+
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))]
2930
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3031
param(
3132
[Parameter(Mandatory)]

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Az.ApplicationInsights.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.ApplicationInsights
3-
Module Guid: 031a685e-5904-433f-b2f8-4fcef3cd15d8
3+
Module Guid: 82352bfb-97f5-4cce-8aac-bb4b6b1cd49c
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.applicationinsights
55
Help Version: 1.0.0.0
66
Locale: en-US

0 commit comments

Comments
 (0)