Skip to content

Commit 92bab38

Browse files
Migrate SecurityInsights from generation to main (#20437)
* Move SecurityInsights to main * Update Changelog.md Co-authored-by: Yunchi Wang <[email protected]>
1 parent d412538 commit 92bab38

File tree

177 files changed

+380
-443
lines changed

Some content is hidden

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

177 files changed

+380
-443
lines changed

src/SecurityInsights/Az.SecurityInsights.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 10/15/2022
6+
# Generated on: 12/14/2022
77
#
88

99
@{
@@ -141,7 +141,7 @@ PrivateData = @{
141141
# IconUri = ''
142142

143143
# ReleaseNotes of this module
144-
ReleaseNotes = '* Changed ''Az.SecurityInsights'' to autorest-based module'
144+
# ReleaseNotes = ''
145145

146146
# Prerelease string of this module
147147
# Prerelease = ''

src/SecurityInsights/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Fixed for `Update-AzSentinelAlertRule` fails when using `-TriggerThreshold 0` [#20417]
2223

2324
## Version 3.0.0
2425
* Changed `Az.SecurityInsights` to autorest-based module
Lines changed: 32 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,52 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.6.30114.105
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{F0B20F14-EB21-46E6-81F0-EA72D30E5782}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{4209B75D-7CB3-400C-86B9-7530CF7F063F}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{61E77978-6BE5-4CAE-A694-9DC70D663522}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{12F3A954-2D0A-4682-9DDF-2BC48CB97692}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0F827257-FEE4-4D37-B62B-3C481750AA5E}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{1201E4B8-D931-4673-B85C-A4E0FE42B39D}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{6F021749-2719-4047-B46E-F26C3C248777}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{D73CB203-804F-40FC-A0B4-D4454EFE607B}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SecurityInsights", "Az.SecurityInsights.csproj", "{4601021D-514D-46BF-9A75-9302001F2D88}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SecurityInsights", "Az.SecurityInsights.csproj", "{399464BF-7405-45B6-B5BA-896ED67A1F56}"
1717
EndProject
1818
Global
1919
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2020
Debug|Any CPU = Debug|Any CPU
21-
Debug|x64 = Debug|x64
22-
Debug|x86 = Debug|x86
2321
Release|Any CPU = Release|Any CPU
24-
Release|x64 = Release|x64
25-
Release|x86 = Release|x86
2622
EndGlobalSection
2723
GlobalSection(SolutionProperties) = preSolution
2824
HideSolutionNode = FALSE
2925
EndGlobalSection
3026
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Debug|x64.ActiveCfg = Debug|Any CPU
34-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Debug|x64.Build.0 = Debug|Any CPU
35-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Debug|x86.ActiveCfg = Debug|Any CPU
36-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Debug|x86.Build.0 = Debug|Any CPU
37-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Release|x64.ActiveCfg = Release|Any CPU
40-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Release|x64.Build.0 = Release|Any CPU
41-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Release|x86.ActiveCfg = Release|Any CPU
42-
{F0B20F14-EB21-46E6-81F0-EA72D30E5782}.Release|x86.Build.0 = Release|Any CPU
43-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Debug|x64.Build.0 = Debug|Any CPU
47-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Debug|x86.Build.0 = Debug|Any CPU
49-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Release|x64.ActiveCfg = Release|Any CPU
52-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Release|x64.Build.0 = Release|Any CPU
53-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Release|x86.ActiveCfg = Release|Any CPU
54-
{7F13AF81-F798-4DBA-A06D-CB313ADF7A49}.Release|x86.Build.0 = Release|Any CPU
55-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Debug|x64.Build.0 = Debug|Any CPU
59-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Debug|x86.ActiveCfg = Debug|Any CPU
60-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Debug|x86.Build.0 = Debug|Any CPU
61-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
62-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Release|x64.ActiveCfg = Release|Any CPU
64-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Release|x64.Build.0 = Release|Any CPU
65-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Release|x86.ActiveCfg = Release|Any CPU
66-
{ACA4E9FF-867E-4E70-8A22-822A95D08DC2}.Release|x86.Build.0 = Release|Any CPU
67-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Debug|x64.ActiveCfg = Debug|Any CPU
70-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Debug|x64.Build.0 = Debug|Any CPU
71-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Debug|x86.ActiveCfg = Debug|Any CPU
72-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Debug|x86.Build.0 = Debug|Any CPU
73-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
74-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Release|Any CPU.Build.0 = Release|Any CPU
75-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Release|x64.ActiveCfg = Release|Any CPU
76-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Release|x64.Build.0 = Release|Any CPU
77-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Release|x86.ActiveCfg = Release|Any CPU
78-
{0F827257-FEE4-4D37-B62B-3C481750AA5E}.Release|x86.Build.0 = Release|Any CPU
79-
{6F021749-2719-4047-B46E-F26C3C248777}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80-
{6F021749-2719-4047-B46E-F26C3C248777}.Debug|Any CPU.Build.0 = Debug|Any CPU
81-
{6F021749-2719-4047-B46E-F26C3C248777}.Debug|x64.ActiveCfg = Debug|Any CPU
82-
{6F021749-2719-4047-B46E-F26C3C248777}.Debug|x64.Build.0 = Debug|Any CPU
83-
{6F021749-2719-4047-B46E-F26C3C248777}.Debug|x86.ActiveCfg = Debug|Any CPU
84-
{6F021749-2719-4047-B46E-F26C3C248777}.Debug|x86.Build.0 = Debug|Any CPU
85-
{6F021749-2719-4047-B46E-F26C3C248777}.Release|Any CPU.ActiveCfg = Release|Any CPU
86-
{6F021749-2719-4047-B46E-F26C3C248777}.Release|Any CPU.Build.0 = Release|Any CPU
87-
{6F021749-2719-4047-B46E-F26C3C248777}.Release|x64.ActiveCfg = Release|Any CPU
88-
{6F021749-2719-4047-B46E-F26C3C248777}.Release|x64.Build.0 = Release|Any CPU
89-
{6F021749-2719-4047-B46E-F26C3C248777}.Release|x86.ActiveCfg = Release|Any CPU
90-
{6F021749-2719-4047-B46E-F26C3C248777}.Release|x86.Build.0 = Release|Any CPU
91-
{4601021D-514D-46BF-9A75-9302001F2D88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92-
{4601021D-514D-46BF-9A75-9302001F2D88}.Debug|Any CPU.Build.0 = Debug|Any CPU
93-
{4601021D-514D-46BF-9A75-9302001F2D88}.Debug|x64.ActiveCfg = Debug|Any CPU
94-
{4601021D-514D-46BF-9A75-9302001F2D88}.Debug|x64.Build.0 = Debug|Any CPU
95-
{4601021D-514D-46BF-9A75-9302001F2D88}.Debug|x86.ActiveCfg = Debug|Any CPU
96-
{4601021D-514D-46BF-9A75-9302001F2D88}.Debug|x86.Build.0 = Debug|Any CPU
97-
{4601021D-514D-46BF-9A75-9302001F2D88}.Release|Any CPU.ActiveCfg = Release|Any CPU
98-
{4601021D-514D-46BF-9A75-9302001F2D88}.Release|Any CPU.Build.0 = Release|Any CPU
99-
{4601021D-514D-46BF-9A75-9302001F2D88}.Release|x64.ActiveCfg = Release|Any CPU
100-
{4601021D-514D-46BF-9A75-9302001F2D88}.Release|x64.Build.0 = Release|Any CPU
101-
{4601021D-514D-46BF-9A75-9302001F2D88}.Release|x86.ActiveCfg = Release|Any CPU
102-
{4601021D-514D-46BF-9A75-9302001F2D88}.Release|x86.Build.0 = Release|Any CPU
27+
{4209B75D-7CB3-400C-86B9-7530CF7F063F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{4209B75D-7CB3-400C-86B9-7530CF7F063F}.Debug|Any CPU.Build.0 = Debug|Any CPU
29+
{4209B75D-7CB3-400C-86B9-7530CF7F063F}.Release|Any CPU.ActiveCfg = Release|Any CPU
30+
{4209B75D-7CB3-400C-86B9-7530CF7F063F}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{61E77978-6BE5-4CAE-A694-9DC70D663522}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32+
{61E77978-6BE5-4CAE-A694-9DC70D663522}.Debug|Any CPU.Build.0 = Debug|Any CPU
33+
{61E77978-6BE5-4CAE-A694-9DC70D663522}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{61E77978-6BE5-4CAE-A694-9DC70D663522}.Release|Any CPU.Build.0 = Release|Any CPU
35+
{12F3A954-2D0A-4682-9DDF-2BC48CB97692}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36+
{12F3A954-2D0A-4682-9DDF-2BC48CB97692}.Debug|Any CPU.Build.0 = Debug|Any CPU
37+
{12F3A954-2D0A-4682-9DDF-2BC48CB97692}.Release|Any CPU.ActiveCfg = Release|Any CPU
38+
{12F3A954-2D0A-4682-9DDF-2BC48CB97692}.Release|Any CPU.Build.0 = Release|Any CPU
39+
{1201E4B8-D931-4673-B85C-A4E0FE42B39D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{1201E4B8-D931-4673-B85C-A4E0FE42B39D}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{1201E4B8-D931-4673-B85C-A4E0FE42B39D}.Release|Any CPU.ActiveCfg = Release|Any CPU
42+
{1201E4B8-D931-4673-B85C-A4E0FE42B39D}.Release|Any CPU.Build.0 = Release|Any CPU
43+
{D73CB203-804F-40FC-A0B4-D4454EFE607B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{D73CB203-804F-40FC-A0B4-D4454EFE607B}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{D73CB203-804F-40FC-A0B4-D4454EFE607B}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{D73CB203-804F-40FC-A0B4-D4454EFE607B}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{399464BF-7405-45B6-B5BA-896ED67A1F56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{399464BF-7405-45B6-B5BA-896ED67A1F56}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{399464BF-7405-45B6-B5BA-896ED67A1F56}.Release|Any CPU.ActiveCfg = Release|Any CPU
50+
{399464BF-7405-45B6-B5BA-896ED67A1F56}.Release|Any CPU.Build.0 = Release|Any CPU
10351
EndGlobalSection
10452
EndGlobal

src/SecurityInsights/create-model-cmdlets.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Create an in-memory object for ${ObjectType}.
158158
.Outputs
159159
${ObjectTypeWithNamespace}
160160
.Link
161-
https://docs.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
161+
https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
162162
#>
163163
function New-Az${ModulePrefix}${ObjectType}Object {
164164
[OutputType('${ObjectTypeWithNamespace}')]

src/SecurityInsights/custom/New-AzSentinelAlertRule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates or updates the alert rule.
2020
Creates or updates the alert rule.
2121
2222
.Link
23-
https://docs.microsoft.com/powershell/module/az.securityinsights/new-azsentinelalertrule
23+
https://learn.microsoft.com/powershell/module/az.securityinsights/new-azsentinelalertrule
2424
#>
2525
function New-AzSentinelAlertRule {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.AlertRule])]

src/SecurityInsights/custom/New-AzSentinelDataConnector.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates or updates the data connector.
2020
Creates or updates the data connector.
2121
2222
.Link
23-
https://docs.microsoft.com/powershell/module/az.securityinsights/new-azsentineldataconnector
23+
https://learn.microsoft.com/powershell/module/az.securityinsights/new-azsentineldataconnector
2424
#>
2525
function New-AzSentinelDataConnector {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.DataConnector])]

src/SecurityInsights/custom/New-AzSentinelEntityQuery.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates or updates the entity query.
2020
Creates or updates the entity query.
2121
2222
.Link
23-
https://docs.microsoft.com/powershell/module/az.securityinsights/new-azsentinelentityquery
23+
https://learn.microsoft.com/powershell/module/az.securityinsights/new-azsentinelentityquery
2424
#>
2525
function New-AzSentinelEntityQuery {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.CustomEntityQuery])]

src/SecurityInsights/custom/Test-AzSentinelDataConnectorCheckRequirement.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Get requirements state for a data connector type.
2020
Get requirements state for a data connector type.
2121
2222
.Link
23-
https://docs.microsoft.com/powershell/module/az.securityinsights/test-azsentineldataconnectorcheckrequirement
23+
https://learn.microsoft.com/powershell/module/az.securityinsights/test-azsentineldataconnectorcheckrequirement
2424
#>
2525
function Test-AzSentinelDataConnectorCheckRequirement {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.DataConnectorsCheckRequirements])]

src/SecurityInsights/custom/Update-AzSentinelAlertRule.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Updates the alert rule.
2020
Updates the alert rule.
2121
2222
.Link
23-
https://docs.microsoft.com/powershell/module/az.securityinsights/Update-azsentinelalertrule
23+
https://learn.microsoft.com/powershell/module/az.securityinsights/Update-azsentinelalertrule
2424
#>
2525
function Update-AzSentinelAlertRule {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.AlertRule])]
@@ -794,7 +794,7 @@ function Update-AzSentinelAlertRule {
794794
$null = $PSBoundParameters.Remove('TriggerOperator')
795795
}
796796

797-
If($PSBoundParameters['TriggerThreshold']){
797+
If($PSBoundParameters['TriggerThreshold'] -ne $null){
798798
$AlertRule.TriggerThreshold = $PSBoundParameters['TriggerThreshold']
799799
$null = $PSBoundParameters.Remove('TriggerThreshold')
800800
}
@@ -829,4 +829,4 @@ function Update-AzSentinelAlertRule {
829829
throw
830830
}
831831
}
832-
}
832+
}

src/SecurityInsights/custom/Update-AzSentinelDataConnector.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Updates the data connector.
2020
Updates the data connector.
2121
2222
.Link
23-
https://docs.microsoft.com/powershell/module/az.securityinsights/update-azsentineldataconnector
23+
https://learn.microsoft.com/powershell/module/az.securityinsights/update-azsentineldataconnector
2424
#>
2525
function Update-AzSentinelDataConnector {
2626
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.DataConnector])]

0 commit comments

Comments
 (0)