Skip to content

Commit b60bb19

Browse files
Merge branch 'Azure:master' into master
2 parents 3a50639 + 06a2d48 commit b60bb19

File tree

613 files changed

+79655
-14285
lines changed

Some content is hidden

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

613 files changed

+79655
-14285
lines changed

.script/package-automation/hyperlink-validation.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ try {
4242
}
4343
}
4444
catch {
45-
Write-Host "Error occured in ReadFileContent. Error details : $_"
45+
Write-Host "Error occurred in ReadFileContent. Error details : $_"
4646
return $null;
4747
}
4848
}
@@ -111,7 +111,7 @@ foreach($item in $filteredFiles)
111111
$exclusionList = @(".py$",".png$",".jpg$",".jpeg$",".conf$", ".svg$", ".html$", ".ps1$", ".psd1$", "requirements.txt$", "host.json$", "proxies.json$", "/function.json$", ".xml$", ".zip$", ".md$")
112112
$filterOutExclusionList = $finalFilteredFiles | Where-Object { $_ -notmatch ($exclusionList -join '|') }
113113

114-
$exclusionDomainList = @("&&sudo","schema.management","schemas.microsoft","twitter.com", "s-platform.api.opendns.com", "github.com", "azure.microsoft.com")
114+
$exclusionDomainList = @("&&sudo","schema.management","schemas.microsoft","twitter.com", "s-platform.api.opendns.com", "github.com", "azure.microsoft.com", "sts.windows.net")
115115

116116
foreach ($currentFile in $filterOutExclusionList)
117117
{
@@ -156,6 +156,6 @@ if($global:counterInvalid -gt 0)
156156
exit 1
157157
}
158158
} catch {
159-
Write-Host "Error Occured in Hyperlink Validation file!. Error Details: $_"
159+
Write-Host "Error Occurred in Hyperlink Validation file!. Error Details: $_"
160160
exit 1
161161
}

