Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Deploy/GrantPermissions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-00
Set-APIPermissions -MSIName $STATIdentityName -AppId "8ee8fdad-f234-4243-8f3b-15c294843740" -PermissionName "AdvancedHunting.Read.All"
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "IdentityRiskyUser.Read.All"
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "IdentityRiskEvent.Read.All"
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "SecurityAnalyzedMessage.Read.All" #Not supported in GCC/GCC High/DoD
Set-APIPermissions -MSIName $STATIdentityName -AppId "00000003-0000-0000-c000-000000000000" -PermissionName "ThreatIntelligence.Read.All" #Not supported in GCC/GCC High/DoD

#Triage-Content Sample
if ( $PSBoundParameters.ContainsKey('SampleLogicAppName') ) {
Expand Down
4 changes: 2 additions & 2 deletions Deploy/deployui.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
"type": "Microsoft.Common.TextBox",
"label": "STAT Function ZIP Package",
"placeholder": "",
"defaultValue": "https://github.com/briandelmsft/STAT-Function/releases/download/v2.2.0/stat.zip",
"defaultValue": "https://github.com/briandelmsft/STAT-Function/releases/download/v2.3.0/stat.zip",
"toolTip": "Full path to the STAT Function ZIP deployment package",
"constraints": {
"required": true,
Expand Down Expand Up @@ -550,7 +550,7 @@
"STATConnectorName": "[coalesce(steps('namingStep').customNaming.statConnectorName, 'SentinelTriageAssistantv2')]",
"STATConnectorDisplayName": "[coalesce(steps('namingStep').customNaming.statConnectorDisplayName, 'STAT v2')]",
"storageAccountType": "Standard_LRS",
"FunctionPackage": "[coalesce(steps('additionalStep').advanced.functionPackage, 'https://github.com/briandelmsft/STAT-Function/releases/download/v2.2.0/stat.zip')]",
"FunctionPackage": "[coalesce(steps('additionalStep').advanced.functionPackage, 'https://github.com/briandelmsft/STAT-Function/releases/download/v2.3.0/stat.zip')]",
"MSGraphEndpoint": "[coalesce(steps('apiStep').customApi.graphApi,'graph.microsoft.com')]",
"M365Endpoint": "[coalesce(steps('apiStep').customApi.m365Api,'api.security.microsoft.com')]",
"MDEEndpoint": "[coalesce(steps('apiStep').customApi.mdeApi,'api.securitycenter.microsoft.com')]",
Expand Down
18 changes: 0 additions & 18 deletions Deploy/statdeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,28 +135,12 @@
"allowBlobPublicAccess": false
}
},
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2021-02-01",
"name": "[variables('functionName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Y1",
"tier": "Dynamic",
"size": "Y1",
"family": "Y"
},
"properties": {
"reserved": true
}
},
{
"condition": "[equals(parameters('identityType'), 'sp')]",
"apiVersion": "2019-10-01",
"name": "STATFunctionSP",
"type": "Microsoft.Resources/deployments",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('functionName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
],
"properties": {
Expand Down Expand Up @@ -229,7 +213,6 @@
"name": "STATFunctionSystemId",
"type": "Microsoft.Resources/deployments",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('functionName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
],
"properties": {
Expand Down Expand Up @@ -296,7 +279,6 @@
"name": "STATFunctionUser",
"type": "Microsoft.Resources/deployments",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('functionName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
],
"properties": {
Expand Down
5 changes: 2 additions & 3 deletions Function/ServicePrincipalIdentity.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@
"reserved": true,
"httpsOnly": true,
"clientAffinityEnabled": true,
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('STATFunctionName'))]",
"siteConfig": {
"linuxFxVersion": "PYTHON|3.10",
"linuxFxVersion": "PYTHON|3.12",
"appSettings": [
{
"name": "AzureWebJobsStorage",
Expand Down Expand Up @@ -224,4 +223,4 @@
"value": "[reference(resourceId('Microsoft.Web/sites', parameters('STATFunctionName'))).defaultHostName]"
}
}
}
}
5 changes: 2 additions & 3 deletions Function/SystemIdentity.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@
"reserved": true,
"httpsOnly": true,
"clientAffinityEnabled": true,
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('STATFunctionName'))]",
"siteConfig": {
"linuxFxVersion": "PYTHON|3.10",
"linuxFxVersion": "PYTHON|3.12",
"appSettings": [
{
"name": "AzureWebJobsStorage",
Expand Down Expand Up @@ -204,4 +203,4 @@
"value": "[reference(resourceId('Microsoft.Web/sites', parameters('STATFunctionName'))).defaultHostName]"
}
}
}
}
5 changes: 2 additions & 3 deletions Function/UserAssignedIdentity.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@
"reserved": true,
"httpsOnly": true,
"clientAffinityEnabled": true,
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('STATFunctionName'))]",
"siteConfig": {
"linuxFxVersion": "PYTHON|3.10",
"linuxFxVersion": "PYTHON|3.12",
"appSettings": [
{
"name": "AzureWebJobsStorage",
Expand Down Expand Up @@ -220,4 +219,4 @@
"value": "[reference(resourceId('Microsoft.Web/sites', parameters('STATFunctionName'))).defaultHostName]"
}
}
}
}
Loading