Skip to content

Commit a3dff76

Browse files
[skip ci] Archive 954349e (Azure#28845)
1 parent 69cdf49 commit a3dff76

File tree

123 files changed

+6780
-1417
lines changed

Some content is hidden

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

123 files changed

+6780
-1417
lines changed

generated/Monitor/ActivityLogAlert.Autorest/Az.ActivityLogAlert.format.ps1xml

Lines changed: 40 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,65 @@
22
<Configuration>
33
<ViewDefinitions>
44
<View>
5-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActivityLogAlertIdentity</Name>
5+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroupWebhookProperties</Name>
66
<ViewSelectedBy>
7-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActivityLogAlertIdentity</TypeName>
7+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActionGroupWebhookProperties#Multiple</TypeName>
88
</ViewSelectedBy>
99
<TableControl>
1010
<TableHeaders>
1111
<TableColumnHeader>
12-
<Label>ActivityLogAlertName</Label>
13-
</TableColumnHeader>
14-
<TableColumnHeader>
15-
<Label>ResourceGroupName</Label>
16-
</TableColumnHeader>
17-
<TableColumnHeader>
18-
<Label>SubscriptionId</Label>
12+
<Label>Item</Label>
1913
</TableColumnHeader>
2014
</TableHeaders>
2115
<TableRowEntries>
2216
<TableRowEntry>
2317
<TableColumnItems>
2418
<TableColumnItem>
25-
<PropertyName>ActivityLogAlertName</PropertyName>
26-
</TableColumnItem>
27-
<TableColumnItem>
28-
<PropertyName>ResourceGroupName</PropertyName>
29-
</TableColumnItem>
30-
<TableColumnItem>
31-
<PropertyName>SubscriptionId</PropertyName>
19+
<PropertyName>Item</PropertyName>
3220
</TableColumnItem>
3321
</TableColumnItems>
3422
</TableRowEntry>
3523
</TableRowEntries>
3624
</TableControl>
3725
</View>
3826
<View>
39-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroupWebhookProperties</Name>
27+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActivityLogAlertIdentity</Name>
4028
<ViewSelectedBy>
41-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActionGroupWebhookProperties</TypeName>
29+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActivityLogAlertIdentity#Multiple</TypeName>
4230
</ViewSelectedBy>
4331
<TableControl>
4432
<TableHeaders>
4533
<TableColumnHeader>
46-
<Label>Item</Label>
34+
<Label>ActivityLogAlertName</Label>
35+
</TableColumnHeader>
36+
<TableColumnHeader>
37+
<Label>ResourceGroupName</Label>
38+
</TableColumnHeader>
39+
<TableColumnHeader>
40+
<Label>SubscriptionId</Label>
4741
</TableColumnHeader>
4842
</TableHeaders>
4943
<TableRowEntries>
5044
<TableRowEntry>
5145
<TableColumnItems>
5246
<TableColumnItem>
53-
<PropertyName>Item</PropertyName>
47+
<PropertyName>ActivityLogAlertName</PropertyName>
48+
</TableColumnItem>
49+
<TableColumnItem>
50+
<PropertyName>ResourceGroupName</PropertyName>
51+
</TableColumnItem>
52+
<TableColumnItem>
53+
<PropertyName>SubscriptionId</PropertyName>
5454
</TableColumnItem>
5555
</TableColumnItems>
5656
</TableRowEntry>
5757
</TableRowEntries>
5858
</TableControl>
5959
</View>
6060
<View>
61-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActivityLogAlertResource</Name>
61+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActivityLogAlertResource</Name>
6262
<ViewSelectedBy>
63-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActivityLogAlertResource</TypeName>
63+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ActivityLogAlertResource#Multiple</TypeName>
6464
</ViewSelectedBy>
6565
<TableControl>
6666
<TableHeaders>
@@ -92,15 +92,12 @@
9292
</TableControl>
9393
</View>
9494
<View>
95-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition</Name>
95+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition</Name>
9696
<ViewSelectedBy>
97-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition</TypeName>
97+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleAnyOfOrLeafCondition#Multiple</TypeName>
9898
</ViewSelectedBy>
9999
<TableControl>
100100
<TableHeaders>
101-
<TableColumnHeader>
102-
<Label>ContainsAny</Label>
103-
</TableColumnHeader>
104101
<TableColumnHeader>
105102
<Label>Equal</Label>
106103
</TableColumnHeader>
@@ -111,9 +108,6 @@
111108
<TableRowEntries>
112109
<TableRowEntry>
113110
<TableColumnItems>
114-
<TableColumnItem>
115-
<PropertyName>ContainsAny</PropertyName>
116-
</TableColumnItem>
117111
<TableColumnItem>
118112
<PropertyName>Equal</PropertyName>
119113
</TableColumnItem>
@@ -126,15 +120,12 @@
126120
</TableControl>
127121
</View>
128122
<View>
129-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition</Name>
123+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition</Name>
130124
<ViewSelectedBy>
131-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition</TypeName>
125+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleLeafCondition#Multiple</TypeName>
132126
</ViewSelectedBy>
133127
<TableControl>
134128
<TableHeaders>
135-
<TableColumnHeader>
136-
<Label>ContainsAny</Label>
137-
</TableColumnHeader>
138129
<TableColumnHeader>
139130
<Label>Equal</Label>
140131
</TableColumnHeader>
@@ -145,9 +136,6 @@
145136
<TableRowEntries>
146137
<TableRowEntry>
147138
<TableColumnItems>
148-
<TableColumnItem>
149-
<PropertyName>ContainsAny</PropertyName>
150-
</TableColumnItem>
151139
<TableColumnItem>
152140
<PropertyName>Equal</PropertyName>
153141
</TableColumnItem>
@@ -160,9 +148,9 @@
160148
</TableControl>
161149
</View>
162150
<View>
163-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleList</Name>
151+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleList</Name>
164152
<ViewSelectedBy>
165-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleList</TypeName>
153+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleList#Multiple</TypeName>
166154
</ViewSelectedBy>
167155
<TableControl>
168156
<TableHeaders>
@@ -182,9 +170,9 @@
182170
</TableControl>
183171
</View>
184172
<View>
185-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRulePatchObjectTags</Name>
173+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRulePatchObjectTags</Name>
186174
<ViewSelectedBy>
187-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRulePatchObjectTags</TypeName>
175+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRulePatchObjectTags#Multiple</TypeName>
188176
</ViewSelectedBy>
189177
<TableControl>
190178
<TableHeaders>
@@ -204,9 +192,9 @@
204192
</TableControl>
205193
</View>
206194
<View>
207-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRulePatchProperties</Name>
195+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRulePatchProperties</Name>
208196
<ViewSelectedBy>
209-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRulePatchProperties</TypeName>
197+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRulePatchProperties#Multiple</TypeName>
210198
</ViewSelectedBy>
211199
<TableControl>
212200
<TableHeaders>
@@ -226,9 +214,9 @@
226214
</TableControl>
227215
</View>
228216
<View>
229-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleProperties</Name>
217+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleProperties</Name>
230218
<ViewSelectedBy>
231-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleProperties</TypeName>
219+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AlertRuleProperties#Multiple</TypeName>
232220
</ViewSelectedBy>
233221
<TableControl>
234222
<TableHeaders>
@@ -238,9 +226,6 @@
238226
<TableColumnHeader>
239227
<Label>Enabled</Label>
240228
</TableColumnHeader>
241-
<TableColumnHeader>
242-
<Label>Scope</Label>
243-
</TableColumnHeader>
244229
</TableHeaders>
245230
<TableRowEntries>
246231
<TableRowEntry>
@@ -251,18 +236,15 @@
251236
<TableColumnItem>
252237
<PropertyName>Enabled</PropertyName>
253238
</TableColumnItem>
254-
<TableColumnItem>
255-
<PropertyName>Scope</PropertyName>
256-
</TableColumnItem>
257239
</TableColumnItems>
258240
</TableRowEntry>
259241
</TableRowEntries>
260242
</TableControl>
261243
</View>
262244
<View>
263-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AzureResource</Name>
245+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AzureResource</Name>
264246
<ViewSelectedBy>
265-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AzureResource</TypeName>
247+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AzureResource#Multiple</TypeName>
266248
</ViewSelectedBy>
267249
<TableControl>
268250
<TableHeaders>
@@ -288,9 +270,9 @@
288270
</TableControl>
289271
</View>
290272
<View>
291-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AzureResourceTags</Name>
273+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AzureResourceTags</Name>
292274
<ViewSelectedBy>
293-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AzureResourceTags</TypeName>
275+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.AzureResourceTags#Multiple</TypeName>
294276
</ViewSelectedBy>
295277
<TableControl>
296278
<TableHeaders>
@@ -310,9 +292,9 @@
310292
</TableControl>
311293
</View>
312294
<View>
313-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ErrorResponse</Name>
295+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ErrorResponse</Name>
314296
<ViewSelectedBy>
315-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ErrorResponse</TypeName>
297+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.ErrorResponse#Multiple</TypeName>
316298
</ViewSelectedBy>
317299
<TableControl>
318300
<TableHeaders>

generated/Monitor/ActivityLogAlert.Autorest/Az.ActivityLogAlert.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.ActivityLogAlert.private.dll'
1313
FormatsToProcess = './Az.ActivityLogAlert.format.ps1xml'
14-
FunctionsToExport = 'Get-AzActivityLogAlert', 'New-AzActivityLogAlert', 'New-AzActivityLogAlertActionGroupObject', 'New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject', 'New-AzActivityLogAlertAlertRuleLeafConditionObject', 'Remove-AzActivityLogAlert', 'Update-AzActivityLogAlert', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzActivityLogAlert', 'New-AzActivityLogAlert', 'New-AzActivityLogAlertActionGroupObject', 'New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject', 'New-AzActivityLogAlertAlertRuleLeafConditionObject', 'Remove-AzActivityLogAlert', 'Update-AzActivityLogAlert'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ActivityLogAlert'

generated/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ActivityLogAlert")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.3")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.3")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

