Skip to content

Commit 7235772

Browse files
authored
enable common parameter in get-azapplicationinsights (#23663)
1 parent cad4387 commit 7235772

File tree

38 files changed

+55
-526
lines changed

38 files changed

+55
-526
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ function Get-AzApplicationInsights {
126126
'GetByResourceId' {
127127
$resourceId = $PSBoundParameters['ResourceId']
128128
$null = $PSBoundParameters.Remove('ResourceId')
129-
$component = ($resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsights)
129+
$component = (. Az.ApplicationInsights.internal\Get-AzApplicationInsights -InputObject $resourceId @PSBoundParameters)
130130
if ($full) {
131-
$pricingPlan = $resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentCurrentBillingFeature
132-
$dailyCapStatus = $resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentQuotaStatus
131+
$pricingPlan = . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentCurrentBillingFeature -InputObject $resourceId @PSBoundParameters
132+
$dailyCapStatus = . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentQuotaStatus -InputObject $resourceId @PSBoundParameters
133133
}
134134
break
135135
}

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsights.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -183,26 +183,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
183183
184184
## NOTES
185185
186-
ALIASES
187-
188-
COMPLEX PARAMETER PROPERTIES
189-
190-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
191-
192-
193-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
194-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
195-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
196-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
197-
- `[Id <String>]`: Resource identity path
198-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
199-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
200-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
201-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
202-
- `[RevisionId <String>]`: The id of the workbook's revision.
203-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
204-
- `[SubscriptionId <String>]`: The ID of the target subscription.
205-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
206-
207186
## RELATED LINKS
208187

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsApiKey.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ Accept wildcard characters: False
6868
```
6969
7070
### -DefaultProfile
71-
The credentials, account, tenant, and subscription used for communication with Azure.
71+
The DefaultProfile parameter is not functional.
72+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
7273
7374
```yaml
7475
Type: System.Management.Automation.PSObject
@@ -157,26 +158,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
157158
158159
## NOTES
159160
160-
ALIASES
161-
162-
COMPLEX PARAMETER PROPERTIES
163-
164-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
165-
166-
167-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
168-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
169-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
170-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
171-
- `[Id <String>]`: Resource identity path
172-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
173-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
174-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
175-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
176-
- `[RevisionId <String>]`: The id of the workbook's revision.
177-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
178-
- `[SubscriptionId <String>]`: The ID of the target subscription.
179-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
180-
181161
## RELATED LINKS
182162

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsContinuousExport.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Get continuous export for an application insights resource
5252
## PARAMETERS
5353

5454
### -DefaultProfile
55-
The credentials, account, tenant, and subscription used for communication with Azure.
55+
The DefaultProfile parameter is not functional.
56+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
5657

5758
```yaml
5859
Type: System.Management.Automation.PSObject
@@ -157,26 +158,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
157158
158159
## NOTES
159160
160-
ALIASES
161-
162-
COMPLEX PARAMETER PROPERTIES
163-
164-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
165-
166-
167-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
168-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
169-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
170-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
171-
- `[Id <String>]`: Resource identity path
172-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
173-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
174-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
175-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
176-
- `[RevisionId <String>]`: The id of the workbook's revision.
177-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
178-
- `[SubscriptionId <String>]`: The ID of the target subscription.
179-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
180-
181161
## RELATED LINKS
182162

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsLinkedStorageAccount.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Get linked storage account associated with component "componentName"
3939
## PARAMETERS
4040

4141
### -DefaultProfile
42-
The credentials, account, tenant, and subscription used for communication with Azure.
42+
The DefaultProfile parameter is not functional.
43+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
4344

4445
```yaml
4546
Type: System.Management.Automation.PSObject
@@ -128,26 +129,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
128129
129130
## NOTES
130131
131-
ALIASES
132-
133-
COMPLEX PARAMETER PROPERTIES
134-
135-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
136-
137-
138-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
139-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
140-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
141-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
142-
- `[Id <String>]`: Resource identity path
143-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
144-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
145-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
146-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
147-
- `[RevisionId <String>]`: The id of the workbook's revision.
148-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
149-
- `[SubscriptionId <String>]`: The ID of the target subscription.
150-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
151-
152132
## RELATED LINKS
153133

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsMyWorkbook.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ Accept wildcard characters: False
121121
```
122122
123123
### -DefaultProfile
124-
The credentials, account, tenant, and subscription used for communication with Azure.
124+
The DefaultProfile parameter is not functional.
125+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
125126
126127
```yaml
127128
Type: System.Management.Automation.PSObject
@@ -222,7 +223,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
222223
223224
## NOTES
224225
225-
ALIASES
226-
227226
## RELATED LINKS
228227

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWebTest.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ Accept wildcard characters: False
149149
```
150150
151151
### -DefaultProfile
152-
The credentials, account, tenant, and subscription used for communication with Azure.
152+
The DefaultProfile parameter is not functional.
153+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
153154
154155
```yaml
155156
Type: System.Management.Automation.PSObject
@@ -238,26 +239,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
238239
239240
## NOTES
240241
241-
ALIASES
242-
243-
COMPLEX PARAMETER PROPERTIES
244-
245-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
246-
247-
248-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
249-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
250-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
251-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
252-
- `[Id <String>]`: Resource identity path
253-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
254-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
255-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
256-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
257-
- `[RevisionId <String>]`: The id of the workbook's revision.
258-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
259-
- `[SubscriptionId <String>]`: The ID of the target subscription.
260-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
261-
262242
## RELATED LINKS
263243

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWorkbook.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ Accept wildcard characters: False
145145
```
146146
147147
### -DefaultProfile
148-
The credentials, account, tenant, and subscription used for communication with Azure.
148+
The DefaultProfile parameter is not functional.
149+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
149150
150151
```yaml
151152
Type: System.Management.Automation.PSObject
@@ -264,26 +265,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
264265
265266
## NOTES
266267
267-
ALIASES
268-
269-
COMPLEX PARAMETER PROPERTIES
270-
271-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
272-
273-
274-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
275-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
276-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
277-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
278-
- `[Id <String>]`: Resource identity path
279-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
280-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
281-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
282-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
283-
- `[RevisionId <String>]`: The id of the workbook's revision.
284-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
285-
- `[SubscriptionId <String>]`: The ID of the target subscription.
286-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
287-
288268
## RELATED LINKS
289269

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWorkbookRevision.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ This commmand gets a single workbook revision defined by resource id.
7777
## PARAMETERS
7878

7979
### -DefaultProfile
80-
The credentials, account, tenant, and subscription used for communication with Azure.
80+
The DefaultProfile parameter is not functional.
81+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8182

8283
```yaml
8384
Type: System.Management.Automation.PSObject
@@ -181,26 +182,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
181182
182183
## NOTES
183184
184-
ALIASES
185-
186-
COMPLEX PARAMETER PROPERTIES
187-
188-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
189-
190-
191-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
192-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
193-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
194-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
195-
- `[Id <String>]`: Resource identity path
196-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
197-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
198-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
199-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
200-
- `[RevisionId <String>]`: The id of the workbook's revision.
201-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
202-
- `[SubscriptionId <String>]`: The ID of the target subscription.
203-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
204-
205185
## RELATED LINKS
206186

src/ApplicationInsights/ApplicationInsights.Autorest/docs/Get-AzApplicationInsightsWorkbookTemplate.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ This command gets a single workbook template by pipeline.
8787
## PARAMETERS
8888

8989
### -DefaultProfile
90-
The credentials, account, tenant, and subscription used for communication with Azure.
90+
The DefaultProfile parameter is not functional.
91+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
9192

9293
```yaml
9394
Type: System.Management.Automation.PSObject
@@ -176,26 +177,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
176177
177178
## NOTES
178179
179-
ALIASES
180-
181-
COMPLEX PARAMETER PROPERTIES
182-
183-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
184-
185-
186-
`INPUTOBJECT <IApplicationInsightsIdentity>`: Identity Parameter
187-
- `[AnnotationId <String>]`: The unique annotation ID. This is unique within a Application Insights component.
188-
- `[ComponentName <String>]`: The name of the Application Insights component resource.
189-
- `[ExportId <String>]`: The Continuous Export configuration ID. This is unique within a Application Insights component.
190-
- `[Id <String>]`: Resource identity path
191-
- `[KeyId <String>]`: The API Key ID. This is unique within a Application Insights component.
192-
- `[PurgeId <String>]`: In a purge status request, this is the Id of the operation the status of which is returned.
193-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
194-
- `[ResourceName <String>]`: The name of the Application Insights component resource.
195-
- `[RevisionId <String>]`: The id of the workbook's revision.
196-
- `[StorageType <StorageType?>]`: The type of the Application Insights component data source for the linked storage account.
197-
- `[SubscriptionId <String>]`: The ID of the target subscription.
198-
- `[WebTestName <String>]`: The name of the Application Insights WebTest resource.
199-
200180
## RELATED LINKS
201181

src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsights.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
417417
418418
## NOTES
419419
420-
ALIASES
421-
422420
## RELATED LINKS
423421

src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsApiKey.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
168168
169169
## NOTES
170170
171-
ALIASES
172-
173171
## RELATED LINKS
174172

src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsContinuousExport.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
250250
251251
## NOTES
252252
253-
ALIASES
254-
255253
## RELATED LINKS
256254

src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsLinkedStorageAccount.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Create linked storage account $account under component "componentName"
3434
## PARAMETERS
3535

3636
### -DefaultProfile
37-
The credentials, account, tenant, and subscription used for communication with Azure.
37+
The DefaultProfile parameter is not functional.
38+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
3839

3940
```yaml
4041
Type: System.Management.Automation.PSObject
@@ -151,7 +152,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
151152
152153
## NOTES
153154
154-
ALIASES
155-
156155
## RELATED LINKS
157156

src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsMyWorkbook.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Accept wildcard characters: False
5858
```
5959
6060
### -DefaultProfile
61-
The credentials, account, tenant, and subscription used for communication with Azure.
61+
The DefaultProfile parameter is not functional.
62+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
6263
6364
```yaml
6465
Type: System.Management.Automation.PSObject
@@ -357,7 +358,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
357358
358359
## NOTES
359360
360-
ALIASES
361-
362361
## RELATED LINKS
363362

src/ApplicationInsights/ApplicationInsights.Autorest/docs/New-AzApplicationInsightsWebTest.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -586,19 +586,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
586586
587587
## NOTES
588588
589-
ALIASES
590-
591-
COMPLEX PARAMETER PROPERTIES
592-
593-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
594-
595-
596-
`GEOLOCATION <IWebTestGeolocation[]>`: A list of where to physically run the tests from to give global coverage for accessibility of your application.
597-
- `[Location <String>]`: Location ID for the WebTest to run from.
598-
599-
`REQUESTHEADER <IHeaderField[]>`: List of headers and their values to add to the WebTest call.
600-
- `[Name <String>]`: The name of the header.
601-
- `[Value <String>]`: The value of the header.
602-
603589
## RELATED LINKS
604590

0 commit comments

Comments
 (0)