Skip to content

Commit 2f4a496

Browse files
authored
[Az.Monitor] Change the name of sub-module (#24613)
* Change the name of sub-module * Change the name of sub-module * Rename Metric.Autorest to MetricData.Autorest * Suppress the exceptions * Suppress the exceptions
1 parent 9d33608 commit 2f4a496

File tree

97 files changed

+175
-817
lines changed

Some content is hidden

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

97 files changed

+175
-817
lines changed

src/Monitor/ActionGroup.Autorest/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
This directory contains the PowerShell module for the ActionGroup service.
44

55
---
6-
## Status
7-
[![Az.ActionGroup](https://img.shields.io/powershellgallery/v/Az.ActionGroup.svg?style=flat-square&label=Az.ActionGroup "Az.ActionGroup")](https://www.powershellgallery.com/packages/Az.ActionGroup/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all
@@ -46,6 +43,8 @@ namespace: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup
4643
subject-prefix: ActionGroup
4744
resourcegroup-append: true
4845
nested-object-to-string: true
46+
disable-transform-identity-type: true
47+
flatten-userassignedidentity: false
4948

5049
use-extension:
5150
"@autorest/powershell": "4.x"

src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ Accept wildcard characters: False
9191
9292
### -InputObject
9393
Identity Parameter
94-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
9594
9695
```yaml
9796
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity

src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Accept wildcard characters: False
103103
104104
### -InputObject
105105
Identity Parameter
106-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
107106
108107
```yaml
109108
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity

src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ This command creates an action group with no receiver.
131131
### -ArmRoleReceiver
132132
The list of ARM role receivers that are part of this action group.
133133
Roles are Azure RBAC roles and only built-in roles are supported.
134-
To construct, see NOTES section for ARMROLERECEIVER properties and create a hash table.
135134

136135
```yaml
137136
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IArmRoleReceiver[]
@@ -147,7 +146,6 @@ Accept wildcard characters: False
147146
148147
### -AutomationRunbookReceiver
149148
The list of AutomationRunbook receivers that are part of this action group.
150-
To construct, see NOTES section for AUTOMATIONRUNBOOKRECEIVER properties and create a hash table.
151149
152150
```yaml
153151
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAutomationRunbookReceiver[]
@@ -163,7 +161,6 @@ Accept wildcard characters: False
163161
164162
### -AzureAppPushReceiver
165163
The list of AzureAppPush receivers that are part of this action group.
166-
To construct, see NOTES section for AZUREAPPPUSHRECEIVER properties and create a hash table.
167164
168165
```yaml
169166
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureAppPushReceiver[]
@@ -179,7 +176,6 @@ Accept wildcard characters: False
179176
180177
### -AzureFunctionReceiver
181178
The list of azure function receivers that are part of this action group.
182-
To construct, see NOTES section for AZUREFUNCTIONRECEIVER properties and create a hash table.
183179
184180
```yaml
185181
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureFunctionReceiver[]
@@ -211,7 +207,6 @@ Accept wildcard characters: False
211207
212208
### -EmailReceiver
213209
The list of email receivers that are part of this action group.
214-
To construct, see NOTES section for EMAILRECEIVER properties and create a hash table.
215210
216211
```yaml
217212
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEmailReceiver[]
@@ -243,7 +238,6 @@ Accept wildcard characters: False
243238
244239
### -EventHubReceiver
245240
The list of event hub receivers that are part of this action group.
246-
To construct, see NOTES section for EVENTHUBRECEIVER properties and create a hash table.
247241
248242
```yaml
249243
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEventHubReceiver[]
@@ -275,7 +269,6 @@ Accept wildcard characters: False
275269
276270
### -InputObject
277271
Identity Parameter
278-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
279272
280273
```yaml
281274
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity
@@ -291,7 +284,6 @@ Accept wildcard characters: False
291284
292285
### -ItsmReceiver
293286
The list of ITSM receivers that are part of this action group.
294-
To construct, see NOTES section for ITSMRECEIVER properties and create a hash table.
295287
296288
```yaml
297289
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IItsmReceiver[]
@@ -352,7 +344,6 @@ Accept wildcard characters: False
352344
353345
### -LogicAppReceiver
354346
The list of logic app receivers that are part of this action group.
355-
To construct, see NOTES section for LOGICAPPRECEIVER properties and create a hash table.
356347
357348
```yaml
358349
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ILogicAppReceiver[]
@@ -399,7 +390,6 @@ Accept wildcard characters: False
399390
400391
### -SmsReceiver
401392
The list of SMS receivers that are part of this action group.
402-
To construct, see NOTES section for SMSRECEIVER properties and create a hash table.
403393
404394
```yaml
405395
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ISmsReceiver[]
@@ -445,7 +435,6 @@ Accept wildcard characters: False
445435
446436
### -VoiceReceiver
447437
The list of voice receivers that are part of this action group.
448-
To construct, see NOTES section for VOICERECEIVER properties and create a hash table.
449438
450439
```yaml
451440
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IVoiceReceiver[]
@@ -461,7 +450,6 @@ Accept wildcard characters: False
461450
462451
### -WebhookReceiver
463452
The list of webhook receivers that are part of this action group.
464-
To construct, see NOTES section for WEBHOOKRECEIVER properties and create a hash table.
465453
466454
```yaml
467455
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IWebhookReceiver[]

src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Accept wildcard characters: False
5656
5757
### -InputObject
5858
Identity Parameter
59-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
6059
6160
```yaml
6261
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity

src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Update-AzActionGroup -Name <String> -ResourceGroupName <String> [-SubscriptionId
1818
[-ArmRoleReceiver <IArmRoleReceiver[]>] [-AutomationRunbookReceiver <IAutomationRunbookReceiver[]>]
1919
[-AzureAppPushReceiver <IAzureAppPushReceiver[]>] [-AzureFunctionReceiver <IAzureFunctionReceiver[]>]
2020
[-EmailReceiver <IEmailReceiver[]>] [-Enabled] [-EventHubReceiver <IEventHubReceiver[]>]
21-
[-GroupShortName <String>] [-ItsmReceiver <IItsmReceiver[]>] [-Location <String>]
22-
[-LogicAppReceiver <ILogicAppReceiver[]>] [-SmsReceiver <ISmsReceiver[]>] [-Tag <Hashtable>]
23-
[-VoiceReceiver <IVoiceReceiver[]>] [-WebhookReceiver <IWebhookReceiver[]>] [-DefaultProfile <PSObject>]
24-
[-Confirm] [-WhatIf] [<CommonParameters>]
21+
[-GroupShortName <String>] [-ItsmReceiver <IItsmReceiver[]>] [-LogicAppReceiver <ILogicAppReceiver[]>]
22+
[-SmsReceiver <ISmsReceiver[]>] [-Tag <Hashtable>] [-VoiceReceiver <IVoiceReceiver[]>]
23+
[-WebhookReceiver <IWebhookReceiver[]>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
24+
[<CommonParameters>]
2525
```
2626

2727
### UpdateViaIdentityExpanded
@@ -30,9 +30,9 @@ Update-AzActionGroup -InputObject <IActionGroupIdentity> [-ArmRoleReceiver <IArm
3030
[-AutomationRunbookReceiver <IAutomationRunbookReceiver[]>] [-AzureAppPushReceiver <IAzureAppPushReceiver[]>]
3131
[-AzureFunctionReceiver <IAzureFunctionReceiver[]>] [-EmailReceiver <IEmailReceiver[]>] [-Enabled]
3232
[-EventHubReceiver <IEventHubReceiver[]>] [-GroupShortName <String>] [-ItsmReceiver <IItsmReceiver[]>]
33-
[-Location <String>] [-LogicAppReceiver <ILogicAppReceiver[]>] [-SmsReceiver <ISmsReceiver[]>]
34-
[-Tag <Hashtable>] [-VoiceReceiver <IVoiceReceiver[]>] [-WebhookReceiver <IWebhookReceiver[]>]
35-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
33+
[-LogicAppReceiver <ILogicAppReceiver[]>] [-SmsReceiver <ISmsReceiver[]>] [-Tag <Hashtable>]
34+
[-VoiceReceiver <IVoiceReceiver[]>] [-WebhookReceiver <IWebhookReceiver[]>] [-DefaultProfile <PSObject>]
35+
[-Confirm] [-WhatIf] [<CommonParameters>]
3636
```
3737

3838
## DESCRIPTION
@@ -135,7 +135,6 @@ The final command updates specified action group with action group object.
135135
### -ArmRoleReceiver
136136
The list of ARM role receivers that are part of this action group.
137137
Roles are Azure RBAC roles and only built-in roles are supported.
138-
To construct, see NOTES section for ARMROLERECEIVER properties and create a hash table.
139138

140139
```yaml
141140
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IArmRoleReceiver[]
@@ -151,7 +150,6 @@ Accept wildcard characters: False
151150
152151
### -AutomationRunbookReceiver
153152
The list of AutomationRunbook receivers that are part of this action group.
154-
To construct, see NOTES section for AUTOMATIONRUNBOOKRECEIVER properties and create a hash table.
155153
156154
```yaml
157155
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAutomationRunbookReceiver[]
@@ -167,7 +165,6 @@ Accept wildcard characters: False
167165
168166
### -AzureAppPushReceiver
169167
The list of AzureAppPush receivers that are part of this action group.
170-
To construct, see NOTES section for AZUREAPPPUSHRECEIVER properties and create a hash table.
171168
172169
```yaml
173170
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureAppPushReceiver[]
@@ -183,7 +180,6 @@ Accept wildcard characters: False
183180
184181
### -AzureFunctionReceiver
185182
The list of azure function receivers that are part of this action group.
186-
To construct, see NOTES section for AZUREFUNCTIONRECEIVER properties and create a hash table.
187183
188184
```yaml
189185
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IAzureFunctionReceiver[]
@@ -215,7 +211,6 @@ Accept wildcard characters: False
215211
216212
### -EmailReceiver
217213
The list of email receivers that are part of this action group.
218-
To construct, see NOTES section for EMAILRECEIVER properties and create a hash table.
219214
220215
```yaml
221216
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEmailReceiver[]
@@ -247,7 +242,6 @@ Accept wildcard characters: False
247242
248243
### -EventHubReceiver
249244
The list of event hub receivers that are part of this action group.
250-
To construct, see NOTES section for EVENTHUBRECEIVER properties and create a hash table.
251245
252246
```yaml
253247
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IEventHubReceiver[]
@@ -279,7 +273,6 @@ Accept wildcard characters: False
279273
280274
### -InputObject
281275
Identity Parameter
282-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
283276
284277
```yaml
285278
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IActionGroupIdentity
@@ -295,7 +288,6 @@ Accept wildcard characters: False
295288
296289
### -ItsmReceiver
297290
The list of ITSM receivers that are part of this action group.
298-
To construct, see NOTES section for ITSMRECEIVER properties and create a hash table.
299291
300292
```yaml
301293
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IItsmReceiver[]
@@ -309,24 +301,8 @@ Accept pipeline input: False
309301
Accept wildcard characters: False
310302
```
311303
312-
### -Location
313-
Resource location
314-
315-
```yaml
316-
Type: System.String
317-
Parameter Sets: (All)
318-
Aliases:
319-
320-
Required: False
321-
Position: Named
322-
Default value: None
323-
Accept pipeline input: False
324-
Accept wildcard characters: False
325-
```
326-
327304
### -LogicAppReceiver
328305
The list of logic app receivers that are part of this action group.
329-
To construct, see NOTES section for LOGICAPPRECEIVER properties and create a hash table.
330306
331307
```yaml
332308
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ILogicAppReceiver[]
@@ -373,7 +349,6 @@ Accept wildcard characters: False
373349
374350
### -SmsReceiver
375351
The list of SMS receivers that are part of this action group.
376-
To construct, see NOTES section for SMSRECEIVER properties and create a hash table.
377352
378353
```yaml
379354
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.ISmsReceiver[]
@@ -419,7 +394,6 @@ Accept wildcard characters: False
419394
420395
### -VoiceReceiver
421396
The list of voice receivers that are part of this action group.
422-
To construct, see NOTES section for VOICERECEIVER properties and create a hash table.
423397
424398
```yaml
425399
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IVoiceReceiver[]
@@ -435,7 +409,6 @@ Accept wildcard characters: False
435409
436410
### -WebhookReceiver
437411
The list of webhook receivers that are part of this action group.
438-
To construct, see NOTES section for WEBHOOKRECEIVER properties and create a hash table.
439412
440413
```yaml
441414
Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActionGroup.Models.IWebhookReceiver[]

src/Monitor/ActionGroup.Autorest/test/loadEnv.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
2525
$env = @{}
2626
if (Test-Path -Path $envFilePath) {
2727
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
28-
$PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant}
28+
$PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant}
2929
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
param()
2+
if ($env:AzPSAutorestTestPlaybackMode) {
3+
$loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1'
4+
. ($loadEnvPath)
5+
return $env.SubscriptionId
6+
}
7+
return (Get-AzContext).Subscription.Id

src/Monitor/ActivityLogAlert.Autorest/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
This directory contains the PowerShell module for the ActivityLogAlert service.
44

55
---
6-
## Status
7-
[![Az.ActivityLogAlert](https://img.shields.io/powershellgallery/v/Az.ActivityLogAlert.svg?style=flat-square&label=Az.ActivityLogAlert "Az.ActivityLogAlert")](https://www.powershellgallery.com/packages/Az.ActivityLogAlert/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all

src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ Get activity log alert by name
6464
## PARAMETERS
6565

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

6970
```yaml
7071
Type: System.Management.Automation.PSObject
@@ -153,18 +154,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
153154
154155
## NOTES
155156
156-
ALIASES
157-
158-
COMPLEX PARAMETER PROPERTIES
159-
160-
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.
161-
162-
163-
`INPUTOBJECT <IActivityLogAlertIdentity>`: Identity Parameter
164-
- `[ActivityLogAlertName <String>]`: The name of the Activity Log Alert rule.
165-
- `[Id <String>]`: Resource identity path
166-
- `[ResourceGroupName <String>]`: The name of the resource group. The name is case insensitive.
167-
- `[SubscriptionId <String>]`: The ID of the target subscription.
168-
169157
## RELATED LINKS
170158

src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Create a new Activity Log Alert rule or update an existing one.
2626

2727
### Example 1: Create activity log alert
2828
```powershell
29-
$scope = "subscriptions/"+(Get-AzContext).Subscription.ID
29+
$scope = "/subscriptions/"+(Get-AzContext).Subscription.ID
3030
$actiongroup=New-AzActivityLogAlertActionGroupObject -Id $ActionGroupResourceId -WebhookProperty @{"sampleWebhookProperty"="SamplePropertyValue"}
3131
$condition1=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Administrative -Field category
3232
$condition2=New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -Equal Error -Field level
@@ -256,26 +256,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
256256
257257
## NOTES
258258
259-
ALIASES
260-
261-
COMPLEX PARAMETER PROPERTIES
262-
263-
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.
264-
265-
266-
`ACTION <IActionGroup[]>`: The list of the Action Groups. To construct, see NOTES section for ACTIONGROUP properties and create a hash table.
267-
- `Id <String>`: The resource ID of the Action Group. This cannot be null or empty.
268-
- `[WebhookProperty <IActionGroupWebhookProperties>]`: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
269-
- `[(Any) <String>]`: This indicates any property can be added to this object.
270-
271-
`CONDITION <IAlertRuleAnyOfOrLeafCondition[]>`: The list of Activity Log Alert rule conditions. To construct, see NOTES section for CONDITIONALLOF properties and create a hash table.
272-
- `[ContainsAny <String[]>]`: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
273-
- `[Equal <String>]`: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
274-
- `[Field <String>]`: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
275-
- `[AnyOf <IAlertRuleLeafCondition[]>]`: An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
276-
- `[ContainsAny <String[]>]`: The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
277-
- `[Equal <String>]`: The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
278-
- `[Field <String>]`: The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
279-
280259
## RELATED LINKS
281260

src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
7575
7676
## NOTES
7777
78-
ALIASES
79-
80-
COMPLEX PARAMETER PROPERTIES
81-
82-
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.
83-
84-
85-
`WEBHOOKPROPERTY <IActionGroupWebhookProperties>`: the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
86-
- `[(Any) <String>]`: This indicates any property can be added to this object.
87-
8878
## RELATED LINKS
8979

0 commit comments

Comments
 (0)