Skip to content

Commit d20f0cb

Browse files
Migrate Applicationinsights from generation to main (#23689)
* Move Applicationinsights to main * Update ChangeLog.md for applicationInsights --------- Co-authored-by: Xiaogang <[email protected]>
1 parent f77b734 commit d20f0cb

File tree

267 files changed

+10791
-880
lines changed

Some content is hidden

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

267 files changed

+10791
-880
lines changed
Lines changed: 21 additions & 163 deletions
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.ApplicationInsights'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 2023/2/3
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.ApplicationInsights.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '2.2.2'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = '031a685e-5904-433f-b2f8-4fcef3cd15d8'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: ApplicationInsights cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.11.2'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.ApplicationInsights.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.ApplicationInsights.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzApplicationInsights', 'Get-AzApplicationInsightsApiKey',
73-
'Get-AzApplicationInsightsContinuousExport',
74-
'Get-AzApplicationInsightsLinkedStorageAccount',
75-
'Get-AzApplicationInsightsMyWorkbook',
76-
'Get-AzApplicationInsightsWebTest',
77-
'Get-AzApplicationInsightsWorkbook',
78-
'Get-AzApplicationInsightsWorkbookRevision',
79-
'Get-AzApplicationInsightsWorkbookTemplate',
80-
'New-AzApplicationInsights', 'New-AzApplicationInsightsApiKey',
81-
'New-AzApplicationInsightsContinuousExport',
82-
'New-AzApplicationInsightsLinkedStorageAccount',
83-
'New-AzApplicationInsightsMyWorkbook',
84-
'New-AzApplicationInsightsWebTest',
85-
'New-AzApplicationInsightsWebTestGeolocationObject',
86-
'New-AzApplicationInsightsWebTestHeaderFieldObject',
87-
'New-AzApplicationInsightsWorkbook',
88-
'New-AzApplicationInsightsWorkbookTemplate',
89-
'New-AzApplicationInsightsWorkbookTemplateGalleryObject',
90-
'Remove-AzApplicationInsights',
91-
'Remove-AzApplicationInsightsApiKey',
92-
'Remove-AzApplicationInsightsContinuousExport',
93-
'Remove-AzApplicationInsightsLinkedStorageAccount',
94-
'Remove-AzApplicationInsightsMyWorkbook',
95-
'Remove-AzApplicationInsightsWebTest',
96-
'Remove-AzApplicationInsightsWorkbook',
97-
'Remove-AzApplicationInsightsWorkbookTemplate',
98-
'Set-AzApplicationInsightsContinuousExport',
99-
'Set-AzApplicationInsightsDailyCap',
100-
'Set-AzApplicationInsightsPricingPlan',
101-
'Update-AzApplicationInsights',
102-
'Update-AzApplicationInsightsLinkedStorageAccount',
103-
'Update-AzApplicationInsightsMyWorkbook',
104-
'Update-AzApplicationInsightsWebTestTag',
105-
'Update-AzApplicationInsightsWorkbook',
106-
'Update-AzApplicationInsightsWorkbookTemplate'
107-
108-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
109-
CmdletsToExport = @()
110-
111-
# Variables to export from this module
112-
# VariablesToExport = @()
113-
114-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
115-
AliasesToExport = '*'
116-
117-
# DSC resources to export from this module
118-
# DscResourcesToExport = @()
119-
120-
# List of all modules packaged with this module
121-
# ModuleList = @()
122-
123-
# List of all files packaged with this module
124-
# FileList = @()
125-
126-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
127-
PrivateData = @{
128-
2+
GUID = '031a685e-5904-433f-b2f8-4fcef3cd15d8'
3+
RootModule = './Az.ApplicationInsights.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: ApplicationInsights cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.ApplicationInsights.private.dll'
13+
FormatsToProcess = './Az.ApplicationInsights.format.ps1xml'
14+
FunctionsToExport = 'Get-AzApplicationInsights', 'Get-AzApplicationInsightsApiKey', 'Get-AzApplicationInsightsContinuousExport', 'Get-AzApplicationInsightsLinkedStorageAccount', 'Get-AzApplicationInsightsMyWorkbook', 'Get-AzApplicationInsightsWebTest', 'Get-AzApplicationInsightsWorkbook', 'Get-AzApplicationInsightsWorkbookRevision', 'Get-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsights', 'New-AzApplicationInsightsApiKey', 'New-AzApplicationInsightsContinuousExport', 'New-AzApplicationInsightsLinkedStorageAccount', 'New-AzApplicationInsightsMyWorkbook', 'New-AzApplicationInsightsWebTest', 'New-AzApplicationInsightsWebTestGeolocationObject', 'New-AzApplicationInsightsWebTestHeaderFieldObject', 'New-AzApplicationInsightsWorkbook', 'New-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsightsWorkbookTemplateGalleryObject', 'Remove-AzApplicationInsights', 'Remove-AzApplicationInsightsApiKey', 'Remove-AzApplicationInsightsContinuousExport', 'Remove-AzApplicationInsightsLinkedStorageAccount', 'Remove-AzApplicationInsightsMyWorkbook', 'Remove-AzApplicationInsightsWebTest', 'Remove-AzApplicationInsightsWorkbook', 'Remove-AzApplicationInsightsWorkbookTemplate', 'Set-AzApplicationInsightsContinuousExport', 'Set-AzApplicationInsightsDailyCap', 'Set-AzApplicationInsightsPricingPlan', 'Update-AzApplicationInsights', 'Update-AzApplicationInsightsLinkedStorageAccount', 'Update-AzApplicationInsightsMyWorkbook', 'Update-AzApplicationInsightsWebTestTag', 'Update-AzApplicationInsightsWorkbook', 'Update-AzApplicationInsightsWorkbookTemplate', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
12917
PSData = @{
130-
131-
# Tags applied to this module. These help with module discovery in online galleries.
132-
Tags = 'Azure','ResourceManager','ARM','PSModule','ApplicationInsights'
133-
134-
# A URL to the license for this module.
135-
LicenseUri = 'https://aka.ms/azps-license'
136-
137-
# A URL to the main website for this project.
138-
ProjectUri = 'https://github.com/Azure/azure-powershell'
139-
140-
# A URL to an icon representing this module.
141-
# IconUri = ''
142-
143-
# ReleaseNotes of this module
144-
ReleaseNotes = '* Added parameter validation for ''Get-AzApplicationInsights'' [#20697]'
145-
146-
# Prerelease string of this module
147-
# Prerelease = ''
148-
149-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
150-
# RequireLicenseAcceptance = $false
151-
152-
# External dependent modules of this module
153-
# ExternalModuleDependencies = @()
154-
155-
} # End of PSData hashtable
156-
157-
} # End of PrivateData hashtable
158-
159-
# HelpInfo URI of this module
160-
# HelpInfoURI = ''
161-
162-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
163-
# DefaultCommandPrefix = ''
164-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ApplicationInsights'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
16524
}
166-

