Skip to content

Commit 6ca9756

Browse files
authored
Merge pull request #507 from briandelmsft/python312
Updated Deployment for Python v3.12 & STAT v2.3.0
2 parents fa70efa + 2c0b1bd commit 6ca9756

File tree

6 files changed

+10
-29
lines changed

6 files changed

+10
-29
lines changed

Deploy/GrantPermissions.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-00
166166
Set-APIPermissions -MSIName $STATIdentityName -AppId "8ee8fdad-f234-4243-8f3b-15c294843740" -PermissionName "AdvancedHunting.Read.All"
167167
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "IdentityRiskyUser.Read.All"
168168
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "IdentityRiskEvent.Read.All"
169+
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "SecurityAnalyzedMessage.Read.All" #Not supported in GCC/GCC High/DoD
170+
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "ThreatIntelligence.Read.All" #Not supported in GCC/GCC High/DoD
169171

170172
#Triage-Content Sample
171173
if ( $PSBoundParameters.ContainsKey('SampleLogicAppName') ) {

Deploy/deployui.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@
516516
"type": "Microsoft.Common.TextBox",
517517
"label": "STAT Function ZIP Package",
518518
"placeholder": "",
519-
"defaultValue": "https://github.com/briandelmsft/STAT-Function/releases/download/v2.2.0/stat.zip",
519+
"defaultValue": "https://github.com/briandelmsft/STAT-Function/releases/download/v2.3.0/stat.zip",
520520
"toolTip": "Full path to the STAT Function ZIP deployment package",
521521
"constraints": {
522522
"required": true,
@@ -550,7 +550,7 @@
550550
"STATConnectorName": "[coalesce(steps('namingStep').customNaming.statConnectorName, 'SentinelTriageAssistantv2')]",
551551
"STATConnectorDisplayName": "[coalesce(steps('namingStep').customNaming.statConnectorDisplayName, 'STAT v2')]",
552552
"storageAccountType": "Standard_LRS",
553-
"FunctionPackage": "[coalesce(steps('additionalStep').advanced.functionPackage, 'https://github.com/briandelmsft/STAT-Function/releases/download/v2.2.0/stat.zip')]",
553+
"FunctionPackage": "[coalesce(steps('additionalStep').advanced.functionPackage, 'https://github.com/briandelmsft/STAT-Function/releases/download/v2.3.0/stat.zip')]",
554554
"MSGraphEndpoint": "[coalesce(steps('apiStep').customApi.graphApi,'graph.microsoft.com')]",
555555
"M365Endpoint": "[coalesce(steps('apiStep').customApi.m365Api,'api.security.microsoft.com')]",
556556
"MDEEndpoint": "[coalesce(steps('apiStep').customApi.mdeApi,'api.securitycenter.microsoft.com')]",

Deploy/statdeploy.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -135,28 +135,12 @@
135135
"allowBlobPublicAccess": false
136136
}
137137
},
138-
{
139-
"type": "Microsoft.Web/serverfarms",
140-
"apiVersion": "2021-02-01",
141-
"name": "[variables('functionName')]",
142-
"location": "[parameters('location')]",
143-
"sku": {
144-
"name": "Y1",
145-
"tier": "Dynamic",
146-
"size": "Y1",
147-
"family": "Y"
148-
},
149-
"properties": {
150-
"reserved": true
151-
}
152-
},
153138
{
154139
"condition": "[equals(parameters('identityType'), 'sp')]",
155140
"apiVersion": "2019-10-01",
156141
"name": "STATFunctionSP",
157142
"type": "Microsoft.Resources/deployments",
158143
"dependsOn": [
159-
"[resourceId('Microsoft.Web/serverfarms', variables('functionName'))]",
160144
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
161145
],
162146
"properties": {
@@ -229,7 +213,6 @@
229213
"name": "STATFunctionSystemId",
230214
"type": "Microsoft.Resources/deployments",
231215
"dependsOn": [
232-
"[resourceId('Microsoft.Web/serverfarms', variables('functionName'))]",
233216
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
234217
],
235218
"properties": {
@@ -296,7 +279,6 @@
296279
"name": "STATFunctionUser",
297280
"type": "Microsoft.Resources/deployments",
298281
"dependsOn": [
299-
"[resourceId('Microsoft.Web/serverfarms', variables('functionName'))]",
300282
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
301283
],
302284
"properties": {

Function/ServicePrincipalIdentity.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@
107107
"reserved": true,
108108
"httpsOnly": true,
109109
"clientAffinityEnabled": true,
110-
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('STATFunctionName'))]",
111110
"siteConfig": {
112-
"linuxFxVersion": "PYTHON|3.10",
111+
"linuxFxVersion": "PYTHON|3.12",
113112
"appSettings": [
114113
{
115114
"name": "AzureWebJobsStorage",
@@ -224,4 +223,4 @@
224223
"value": "[reference(resourceId('Microsoft.Web/sites', parameters('STATFunctionName'))).defaultHostName]"
225224
}
226225
}
227-
}
226+
}

Function/SystemIdentity.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@
9595
"reserved": true,
9696
"httpsOnly": true,
9797
"clientAffinityEnabled": true,
98-
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('STATFunctionName'))]",
9998
"siteConfig": {
100-
"linuxFxVersion": "PYTHON|3.10",
99+
"linuxFxVersion": "PYTHON|3.12",
101100
"appSettings": [
102101
{
103102
"name": "AzureWebJobsStorage",
@@ -204,4 +203,4 @@
204203
"value": "[reference(resourceId('Microsoft.Web/sites', parameters('STATFunctionName'))).defaultHostName]"
205204
}
206205
}
207-
}
206+
}

Function/UserAssignedIdentity.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@
107107
"reserved": true,
108108
"httpsOnly": true,
109109
"clientAffinityEnabled": true,
110-
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('STATFunctionName'))]",
111110
"siteConfig": {
112-
"linuxFxVersion": "PYTHON|3.10",
111+
"linuxFxVersion": "PYTHON|3.12",
113112
"appSettings": [
114113
{
115114
"name": "AzureWebJobsStorage",
@@ -220,4 +219,4 @@
220219
"value": "[reference(resourceId('Microsoft.Web/sites', parameters('STATFunctionName'))).defaultHostName]"
221220
}
222221
}
223-
}
222+
}

0 commit comments

Comments
 (0)