Skip to content
Merged
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
46 changes: 36 additions & 10 deletions src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.Beta.Security

{{ Add description here }}
$params = @{
displayName = "Graph Simulation"
"[email protected]" = "https://graph.microsoft.com/beta/security/attacksimulation/payloads/12345678-9abc-def0-123456789a"
"[email protected]" = "https://graph.microsoft.com/beta/security/attacksimulation/loginPages/1w345678-9abc-def0-123456789a"
"[email protected]" = "https://graph.microsoft.com/beta/security/attacksimulation/landingPages/1c345678-9abc-def0-123456789a"
createdBy = @{
email = "[email protected]"
}
durationInDays = "3"
attackTechnique = "credentialHarvesting"
status = "scheduled"
includedAccountTarget = @{
"@odata.type" = "#microsoft.graph.addressBookAccountTargetContent"
type = "addressBook"
accountTargetEmails = @(
"[email protected]"
)
}
trainingSetting = @{
settingType = "noTraining"
}
endUserNotificationSetting = @{
notificationPreference = "microsoft"
settingType = "noTraining"
positiveReinforcement = @{
deliveryPreference = "deliverAfterCampaignEnd"
endUserNotification = "https://graph.microsoft.com/beta/security/attacksimulation/endUserNotifications/1ewer3678-9abc-def0-123456789a"
defaultLanguage = "en"
}
}
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
New-MgBetaSecurityAttackSimulation -BodyParameter $params

{{ Add output here }}
```
This example shows how to use the New-MgBetaSecurityAttackSimulation Cmdlet.

{{ Add description here }}
46 changes: 36 additions & 10 deletions src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.Security

{{ Add description here }}
$params = @{
displayName = "Graph Simulation"
"[email protected]" = "https://graph.microsoft.com/v1.0/security/attacksimulation/payloads/12345678-9abc-def0-123456789a"
"[email protected]" = "https://graph.microsoft.com/v1.0/security/attacksimulation/loginPages/1w345678-9abc-def0-123456789a"
"[email protected]" = "https://graph.microsoft.com/v1.0/security/attacksimulation/landingPages/1c345678-9abc-def0-123456789a"
createdBy = @{
email = "[email protected]"
}
durationInDays = "3"
attackTechnique = "credentialHarvesting"
status = "scheduled"
includedAccountTarget = @{
"@odata.type" = "#microsoft.graph.addressBookAccountTargetContent"
type = "addressBook"
accountTargetEmails = @(
"[email protected]"
)
}
trainingSetting = @{
settingType = "noTraining"
}
endUserNotificationSetting = @{
notificationPreference = "microsoft"
settingType = "noTraining"
positiveReinforcement = @{
deliveryPreference = "deliverAfterCampaignEnd"
endUserNotification = "https://graph.microsoft.com/v1.0/security/attacksimulation/endUserNotifications/1ewer3678-9abc-def0-123456789a"
defaultLanguage = "en"
}
}
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
New-MgSecurityAttackSimulation -BodyParameter $params

{{ Add output here }}
```
This example shows how to use the New-MgSecurityAttackSimulation Cmdlet.

{{ Add description here }}