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..619049d55e39 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: 9.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: 9.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: 9.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: 9.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: 9.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: 9.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: 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 bb2abcf8fc65..04d37f1e5c33 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", "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 032c5929d2fc..555e0ac16820 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", "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 45254dec824c..f667c21b0d37 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", "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 dacd0391b57a..63a4477c0f90 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", "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 e36119826c79..a77907a7c1c0 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", "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 b8325f882afb..8fe14370bdc2 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", "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 9b4dc08b3fc7..e0456078c078 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", "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/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/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..d8440a9f2ed1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/examples/New-AzApplicationInsightsWebTest.md @@ -40,7 +40,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" @@ -60,7 +74,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" @@ -85,10 +99,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 a6297cdb401a..baf7dd351d50 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": "e79f3301-10cb-4d98-b19c-248daa9a6880" } 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..9b8dae01a00b 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", "{FD8339B3-1F2F-4875-AEDA-479423141154}" 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 + {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 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} + {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 9fed2360cc97..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: 1/9/2025 +# Generated on: 2025-07-27 # @{ @@ -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/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md index 2cc1f91f5572..ad6ca0df14c7 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md @@ -83,14 +83,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 ---- -------- ----------- ----------------- ------- @@ -100,7 +97,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" @@ -121,7 +117,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"