.script/package-automation/validateFieldTypes.ps1

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,23 @@ try {
7474
$resourceContent = $mainTemplateFileContent.resources | Where-Object { $_.type -eq 'Microsoft.OperationalInsights/workspaces/providers/contentTemplates' }
7575

7676
if ($null -ne $resourceContent -and $resourceContent.Count -gt 0) {
77-
foreach($rc in $resourceContent) {
78-
$rcParam = $rc.properties.mainTemplate.parameters
79-
$resourceInvalidFieldsList = @();
80-
$resourceInvalidFieldsList = GetInvalidFields -resourceParameterProp $rcParam
81-
82-
if ($resourceInvalidFieldsList.Count -gt 0) {
83-
$hasInvalidResourceParameterType = $true
84-
Write-Host "Invalid resource level parameters field(s) type. Please update the 'type' value for below given list to 'securestring'"
85-
foreach ($item in $resourceInvalidFieldsList) {
86-
Write-Host "--> $item"
87-
}
77+
$resourceLevelInvalidFields = @();
78+
foreach ($rc in $resourceContent) {
79+
$parameters = $rc.properties.mainTemplate.parameters.PSObject.Properties
80+
foreach ($param in $parameters) {
81+
$type = $param.Value.type.ToLower()
82+
83+
if ($type -ne 'securestring' -and $type -ne 'object') {
84+
$resourceLevelInvalidFields += $param.Name
85+
}
86+
}
87+
}
88+
89+
if ($resourceLevelInvalidFields.Count -gt 0) {
90+
$hasInvalidResourceParameterType = $true
91+
Write-Host "Invalid resource level parameters field(s) type. Please update the 'type' value for below given list to 'securestring' or 'object'"
92+
foreach ($item in $resourceLevelInvalidFields) {
93+
Write-Host "--> $item"
8894
}
8995
}
9096
}
@@ -95,6 +101,6 @@ try {
95101
}
96102
}
97103
catch {
98-
Write-Host "Error occured in validateFieldTypes file. Error Details : $_"
104+
Write-Host "Error occurred in validateFieldTypes file. Error Details : $_"
99105
exit 1
100106
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"FunctionName": "ADOAuditLogs",
3+
"FunctionParameters": [],
4+
"FunctionResultColumns": [
5+
{
6+
"name": "TimeGenerated",
7+
"type": "datetime"
8+
},
9+
{
10+
"name": "ActivityId",
11+
"type": "string"
12+
},
13+
{
14+
"name": "ActorCUID",
15+
"type": "string"
16+
},
17+
{
18+
"name": "ActorClientId",
19+
"type": "string"
20+
},
21+
{
22+
"name": "ActorDisplayName",
23+
"type": "string"
24+
},
25+
{
26+
"name": "ActorImageUrl",
27+
"type": "string"
28+
},
29+
{
30+
"name": "ActorUPN",
31+
"type": "string"
32+
},
33+
{
34+
"name": "ActorUserId",
35+
"type": "string"
36+
},
37+
{
38+
"name": "Area",
39+
"type": "string"
40+
},
41+
{
42+
"name": "AuthenticationMechanism",
43+
"type": "string"
44+
},
45+
{
46+
"name": "Category",
47+
"type": "string"
48+
},
49+
{
50+
"name": "CategoryDisplayName",
51+
"type": "string"
52+
},
53+
{
54+
"name": "CorrelationId",
55+
"type": "string"
56+
},
57+
{
58+
"name": "Data",
59+
"type": "dynamic"
60+
},
61+
{
62+
"name": "Details",
63+
"type": "string"
64+
},
65+
{
66+
"name": "Id",
67+
"type": "string"
68+
},
69+
{
70+
"name": "IpAddress",
71+
"type": "string"
72+
},
73+
{
74+
"name": "OperationName",
75+
"type": "string"
76+
},
77+
{
78+
"name": "ProjectId",
79+
"type": "string"
80+
},
81+
{
82+
"name": "ProjectName",
83+
"type": "string"
84+
},
85+
{
86+
"name": "ScopeDisplayName",
87+
"type": "string"
88+
},
89+
{
90+
"name": "ScopeId",
91+
"type": "string"
92+
},
93+
{
94+
"name": "ScopeType",
95+
"type": "string"
96+
},
97+
{
98+
"name": "UserAgent",
99+
"type": "string"
100+
},
101+
{
102+
"name": "Type",
103+
"type": "string"
104+
},
105+
{
106+
"name": "TenantId",
107+
"type": "string"
108+
},
109+
{
110+
"name": "SourceSystem",
111+
"type": "string"
112+
}
113+
]
114+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"Name": "ADOAuditLogs_CL",
3+
"Properties": [
4+
{
5+
"name": "TimeGenerated",
6+
"type": "datetime"
7+
},
8+
{
9+
"name": "ActionId",
10+
"type": "string"
11+
},
12+
{
13+
"name": "ActivityId",
14+
"type": "string"
15+
},
16+
{
17+
"name": "ActorCUID",
18+
"type": "string"
19+
},
20+
{
21+
"name": "ActorClientId",
22+
"type": "string"
23+
},
24+
{
25+
"name": "ActorDisplayName",
26+
"type": "string"
27+
},
28+
{
29+
"name": "ActorImageUrl",
30+
"type": "string"
31+
},
32+
{
33+
"name": "ActorUPN",
34+
"type": "string"
35+
},
36+
{
37+
"name": "ActorUserId",
38+
"type": "string"
39+
},
40+
{
41+
"name": "Area",
42+
"type": "string"
43+
},
44+
{
45+
"name": "AuthenticationMechanism",
46+
"type": "string"
47+
},
48+
{
49+
"name": "Category",
50+
"type": "string"
51+
},
52+
{
53+
"name": "CategoryDisplayName",
54+
"type": "string"
55+
},
56+
{
57+
"name": "CorrelationId",
58+
"type": "string"
59+
},
60+
{
61+
"name": "Data",
62+
"type": "dynamic"
63+
},
64+
{
65+
"name": "Details",
66+
"type": "string"
67+
},
68+
{
69+
"name": "Id",
70+
"type": "string"
71+
},
72+
{
73+
"name": "IpAddress",
74+
"type": "string"
75+
},
76+
{
77+
"name": "ProjectId",
78+
"type": "string"
79+
},
80+
{
81+
"name": "ProjectName",
82+
"type": "string"
83+
},
84+
{
85+
"name": "ScopeDisplayName",
86+
"type": "string"
87+
},
88+
{
89+
"name": "ScopeId",
90+
"type": "string"
91+
},
92+
{
93+
"name": "ScopeType",
94+
"type": "string"
95+
},
96+
{
97+
"name": "UserAgent",
98+
"type": "string"
99+
}
100+
]
101+
}
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"Name": "AWSNetworkFirewall_AlertLog_CL",
3+
"Properties": [
4+
{
5+
"name": "TimeGenerated",
6+
"type": "datetime"
7+
},
8+
{
9+
"name": "FirewallName",
10+
"type": "string"
11+
},
12+
{
13+
"name": "AvailabilityZone",
14+
"type": "string"
15+
},
16+
{
17+
"name": "TxId",
18+
"type": "real"
19+
},
20+
{
21+
"name": "EventTimestamp",
22+
"type": "real"
23+
},
24+
{
25+
"name": "AppProto",
26+
"type": "string"
27+
},
28+
{
29+
"name": "SrcIp",
30+
"type": "string"
31+
},
32+
{
33+
"name": "SrcPort",
34+
"type": "real"
35+
},
36+
{
37+
"name": "EventType",
38+
"type": "string"
39+
},
40+
{
41+
"name": "Severity",
42+
"type": "real"
43+
},
44+
{
45+
"name": "SignatureId",
46+
"type": "real"
47+
},
48+
{
49+
"name": "Rev",
50+
"type": "real"
51+
},
52+
{
53+
"name": "Signature",
54+
"type": "string"
55+
},
56+
{
57+
"name": "AlertAction",
58+
"type": "string"
59+
},
60+
{
61+
"name": "Category",
62+
"type": "string"
63+
},
64+
{
65+
"name": "FlowId",
66+
"type": "real"
67+
},
68+
{
69+
"name": "DestIp",
70+
"type": "string"
71+
},
72+
{
73+
"name": "Proto",
74+
"type": "string"
75+
},
76+
{
77+
"name": "VerdictAction",
78+
"type": "string"
79+
},
80+
{
81+
"name": "Sni",
82+
"type": "string"
83+
},
84+
{
85+
"name": "Version",
86+
"type": "string"
87+
},
88+
{
89+
"name": "DestPort",
90+
"type": "real"
91+
},
92+
{
93+
"name": "PktSrc",
94+
"type": "string"
95+
},
96+
{
97+
"name": "Direction",
98+
"type": "string"
99+
},
100+
{
101+
"name": "Timestamp",
102+
"type": "datetime"
103+
}
104+
]
105+
}

0 commit comments

Comments
 (0)