Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[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.Reflection.AssemblyFileVersionAttribute("2.3.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.3.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
123 changes: 6 additions & 117 deletions src/ApplicationInsights/ApplicationInsights.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ input-file:
module-version: 0.1.0
subject-prefix: $(service-name)

identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
- from: swagger-document
where: $.info.title
Expand Down Expand Up @@ -403,10 +395,12 @@ directive:
hide: true

- model-cmdlet:
- WebTestGeolocation
- WorkbookTemplateGallery
# Hide for custom model cmdlet.
# - HeaderField
- model-name: WebTestGeolocation
cmdlet-name: New-AzApplicationInsightsWebTestGeolocationObject
- model-name: WorkbookTemplateGallery
cmdlet-name: New-AzApplicationInsightsWorkbookTemplateGalleryObject
- model-name: HeaderField
cmdlet-name: New-AzApplicationInsightsWebTestHeaderFieldObject

# format output table
- where:
Expand All @@ -429,109 +423,4 @@ 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
```
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ Returns an Application Insights component.
https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights
#>
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]"))]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
[CmdletBinding(DefaultParameterSetName='ListBySubscription', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Text.RegularExpressions;
using System.Linq;
using System;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// ----------------------------------------------------------------------------------

using System.Linq;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ Note: You cannot specify a different value for InstrumentationKey nor AppId in t
https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights
#>
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]"))]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -54,7 +53,7 @@ function New-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.String]
[Alias("ApplicationKind")]
[ValidateSet("web", "other", "nodejs", "java", "ios", "store", "phone", IgnoreCase)]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("web", "other", "nodejs", "java", "ios", "store", "phone", "IgnoreCase")]
# The kind of application that this component refers to, used to customize UI.
# This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.
${Kind},
Expand All @@ -66,9 +65,9 @@ function New-AzApplicationInsights {
${Location},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ApplicationType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("web", "other")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ApplicationType]
[System.String]
# Type of application being monitored.
${ApplicationType},

Expand All @@ -91,9 +90,9 @@ function New-AzApplicationInsights {
${Etag},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.FlowType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("Bluefield")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.FlowType]
[System.String]
# Used by the Application Insights system to determine what kind of flow this component was created by.
# This is to be set to 'Bluefield' when creating/updating a component via the REST API.
${FlowType},
Expand All @@ -108,6 +107,7 @@ function New-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.String]
# The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
# Please visit external url https://aka.ms/ewjuel to get more information.
${HockeyAppId},

[Parameter()]
Expand All @@ -117,30 +117,30 @@ function New-AzApplicationInsights {
${ImmediatePurgeDataOn30Day},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.IngestionMode])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("ApplicationInsights", "ApplicationInsightsWithDiagnosticSettings", "LogAnalytics")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.IngestionMode]
[System.String]
# Indicates the flow of the ingestion.
${IngestionMode},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType]
[System.String]
# The network access type for accessing Application Insights ingestion.
${PublicNetworkAccessForIngestion},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType]
[System.String]
# The network access type for accessing Application Insights query.
${PublicNetworkAccessForQuery},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.RequestSource])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("rest")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.RequestSource]
[System.String]
# Describes what tool created this Application Insights component.
# Customers using this API should set this to the default 'rest'.
${RequestSource},
Expand All @@ -155,12 +155,13 @@ function New-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.Double]
# Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
# Please visit external url https://aka.ms/sl0yqd to get more information.
${SamplingPercentage},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Alias("Tags")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IComponentsResourceTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IComponentsResourceTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
Expand All @@ -178,7 +179,8 @@ function New-AzApplicationInsights {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ Create an API Key of an Application Insights component.
https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsapikey
#>
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]"))]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentApiKey])]
[CmdletBinding(DefaultParameterSetName='ComponentNameParameterSet', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName="ComponentNameParameterSet")]
Expand Down Expand Up @@ -56,7 +55,7 @@ function New-AzApplicationInsightsApiKey {
[Parameter(Mandatory)]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[ValidateSet("ReadTelemetry", "WriteAnnotations", "AuthenticateSDKControlChannel")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("ReadTelemetry", "WriteAnnotations", "AuthenticateSDKControlChannel")]
[System.String[]]
# The read access rights of this API Key.
${Permissions},
Expand All @@ -66,7 +65,8 @@ function New-AzApplicationInsightsApiKey {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Loading