src/ApplicationInsights/ApplicationInsights.Autorest/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ For information on how to develop for `Az.ApplicationInsights`, see [how-to.md](
3131
3232
``` yaml
3333
# lock the commit
34-
branch: 60be34ab72f1483aef8feede852bc9f2f1921897
34+
commit: 60be34ab72f1483aef8feede852bc9f2f1921897
3535
require:
36-
- $(this-folder)/../readme.azure.noprofile.md
36+
- $(this-folder)/../../readme.azure.noprofile.md
3737
input-file:
3838
- $(repo)/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/webTests_API.json
3939
- $(repo)/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json
@@ -53,6 +53,10 @@ identity-correction-for-post: true
5353
resourcegroup-append: true
5454
nested-object-to-string: true
5555

56+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
57+
use-extension:
58+
"@autorest/powershell": "3.x"
59+
5660
directive:
5761
- from: swagger-document
5862
where: $.info.title
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "components/APIKeys",
3+
"apiVersion": "2015-05-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.applicationinsights"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzApplicationInsightsApiKey",
10+
"description": "Get the API Key for this key id.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsapikey"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-ApiKeyId <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Get the API Key for this key id.",
30+
"parameters": [
31+
{
32+
"name": "-ApiKeyId",
33+
"value": "[Path.keyId]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.resourceName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzApplicationInsightsApiKey",
53+
"description": "Delete an API Key of an Application Insights component.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsapikey"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-ApiKeyId <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Delete an API Key of an Application Insights component.",
73+
"parameters": [
74+
{
75+
"name": "-ApiKeyId",
76+
"value": "[Path.keyId]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.resourceName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}

0 commit comments

Comments
 (0)