generated/Monitor/ActivityLogAlert.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

generated/Monitor/ActivityLogAlert.Autorest/exports/Get-AzActivityLogAlert.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzActivityLogAlert -ResourceGroupName $rg-name -Name $alert-name
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource
32+
Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -44,7 +44,7 @@ INPUTOBJECT <IActivityLogAlertIdentity>: Identity Parameter
4444
https://learn.microsoft.com/powershell/module/az.monitor/get-azactivitylogalert
4545
#>
4646
function Get-AzActivityLogAlert {
47-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource])]
47+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertResource])]
4848
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
4949
param(
5050
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -75,7 +75,6 @@ param(
7575
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Category('Path')]
7676
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.IActivityLogAlertIdentity]
7777
# Identity Parameter
78-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
7978
${InputObject},
8079

8180
[Parameter()]
@@ -134,6 +133,15 @@ begin {
134133
$PSBoundParameters['OutBuffer'] = 1
135134
}
136135
$parameterSet = $PSCmdlet.ParameterSetName
136+
137+
$testPlayback = $false
138+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
139+
140+
$context = Get-AzContext
141+
if (-not $context -and -not $testPlayback) {
142+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
143+
exit
144+
}
137145

138146
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
139147
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -158,9 +166,7 @@ begin {
158166
List = 'Az.ActivityLogAlert.private\Get-AzActivityLogAlert_List';
159167
List1 = 'Az.ActivityLogAlert.private\Get-AzActivityLogAlert_List1';
160168
}
161-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
162-
$testPlayback = $false
163-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
169+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
164170
if ($testPlayback) {
165171
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
166172
} else {
@@ -174,6 +180,9 @@ begin {
174180
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
175181
}
176182
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
183+
if ($wrappedCmd -eq $null) {
184+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
185+
}
177186
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
178187
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
179188
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)