From c18dce894d0c1ba5a3d32c8fdea6cd07f31f92ca Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Fri, 25 Jul 2025 11:48:08 +0800 Subject: [PATCH 1/4] [Az.ApplicationInsights] The code base is going to be refactored, the following cmdlet adds a BreakingChange announcement --- .../Properties/AssemblyInfo.cs | 26 +++++ .../ApplicationInsights.Autorest/README.md | 105 ++++++++++++++++++ .../custom/Get-AzApplicationInsights.ps1 | 1 + .../custom/New-AzApplicationInsights.ps1 | 1 + .../New-AzApplicationInsightsApiKey.ps1 | 1 + .../New-AzApplicationInsightsWebTest.ps1 | 1 + .../Set-AzApplicationInsightsDailyCap.ps1 | 1 + .../Set-AzApplicationInsightsPricingPlan.ps1 | 1 + .../custom/Update-AzApplicationInsights.ps1 | 1 + .../docs/Az.ApplicationInsights.md | 2 +- .../generate-info.json | 2 +- .../resources/README.md | 11 ++ .../ApplicationInsights.sln | 89 +++++++++++++-- .../Az.ApplicationInsights.psd1 | 14 +-- .../ApplicationInsights/ChangeLog.md | 22 ++++ .../help/Get-AzApplicationInsightsApiKey.md | 2 +- .../help/Get-AzApplicationInsightsWebTest.md | 6 +- .../help/New-AzApplicationInsightsWebTest.md | 23 +--- .../Remove-AzApplicationInsightsApiKey.md | 2 +- 19 files changed, 267 insertions(+), 44 deletions(-) create mode 100644 src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/ApplicationInsights/ApplicationInsights.Autorest/resources/README.md diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..fb6d076faace --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ApplicationInsightsManagementClient")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.3.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.3.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/README.md b/src/ApplicationInsights/ApplicationInsights.Autorest/README.md index 8e704c91331d..48189592eabd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/README.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/README.md @@ -429,4 +429,109 @@ directive: - Location - Kind - Category + +# #breaking change message + - where: + verb: Get|Remove + subject: ApiKey + set: + breaking-change: + deprecated-output-properties: + - LinkedReadProperty + - LinkedWriteProperty + new-output-properties: + - LinkedReadProperty + - LinkedWriteProperty + change-description: The types of the properties LinkedReadProperty, LinkedWriteProperty will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + + - where: + verb: Get|New|Update + subject: MyWorkbook + set: + breaking-change: + deprecated-output-properties: + - PropertiesTag + new-output-properties: + - PropertiesTag + change-description: The types of the properties PropertiesTag will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + + - where: + verb: New + subject: MyWorkbook|Workbook + set: + breaking-change: + deprecated-output-properties: + - IdentityType + - IdentityUserAssignedIdentity + new-output-properties: + - EnableSystemAssignedIdentity + - UserAssignedIdentity + 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. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + + - where: + verb: Get|Update + subject: WebTest + set: + breaking-change: + deprecated-output-properties: + - RequestHeader + - PropertiesLocations + new-output-properties: + - RequestHeader + - PropertiesLocations + 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. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + + - where: + verb: Get|New|Update + subject: Workbook + set: + breaking-change: + deprecated-output-properties: + - PropertiesTag + new-output-properties: + - PropertiesTag + 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]'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + + - where: + verb: Get + subject: WorkbookRevision + set: + breaking-change: + deprecated-output-properties: + - PropertiesTag + new-output-properties: + - PropertiesTag + 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]'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + + - where: + verb: Get|New|Update + subject: WorkbookTemplate + set: + breaking-change: + deprecated-output-properties: + - Gallery + new-output-properties: + - Gallery + 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]'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 ``` diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 index bb2abcf8fc65..8f47a9d55a67 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 @@ -23,6 +23,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azappli #> function Get-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))] [CmdletBinding(DefaultParameterSetName='ListBySubscription', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 index 032c5929d2fc..03d8f8d2186f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 @@ -26,6 +26,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli #> function New-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 index 45254dec824c..4369f9a52065 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 @@ -23,6 +23,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli #> function New-AzApplicationInsightsApiKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "System.String[]", DeprecatedOutputProperties = ("System.Collections.Generic.List`1[System.String]"), NewOutputProperties = ("LinkedReadProperty and LinkedWriteProperty The types of the properties LinkedReadProperty, LinkedWriteProperty will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]"))] [CmdletBinding(DefaultParameterSetName='ComponentNameParameterSet', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName="ComponentNameParameterSet")] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 index dacd0391b57a..97b9fdf811ca 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 @@ -46,6 +46,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli #> function New-AzApplicationInsightsWebTest { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "RequestHeader Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField", DeprecatedOutputProperties = ("RequestHeader System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField]"), NewOutputProperties = ("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."))] [CmdletBinding(DefaultParameterSetName='CreateStandard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 index e36119826c79..2600badf4b3d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 @@ -24,6 +24,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azappli #> function Set-AzApplicationInsightsDailyCap { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "CurrentBillingFeature System.String[]", DeprecatedOutputProperties = ("CurrentBillingFeature System.Collections.Generic.List`1[System.String]"), NewOutputProperties = ("The type of property 'CurrentBillingFeature' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'."))] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 index b8325f882afb..358d0673deaf 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 @@ -24,6 +24,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azappli #> function Set-AzApplicationInsightsPricingPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "CurrentBillingFeature System.String[]", DeprecatedOutputProperties = ("CurrentBillingFeature System.Collections.Generic.List`1[System.String]"), NewOutputProperties = ("The type of property 'CurrentBillingFeature' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'."))] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 index 9b4dc08b3fc7..36c711340c96 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 @@ -26,6 +26,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azap #> function Update-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Az.ApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Az.ApplicationInsights.md index 19fb9bc80338..144ccc9df637 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Az.ApplicationInsights.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Az.ApplicationInsights.md @@ -1,6 +1,6 @@ --- Module Name: Az.ApplicationInsights -Module Guid: 031a685e-5904-433f-b2f8-4fcef3cd15d8 +Module Guid: 82352bfb-97f5-4cce-8aac-bb4b6b1cd49c Download Help Link: https://learn.microsoft.com/powershell/module/az.applicationinsights Help Version: 1.0.0.0 Locale: en-US diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json index a6297cdb401a..731815ebc493 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "e2b2e99c-0c64-4d37-a785-6b44af4ebc15" + "generate_Id": "227759e9-1abd-4580-84dc-9915d7398d16" } diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/resources/README.md b/src/ApplicationInsights/ApplicationInsights.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ApplicationInsights/ApplicationInsights.sln b/src/ApplicationInsights/ApplicationInsights.sln index 8241d522290b..b9909ea1ddbe 100644 --- a/src/ApplicationInsights/ApplicationInsights.sln +++ b/src/ApplicationInsights/ApplicationInsights.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationInsights", "ApplicationInsights\ApplicationInsights.csproj", "{D4018D9E-EB72-41F1-AE63-98C0505CC275}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{91D016C3-48A1-4ABC-9E48-011744DA812E}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationInsights.Autorest", "ApplicationInsights.Autorest", "{6DC86C90-262B-0833-720F-E3F35D461225}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{FE927F98-4447-4C09-9EF8-7AEE7497105F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {7784757F-469E-45BA-A7AF-47E47E357DB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7784757F-469E-45BA-A7AF-47E47E357DB4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Debug|x64.ActiveCfg = Debug|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Debug|x64.Build.0 = Debug|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Debug|x86.ActiveCfg = Debug|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Debug|x86.Build.0 = Debug|Any CPU {7784757F-469E-45BA-A7AF-47E47E357DB4}.Release|Any CPU.ActiveCfg = Release|Any CPU {7784757F-469E-45BA-A7AF-47E47E357DB4}.Release|Any CPU.Build.0 = Release|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Release|x64.ActiveCfg = Release|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Release|x64.Build.0 = Release|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Release|x86.ActiveCfg = Release|Any CPU + {7784757F-469E-45BA-A7AF-47E47E357DB4}.Release|x86.Build.0 = Release|Any CPU {081666F4-828F-43F4-BD29-3850FAD43CAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {081666F4-828F-43F4-BD29-3850FAD43CAE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Debug|x64.ActiveCfg = Debug|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Debug|x64.Build.0 = Debug|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Debug|x86.ActiveCfg = Debug|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Debug|x86.Build.0 = Debug|Any CPU {081666F4-828F-43F4-BD29-3850FAD43CAE}.Release|Any CPU.ActiveCfg = Release|Any CPU {081666F4-828F-43F4-BD29-3850FAD43CAE}.Release|Any CPU.Build.0 = Release|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Release|x64.ActiveCfg = Release|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Release|x64.Build.0 = Release|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Release|x86.ActiveCfg = Release|Any CPU + {081666F4-828F-43F4-BD29-3850FAD43CAE}.Release|x86.Build.0 = Release|Any CPU {B08FE562-AEAE-448B-852D-F33C2EC02155}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B08FE562-AEAE-448B-852D-F33C2EC02155}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Debug|x64.ActiveCfg = Debug|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Debug|x64.Build.0 = Debug|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Debug|x86.ActiveCfg = Debug|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Debug|x86.Build.0 = Debug|Any CPU {B08FE562-AEAE-448B-852D-F33C2EC02155}.Release|Any CPU.ActiveCfg = Release|Any CPU {B08FE562-AEAE-448B-852D-F33C2EC02155}.Release|Any CPU.Build.0 = Release|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Release|x64.ActiveCfg = Release|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Release|x64.Build.0 = Release|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Release|x86.ActiveCfg = Release|Any CPU + {B08FE562-AEAE-448B-852D-F33C2EC02155}.Release|x86.Build.0 = Release|Any CPU {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Debug|x64.ActiveCfg = Debug|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Debug|x64.Build.0 = Debug|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Debug|x86.ActiveCfg = Debug|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Debug|x86.Build.0 = Debug|Any CPU {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Release|Any CPU.ActiveCfg = Release|Any CPU {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Release|Any CPU.Build.0 = Release|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Release|x64.ActiveCfg = Release|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Release|x64.Build.0 = Release|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Release|x86.ActiveCfg = Release|Any CPU + {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF}.Release|x86.Build.0 = Release|Any CPU {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Debug|x64.ActiveCfg = Debug|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Debug|x64.Build.0 = Debug|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Debug|x86.ActiveCfg = Debug|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Debug|x86.Build.0 = Debug|Any CPU {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Release|Any CPU.ActiveCfg = Release|Any CPU {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Release|Any CPU.Build.0 = Release|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Release|x64.ActiveCfg = Release|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Release|x64.Build.0 = Release|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Release|x86.ActiveCfg = Release|Any CPU + {7B2A2B58-861E-49ED-9987-2954BBB8C3CB}.Release|x86.Build.0 = Release|Any CPU {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Debug|x64.ActiveCfg = Debug|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Debug|x64.Build.0 = Debug|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Debug|x86.ActiveCfg = Debug|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Debug|x86.Build.0 = Debug|Any CPU {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Release|Any CPU.ActiveCfg = Release|Any CPU {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Release|Any CPU.Build.0 = Release|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Release|x64.ActiveCfg = Release|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Release|x64.Build.0 = Release|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Release|x86.ActiveCfg = Release|Any CPU + {16A4C33D-F554-48EE-910E-80B3FE6506CD}.Release|x86.Build.0 = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Debug|x64.ActiveCfg = Debug|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Debug|x64.Build.0 = Debug|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Debug|x86.ActiveCfg = Debug|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Debug|x86.Build.0 = Debug|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|Any CPU.ActiveCfg = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|Any CPU.Build.0 = Release|Any CPU - {91D016C3-48A1-4ABC-9E48-011744DA812E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {91D016C3-48A1-4ABC-9E48-011744DA812E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {91D016C3-48A1-4ABC-9E48-011744DA812E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {91D016C3-48A1-4ABC-9E48-011744DA812E}.Release|Any CPU.Build.0 = Release|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x64.ActiveCfg = Release|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x64.Build.0 = Release|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.ActiveCfg = Release|Any CPU + {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.Build.0 = Release|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x64.ActiveCfg = Debug|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x64.Build.0 = Debug|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x86.ActiveCfg = Debug|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x86.Build.0 = Debug|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|Any CPU.Build.0 = Release|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x64.ActiveCfg = Release|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x64.Build.0 = Release|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x86.ActiveCfg = Release|Any CPU + {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {7784757F-469E-45BA-A7AF-47E47E357DB4} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} @@ -70,5 +140,6 @@ Global {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {7B2A2B58-861E-49ED-9987-2954BBB8C3CB} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {16A4C33D-F554-48EE-910E-80B3FE6506CD} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} + {FE927F98-4447-4C09-9EF8-7AEE7497105F} = {6DC86C90-262B-0833-720F-E3F35D461225} EndGlobalSection EndGlobal diff --git a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 index 9fed2360cc97..931ba9bc2fb6 100644 --- a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 +++ b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-07-25 # @{ @@ -51,21 +51,21 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ApplicationInsights.Autorest/bin/Az.ApplicationInsights.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = - 'ApplicationInsights.Autorest\Az.ApplicationInsights.format.ps1xml' + 'ApplicationInsights.Autorest/Az.ApplicationInsights.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ApplicationInsights.Autorest/Az.ApplicationInsights.psm1') @@ -131,7 +131,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ApplicationInsights' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ApplicationInsights' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -156,7 +156,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ApplicationInsights/ApplicationInsights/ChangeLog.md b/src/ApplicationInsights/ApplicationInsights/ChangeLog.md index 7e8363b8ad6f..817405357677 100644 --- a/src/ApplicationInsights/ApplicationInsights/ChangeLog.md +++ b/src/ApplicationInsights/ApplicationInsights/ChangeLog.md @@ -18,6 +18,28 @@ - Additional information about change #1 --> ## Upcoming Release +* Added breaking change announcement for below commands from array or single object to list. + * `Get-AzApplicationInsights` + * `New-AzApplicationInsights` + * `Update-AzApplicationInsights` + * `Get-AzApplicationInsightsApiKey` + * `New-AzApplicationInsightsApiKey` + * `Remove-AzApplicationInsightsApiKey` + * `Get-AzApplicationInsightsMyWorkbook` + * `New-AzApplicationInsightsMyWorkbook` + * `Update-AzApplicationInsightsMyWorkbook` + * `Get-AzApplicationInsightsWorkbook` + * `New-AzApplicationInsightsWorkbook` + * `Update-AzApplicationInsightsWorkbook` + * `Get-AzApplicationInsightsWebTest` + * `New-AzApplicationInsightsWebTest` + * `Update-AzApplicationInsightsWebTest` + * `Get-AzApplicationInsightsWorkbookRevision` + * `Get-AzApplicationInsightsWorkbookTemplate` + * `New-AzApplicationInsightsWorkbookTemplate` + * `Update-AzApplicationInsightsWorkbookTemplate` + * `Set-AzApplicationInsightsDailyCap` + * `Set-AzApplicationInsightsPricingPlan` ## Version 2.3.0 * Upgraded nuget package to signed package. diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md index 56f8fdc9eedc..8097d4e85595 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md @@ -45,7 +45,7 @@ Get Api Keys for an application insights resource ### Example 2: Get specific API key for an application insights resource ```powershell -Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 +Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 7c4c61dc-b392-4aa4-992f-ee92b84e5dee ``` Get specific API key for an application insights resource diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md index b7d79a2e7329..89c922f9d669 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md @@ -56,7 +56,7 @@ Get-AzApplicationInsightsWebTest ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -73,7 +73,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -90,7 +90,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -AppInsightsN ```output Name Location WebTestKind ResourceGroupName Enabled ---- -------- ----------- ----------------- ------- -basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True +bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test True standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test True diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md index 2cc1f91f5572..cca7c284a7dc 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md @@ -82,25 +82,7 @@ This command creates or updates a standard kind of the Application Insights web The switch parameter "-Enabled" must be set explicitly to $false to disable the test. -### Example 3: Creates a standard kind of the Application Insights web test with a custom header - - -```powershell -$headerField = New-AzApplicationInsightsWebTestHeaderFieldObject -Name "HeaderName1" -Value "HeaderValue1" -New-AzApplicationInsightsWebTest -ResourceGroupName exampleRG -Name expwshelltestheader2 -Location 'westus2' -Tag @{"hidden-link:" = "Resource"} -RequestUrl "https://www.bing.com" -RequestHttpVerb "GET" -TestName 'expwshelltestheader2' -RuleExpectedHttpStatusCode 200 -Frequency 300 -Enabled -Timeout 120 -Kind 'standard' -RetryEnabled -GeoLocation $geoLocation -RequestHeader $headerField -``` - - -```output -Name Location WebTestKind ResourceGroupName Enabled ----- -------- ----------- ----------------- ------- -expwshellheader2 westus2 standard exampleRG True -``` - -This command creates a standard kind of the Application Insights web test with a custom header - -### Example 4: Creates or updates a ping kind of the Application Insights web test - +### Example 3: Creates or updates a ping kind of the Application Insights web test ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" @@ -120,8 +102,7 @@ pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True This command creates or updates an ping kind of the Application Insights web test. -### Example 5: Creates or updates a ping kind of the Application Insights web test with custom configuration - +### Example 4: Creates or updates a ping kind of the Application Insights web test with custom configuration ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md index 133aeab31dda..86aee425916b 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md @@ -32,7 +32,7 @@ Delete an API Key of an Application Insights component. ### Example 1: Remove an application insights api key for an application insights resource ```powershell -Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 +Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId dd173f38-4fd1-4c75-8af5-99c29aa0f867 ``` Remove an application insights api key for an application insights resource From 82fc46594280d458a4e8159348587e0ba294fd87 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Fri, 25 Jul 2025 14:14:31 +0800 Subject: [PATCH 2/4] update examples --- .../Properties/AssemblyInfo.cs | 1 + .../docs/Get-AzApplicationInsightsApiKey.md | 2 +- .../docs/Get-AzApplicationInsightsWebTest.md | 6 ++-- .../docs/New-AzApplicationInsightsWebTest.md | 18 ++++++++++-- .../Remove-AzApplicationInsightsApiKey.md | 2 +- .../Get-AzApplicationInsightsApiKey.md | 2 +- .../Get-AzApplicationInsightsWebTest.md | 6 ++-- .../New-AzApplicationInsightsWebTest.md | 26 +++++++++++++++-- .../Remove-AzApplicationInsightsApiKey.md | 2 +- .../generate-info.json | 2 +- .../ApplicationInsights.sln | 28 +++++++++---------- .../help/Get-AzApplicationInsightsApiKey.md | 2 +- .../help/Get-AzApplicationInsightsWebTest.md | 6 ++-- .../help/New-AzApplicationInsightsWebTest.md | 18 ++++++++++-- .../Remove-AzApplicationInsightsApiKey.md | 2 +- 15 files changed, 86 insertions(+), 37 deletions(-) diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs index fb6d076faace..cdc3053fb1ae 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs @@ -24,3 +24,4 @@ [assembly: System.Reflection.AssemblyVersionAttribute("2.3.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsApiKey.md index 0feff47c1f02..3a8ff20710b8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsApiKey.md @@ -44,7 +44,7 @@ Get Api Keys for an application insights resource ### Example 2: Get specific API key for an application insights resource ```powershell -Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 7c4c61dc-b392-4aa4-992f-ee92b84e5dee +Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 ``` Get specific API key for an application insights resource diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWebTest.md index 1644ccc97a86..2d4dceb1061d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWebTest.md @@ -55,7 +55,7 @@ Get-AzApplicationInsightsWebTest ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -72,7 +72,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -89,7 +89,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -AppInsightsN ```output Name Location WebTestKind ResourceGroupName Enabled ---- -------- ----------- ----------------- ------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test True standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test True diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsWebTest.md index 6ec2bf8125e6..cf3e0c092889 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsWebTest.md @@ -81,7 +81,21 @@ This command creates or updates a standard kind of the Application Insights web The switch parameter "-Enabled" must be set explicitly to $false to disable the test. -### Example 3: Creates or updates a ping kind of the Application Insights web test +### Example 3: Creates a standard kind of the Application Insights web test with a custom header +```powershell +$headerField = New-AzApplicationInsightsWebTestHeaderFieldObject -Name "HeaderName1" -Value "HeaderValue1" +New-AzApplicationInsightsWebTest -ResourceGroupName exampleRG -Name expwshelltestheader2 -Location 'westus2' -Tag @{"hidden-link:" = "Resource"} -RequestUrl "https://www.bing.com" -RequestHttpVerb "GET" -TestName 'expwshelltestheader2' -RuleExpectedHttpStatusCode 200 -Frequency 300 -Enabled -Timeout 120 -Kind 'standard' -RetryEnabled -GeoLocation $geoLocation -RequestHeader $headerField +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +expwshellheader2 westus2 standard exampleRG True +``` + +This command creates a standard kind of the Application Insights web test with a custom header + +### Example 4: Creates or updates a ping kind of the Application Insights web test ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" @@ -101,7 +115,7 @@ pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True This command creates or updates an ping kind of the Application Insights web test. -### Example 4: Creates or updates a ping kind of the Application Insights web test with custom configuration +### Example 5: Creates or updates a ping kind of the Application Insights web test with custom configuration ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Remove-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Remove-AzApplicationInsightsApiKey.md index 6a773ffd235e..d550e6784033 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Remove-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/docs/Remove-AzApplicationInsightsApiKey.md @@ -31,7 +31,7 @@ Delete an API Key of an Application Insights component. ### Example 1: Remove an application insights api key for an application insights resource ```powershell -Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId dd173f38-4fd1-4c75-8af5-99c29aa0f867 +Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 ``` Remove an application insights api key for an application insights resource diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsApiKey.md index 2b83b8b53ae5..5660eebb0470 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsApiKey.md @@ -7,7 +7,7 @@ Get Api Keys for an application insights resource ### Example 2: Get specific API key for an application insights resource ```powershell -Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 7c4c61dc-b392-4aa4-992f-ee92b84e5dee +Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 ``` Get specific API key for an application insights resource diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsWebTest.md index dfcf9d3c90fc..ea57b526db91 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Get-AzApplicationInsightsWebTest.md @@ -5,7 +5,7 @@ Get-AzApplicationInsightsWebTest ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -21,7 +21,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -37,7 +37,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -AppInsightsN ```output Name Location WebTestKind ResourceGroupName Enabled ---- -------- ----------- ----------------- ------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test True standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test True diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md index 54ca8cc11883..b55635d475d2 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md @@ -40,7 +40,25 @@ This command creates or updates a standard kind of the Application Insights web The switch parameter "-Enabled" must be set explicitly to $false to disable the test. -### Example 3: Creates or updates a ping kind of the Application Insights web test +### Example 3: Creates a standard kind of the Application Insights web test with a custom header + + +```powershell +$headerField = New-AzApplicationInsightsWebTestHeaderFieldObject -Name "HeaderName1" -Value "HeaderValue1" +New-AzApplicationInsightsWebTest -ResourceGroupName exampleRG -Name expwshelltestheader2 -Location 'westus2' -Tag @{"hidden-link:" = "Resource"} -RequestUrl "https://www.bing.com" -RequestHttpVerb "GET" -TestName 'expwshelltestheader2' -RuleExpectedHttpStatusCode 200 -Frequency 300 -Enabled -Timeout 120 -Kind 'standard' -RetryEnabled -GeoLocation $geoLocation -RequestHeader $headerField +``` + + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +expwshellheader2 westus2 standard exampleRG True +``` + +This command creates a standard kind of the Application Insights web test with a custom header + +### Example 4: Creates or updates a ping kind of the Application Insights web test + ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" @@ -60,7 +78,8 @@ pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True This command creates or updates an ping kind of the Application Insights web test. -### Example 4: Creates or updates a ping kind of the Application Insights web test with custom configuration +### Example 5: Creates or updates a ping kind of the Application Insights web test with custom configuration + ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" @@ -85,10 +104,11 @@ New-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name 'pingwe " ``` + ```output Name Location WebTestKind ResourceGroupName Enabled ---- -------- ----------- ----------------- ------- pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True ``` -This command creates or updates an ping kind of the Application Insights web test with custom configuration. +This command creates or updates an ping kind of the Application Insights web test with custom configuration. \ No newline at end of file diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Remove-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Remove-AzApplicationInsightsApiKey.md index a112daa97111..52ed030b1e50 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Remove-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/Remove-AzApplicationInsightsApiKey.md @@ -1,6 +1,6 @@ ### Example 1: Remove an application insights api key for an application insights resource ```powershell -Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId dd173f38-4fd1-4c75-8af5-99c29aa0f867 +Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 ``` Remove an application insights api key for an application insights resource \ No newline at end of file diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json index 731815ebc493..6e47004d4689 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "227759e9-1abd-4580-84dc-9915d7398d16" + "generate_Id": "cc526506-0670-43aa-b8e6-3a556c23f9fd" } diff --git a/src/ApplicationInsights/ApplicationInsights.sln b/src/ApplicationInsights/ApplicationInsights.sln index b9909ea1ddbe..fbbe42a9e797 100644 --- a/src/ApplicationInsights/ApplicationInsights.sln +++ b/src/ApplicationInsights/ApplicationInsights.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationInsights", "Appl EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationInsights.Autorest", "ApplicationInsights.Autorest", "{6DC86C90-262B-0833-720F-E3F35D461225}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{FE927F98-4447-4C09-9EF8-7AEE7497105F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{2D1073F8-0BB5-4D9C-AED3-026788E4B408}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x64.Build.0 = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.ActiveCfg = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.Build.0 = Release|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x64.ActiveCfg = Debug|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x64.Build.0 = Debug|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x86.ActiveCfg = Debug|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Debug|x86.Build.0 = Debug|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|Any CPU.Build.0 = Release|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x64.ActiveCfg = Release|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x64.Build.0 = Release|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x86.ActiveCfg = Release|Any CPU - {FE927F98-4447-4C09-9EF8-7AEE7497105F}.Release|x86.Build.0 = Release|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x64.ActiveCfg = Debug|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x64.Build.0 = Debug|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x86.ActiveCfg = Debug|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x86.Build.0 = Debug|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|Any CPU.Build.0 = Release|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x64.ActiveCfg = Release|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x64.Build.0 = Release|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x86.ActiveCfg = Release|Any CPU + {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {7B2A2B58-861E-49ED-9987-2954BBB8C3CB} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {16A4C33D-F554-48EE-910E-80B3FE6506CD} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} - {FE927F98-4447-4C09-9EF8-7AEE7497105F} = {6DC86C90-262B-0833-720F-E3F35D461225} + {2D1073F8-0BB5-4D9C-AED3-026788E4B408} = {6DC86C90-262B-0833-720F-E3F35D461225} EndGlobalSection EndGlobal diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md index 8097d4e85595..56f8fdc9eedc 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md @@ -45,7 +45,7 @@ Get Api Keys for an application insights resource ### Example 2: Get specific API key for an application insights resource ```powershell -Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 7c4c61dc-b392-4aa4-992f-ee92b84e5dee +Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 ``` Get specific API key for an application insights resource diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md index 89c922f9d669..b7d79a2e7329 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md @@ -56,7 +56,7 @@ Get-AzApplicationInsightsWebTest ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -73,7 +73,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test ```output Name Location WebTestKind ResourceGroupName ---- -------- ----------- ----------------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test @@ -90,7 +90,7 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -AppInsightsN ```output Name Location WebTestKind ResourceGroupName Enabled ---- -------- ----------- ----------------- ------- -bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True +basic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test True basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test True standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test True diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md index cca7c284a7dc..ad6ca0df14c7 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md @@ -82,7 +82,21 @@ This command creates or updates a standard kind of the Application Insights web The switch parameter "-Enabled" must be set explicitly to $false to disable the test. -### Example 3: Creates or updates a ping kind of the Application Insights web test +### Example 3: Creates a standard kind of the Application Insights web test with a custom header +```powershell +$headerField = New-AzApplicationInsightsWebTestHeaderFieldObject -Name "HeaderName1" -Value "HeaderValue1" +New-AzApplicationInsightsWebTest -ResourceGroupName exampleRG -Name expwshelltestheader2 -Location 'westus2' -Tag @{"hidden-link:" = "Resource"} -RequestUrl "https://www.bing.com" -RequestHttpVerb "GET" -TestName 'expwshelltestheader2' -RuleExpectedHttpStatusCode 200 -Frequency 300 -Enabled -Timeout 120 -Kind 'standard' -RetryEnabled -GeoLocation $geoLocation -RequestHeader $headerField +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +expwshellheader2 westus2 standard exampleRG True +``` + +This command creates a standard kind of the Application Insights web test with a custom header + +### Example 4: Creates or updates a ping kind of the Application Insights web test ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" @@ -102,7 +116,7 @@ pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True This command creates or updates an ping kind of the Application Insights web test. -### Example 4: Creates or updates a ping kind of the Application Insights web test with custom configuration +### Example 5: Creates or updates a ping kind of the Application Insights web test with custom configuration ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md index 86aee425916b..133aeab31dda 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md @@ -32,7 +32,7 @@ Delete an API Key of an Application Insights component. ### Example 1: Remove an application insights api key for an application insights resource ```powershell -Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId dd173f38-4fd1-4c75-8af5-99c29aa0f867 +Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 00001111-aaaa-2222-bbbb-3333cccc4444 ``` Remove an application insights api key for an application insights resource From ca6b3d48c3a8dd1324c6e1c44a5a6ef247f5da62 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Fri, 25 Jul 2025 14:18:15 +0800 Subject: [PATCH 3/4] update examples --- .../Properties/AssemblyInfo.cs | 1 + .../New-AzApplicationInsightsWebTest.md | 5 ---- .../generate-info.json | 2 +- .../ApplicationInsights.sln | 28 +++++++++---------- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs index cdc3053fb1ae..a6ef7eb33466 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs @@ -25,3 +25,4 @@ [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md index b55635d475d2..d8440a9f2ed1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md @@ -41,14 +41,11 @@ This command creates or updates a standard kind of the Application Insights web The switch parameter "-Enabled" must be set explicitly to $false to disable the test. ### Example 3: Creates a standard kind of the Application Insights web test with a custom header - - ```powershell $headerField = New-AzApplicationInsightsWebTestHeaderFieldObject -Name "HeaderName1" -Value "HeaderValue1" New-AzApplicationInsightsWebTest -ResourceGroupName exampleRG -Name expwshelltestheader2 -Location 'westus2' -Tag @{"hidden-link:" = "Resource"} -RequestUrl "https://www.bing.com" -RequestHttpVerb "GET" -TestName 'expwshelltestheader2' -RuleExpectedHttpStatusCode 200 -Frequency 300 -Enabled -Timeout 120 -Kind 'standard' -RetryEnabled -GeoLocation $geoLocation -RequestHeader $headerField ``` - ```output Name Location WebTestKind ResourceGroupName Enabled ---- -------- ----------- ----------------- ------- @@ -58,7 +55,6 @@ expwshellheader2 westus2 standard exampleRG True This command creates a standard kind of the Application Insights web test with a custom header ### Example 4: Creates or updates a ping kind of the Application Insights web test - ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" @@ -79,7 +75,6 @@ pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True This command creates or updates an ping kind of the Application Insights web test. ### Example 5: Creates or updates a ping kind of the Application Insights web test with custom configuration - ```powershell $geoLocation = @() $geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json index 6e47004d4689..95e62979c5d0 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "cc526506-0670-43aa-b8e6-3a556c23f9fd" + "generate_Id": "3ea12b6e-5f27-48f8-9828-0772c64bb4c8" } diff --git a/src/ApplicationInsights/ApplicationInsights.sln b/src/ApplicationInsights/ApplicationInsights.sln index fbbe42a9e797..7096a5569eba 100644 --- a/src/ApplicationInsights/ApplicationInsights.sln +++ b/src/ApplicationInsights/ApplicationInsights.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationInsights", "Appl EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationInsights.Autorest", "ApplicationInsights.Autorest", "{6DC86C90-262B-0833-720F-E3F35D461225}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{2D1073F8-0BB5-4D9C-AED3-026788E4B408}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x64.Build.0 = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.ActiveCfg = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.Build.0 = Release|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x64.ActiveCfg = Debug|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x64.Build.0 = Debug|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x86.ActiveCfg = Debug|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Debug|x86.Build.0 = Debug|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|Any CPU.Build.0 = Release|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x64.ActiveCfg = Release|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x64.Build.0 = Release|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x86.ActiveCfg = Release|Any CPU - {2D1073F8-0BB5-4D9C-AED3-026788E4B408}.Release|x86.Build.0 = Release|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x64.ActiveCfg = Debug|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x64.Build.0 = Debug|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x86.ActiveCfg = Debug|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x86.Build.0 = Debug|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|Any CPU.Build.0 = Release|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x64.ActiveCfg = Release|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x64.Build.0 = Release|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x86.ActiveCfg = Release|Any CPU + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {7B2A2B58-861E-49ED-9987-2954BBB8C3CB} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {16A4C33D-F554-48EE-910E-80B3FE6506CD} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} - {2D1073F8-0BB5-4D9C-AED3-026788E4B408} = {6DC86C90-262B-0833-720F-E3F35D461225} + {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8} = {6DC86C90-262B-0833-720F-E3F35D461225} EndGlobalSection EndGlobal From d91e43edf2911dba83ceac12346f945d86e17f25 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Sun, 27 Jul 2025 19:57:45 +0800 Subject: [PATCH 4/4] Update --- .../Properties/AssemblyInfo.cs | 2 -- .../ApplicationInsights.Autorest/README.md | 14 +++++----- .../custom/Get-AzApplicationInsights.ps1 | 2 +- .../custom/New-AzApplicationInsights.ps1 | 2 +- .../New-AzApplicationInsightsApiKey.ps1 | 2 +- .../New-AzApplicationInsightsWebTest.ps1 | 2 +- .../Set-AzApplicationInsightsDailyCap.ps1 | 2 +- .../Set-AzApplicationInsightsPricingPlan.ps1 | 2 +- .../custom/Update-AzApplicationInsights.ps1 | 2 +- .../generate-info.json | 2 +- .../ApplicationInsights.sln | 28 +++++++++---------- .../Az.ApplicationInsights.psd1 | 2 +- 12 files changed, 30 insertions(+), 32 deletions(-) diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs index a6ef7eb33466..fb6d076faace 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/Properties/AssemblyInfo.cs @@ -24,5 +24,3 @@ [assembly: System.Reflection.AssemblyVersionAttribute("2.3.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - - diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/README.md b/src/ApplicationInsights/ApplicationInsights.Autorest/README.md index 48189592eabd..619049d55e39 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/README.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/README.md @@ -443,7 +443,7 @@ directive: - LinkedReadProperty - LinkedWriteProperty change-description: The types of the properties LinkedReadProperty, LinkedWriteProperty will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -457,7 +457,7 @@ directive: new-output-properties: - PropertiesTag change-description: The types of the properties PropertiesTag will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -473,7 +473,7 @@ directive: - EnableSystemAssignedIdentity - UserAssignedIdentity 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. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -489,7 +489,7 @@ directive: - RequestHeader - PropertiesLocations 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. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -503,7 +503,7 @@ directive: new-output-properties: - PropertiesTag 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]'. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -517,7 +517,7 @@ directive: new-output-properties: - PropertiesTag 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]'. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -531,7 +531,7 @@ directive: new-output-properties: - Gallery 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]'. - deprecated-by-version: 7.0.0 + deprecated-by-version: 9.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 ``` diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 index 8f47a9d55a67..04d37f1e5c33 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 @@ -23,7 +23,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azappli #> function Get-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))] + [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]"))] [CmdletBinding(DefaultParameterSetName='ListBySubscription', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 index 03d8f8d2186f..555e0ac16820 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsights.ps1 @@ -26,7 +26,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli #> function New-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))] + [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]"))] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 index 4369f9a52065..f667c21b0d37 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsApiKey.ps1 @@ -23,7 +23,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli #> function New-AzApplicationInsightsApiKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "System.String[]", DeprecatedOutputProperties = ("System.Collections.Generic.List`1[System.String]"), NewOutputProperties = ("LinkedReadProperty and LinkedWriteProperty The types of the properties LinkedReadProperty, LinkedWriteProperty will be changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]"))] + [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]"))] [CmdletBinding(DefaultParameterSetName='ComponentNameParameterSet', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName="ComponentNameParameterSet")] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 index 97b9fdf811ca..63a4477c0f90 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/New-AzApplicationInsightsWebTest.ps1 @@ -46,7 +46,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azappli #> function New-AzApplicationInsightsWebTest { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "RequestHeader Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField", DeprecatedOutputProperties = ("RequestHeader System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IHeaderField]"), NewOutputProperties = ("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."))] + [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]"))] [CmdletBinding(DefaultParameterSetName='CreateStandard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 index 2600badf4b3d..a77907a7c1c0 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsDailyCap.ps1 @@ -24,7 +24,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azappli #> function Set-AzApplicationInsightsDailyCap { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "CurrentBillingFeature System.String[]", DeprecatedOutputProperties = ("CurrentBillingFeature System.Collections.Generic.List`1[System.String]"), NewOutputProperties = ("The type of property 'CurrentBillingFeature' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'."))] + [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]"))] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 index 358d0673deaf..8fe14370bdc2 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsPricingPlan.ps1 @@ -24,7 +24,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azappli #> function Set-AzApplicationInsightsPricingPlan { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "CurrentBillingFeature System.String[]", DeprecatedOutputProperties = ("CurrentBillingFeature System.Collections.Generic.List`1[System.String]"), NewOutputProperties = ("The type of property 'CurrentBillingFeature' of type 'Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'."))] + [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]"))] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 index 36c711340c96..e0456078c078 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 @@ -26,7 +26,7 @@ https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azap #> function Update-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] - [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent", "15.0.0", "7.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource", DeprecatedOutputProperties = ("PrivateLinkScopedResource Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource"), NewOutputProperties = ("PrivateLinkScopedResource System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IPrivateLinkScopedResource]"))] + [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]"))] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json index 95e62979c5d0..baf7dd351d50 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "3ea12b6e-5f27-48f8-9828-0772c64bb4c8" + "generate_Id": "e79f3301-10cb-4d98-b19c-248daa9a6880" } diff --git a/src/ApplicationInsights/ApplicationInsights.sln b/src/ApplicationInsights/ApplicationInsights.sln index 7096a5569eba..9b8dae01a00b 100644 --- a/src/ApplicationInsights/ApplicationInsights.sln +++ b/src/ApplicationInsights/ApplicationInsights.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApplicationInsights", "Appl EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ApplicationInsights.Autorest", "ApplicationInsights.Autorest", "{6DC86C90-262B-0833-720F-E3F35D461225}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{FD8339B3-1F2F-4875-AEDA-479423141154}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x64.Build.0 = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.ActiveCfg = Release|Any CPU {D4018D9E-EB72-41F1-AE63-98C0505CC275}.Release|x86.Build.0 = Release|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x64.ActiveCfg = Debug|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x64.Build.0 = Debug|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x86.ActiveCfg = Debug|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Debug|x86.Build.0 = Debug|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|Any CPU.Build.0 = Release|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x64.ActiveCfg = Release|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x64.Build.0 = Release|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x86.ActiveCfg = Release|Any CPU - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8}.Release|x86.Build.0 = Release|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Debug|x64.ActiveCfg = Debug|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Debug|x64.Build.0 = Debug|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Debug|x86.ActiveCfg = Debug|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Debug|x86.Build.0 = Debug|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Release|Any CPU.Build.0 = Release|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Release|x64.ActiveCfg = Release|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Release|x64.Build.0 = Release|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Release|x86.ActiveCfg = Release|Any CPU + {FD8339B3-1F2F-4875-AEDA-479423141154}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {2D8A3BCE-ACF8-4D27-BCDA-FF83121165EF} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {7B2A2B58-861E-49ED-9987-2954BBB8C3CB} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} {16A4C33D-F554-48EE-910E-80B3FE6506CD} = {3ED16BE4-F064-4D54-8A87-DD248DFEA7EC} - {AD6D4ACC-2B57-460B-9ED5-C5CCD2F2DCD8} = {6DC86C90-262B-0833-720F-E3F35D461225} + {FD8339B3-1F2F-4875-AEDA-479423141154} = {6DC86C90-262B-0833-720F-E3F35D461225} EndGlobalSection EndGlobal diff --git a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 index 931ba9bc2fb6..d22dbeae7d67 100644 --- a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 +++ b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-07-25 +# Generated on: 2025-07-27 # @{