This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"groupingConfiguration": { | |
"GroupingConfigurationEnabled": true, | |
"reopenClosedIncident": true, | |
"lookbackDuration": "PT6H", | |
"entitiesMatchingMethod": "string", | |
"groupByEntities": [ | |
"Account", | |
"Ip", | |
"Host", | |
"Url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "Microsoft.Web/connections", | |
"apiVersion": "2016-06-01", | |
"name": "azureSentinel", | |
"location": "[resourceGroup().location]", | |
"properties": { | |
"displayName": "azureSentinel", | |
"customParameterValues": {}, | |
"api": { | |
"id": "[concat('/subscriptions/',subscription().subscriptionId, '/providers/Microsoft.Web/locations/westeurope/managedApis/', 'azureSentinel')]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
networks: | |
macvlan_network: | |
driver: macvlan | |
driver_opts: | |
parent: eth01 | |
ipam: | |
config: | |
- subnet: 192.168.1.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
}, | |
"variables": { | |
"logAnalyticsWorkspace": "[concat('sent-',uniqueString(resourceGroup().id))]" | |
}, | |
"resources": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$body = @{ | |
client_id = $ClientId | |
scope = "https://graph.microsoft.com/.default" | |
client_secret = $ClientSecret | |
grant_type = "client_credentials" | |
} | |
$uri = "https://login.microsoftonline.com/$TenantId/oauth2/v2.0/token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"analytics": [ | |
{ | |
"displayName": "string", | |
"description": "string", | |
"severity": "High", | |
"enabled": true, | |
"query": "SecurityEvent | where EventID == \"4688\" | where CommandLine contains \"-noni -ep bypass $\"", | |
"queryFrequency": "5H", | |
"queryPeriod": "5H", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Test-ModuleManifest", | |
"type": "PowerShell", | |
"request": "launch", | |
"script": "Invoke-Pester", | |
"args": ["${workspaceFolder}/tests/Test-ModuleManifest.Tests.ps1", "-Show All"] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Automatically Cycle Through Tabs in Edge | |
#> | |
while (1 -eq 1) { | |
$wshell=New-Object -ComObject wscript.shell | |
$wshell.AppActivate('microsoft-edge') | |
Sleep 3 | |
$wshell.SendKeys('^+{TAB}') | |
$wshell.SendKeys('{F5}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Move Azure VM with Managed Disk to another Resource Group | |
.DESCRIPTION | |
Long description | |
.EXAMPLE | |
Example of how to use this cmdlet | |
.INPUTS | |
Inputs to this cmdlet (if any) | |
.OUTPUTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
to save to wod | |
https://github.com/microsoftgraph/security-api-solutions/tree/master/Samples/PowerShell | |
to get security alerts: | |
https://github.com/microsoftgraph/security-api-solutions/tree/master/Samples/PowerShell | |
#> | |
try { |
NewerOlder