Skip to content

Commit 52ec866

Browse files
authored
Merge branch 'dev' into 3051-missing-commands-for-new-auditlogquery-endpoint
2 parents 37b1980 + 4ae8239 commit 52ec866

13 files changed

+124
-85
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example will### example
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example will### example
11+

src/DeviceManagement.Administration/beta/examples/New-MgBetaDeviceManagementVirtualEndpointUserSetting.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ $params = @{
99
displayName = "Example"
1010
selfServiceEnabled = $false
1111
localAdminEnabled = $true
12+
crossRegionDisasterRecoverySetting = @{
13+
crossRegionDisasterRecoveryEnabled = $false
14+
maintainCrossRegionRestorePointEnabled = $true
15+
disasterRecoveryNetworkSetting = @{
16+
regionName = "westus"
17+
regionGroup = "usEast"
18+
}
19+
disasterRecoveryType = "premium"
20+
userInitiatedDisasterRecoveryAllowed = $true
21+
}
1222
restorePointSetting = @{
1323
frequencyInHours = 16
1424
frequencyType = "sixteenHours"

src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointUserSetting.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ $params = @{
1313
frequencyType = "sixteenHours"
1414
userRestoreEnabled = $true
1515
}
16+
crossRegionDisasterRecoverySetting = @{
17+
crossRegionDisasterRecoveryEnabled = $false
18+
maintainCrossRegionRestorePointEnabled = $true
19+
disasterRecoveryNetworkSetting = @{
20+
regionName = "westus"
21+
regionGroup = "usEast"
22+
}
23+
disasterRecoveryType = "premium"
24+
userInitiatedDisasterRecoveryAllowed = $true
25+
}
1626
localAdminEnabled = $false
1727
resetEnabled = $true
1828
}

src/Identity.DirectoryManagement/beta/examples/Restore-MgBetaDirectoryDeletedItem.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,18 @@ Restore-MgBetaDirectoryDeletedItem -DirectoryObjectId $directoryObjectId -BodyPa
2424
```
2525
This example shows how to use the Restore-MgBetaDirectoryDeletedItem Cmdlet.
2626

27+
### Example 3: Code snippet
28+
29+
```powershell
30+
31+
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
32+
33+
$params = @{
34+
newUserPrincipalName = "johndoe@contoso.com"
35+
}
36+
37+
Restore-MgBetaDirectoryDeletedItem -DirectoryObjectId $directoryObjectId -BodyParameter $params
38+
39+
```
40+
This example shows how to use the Restore-MgBetaDirectoryDeletedItem Cmdlet.
41+
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Retrieve the list of audit logs
22

33
```powershell
44
@@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Beta.Reports
77
Get-MgBetaAuditLogDirectoryAudit
88
99
```
10-
This example shows how to use the Get-MgBetaAuditLogDirectoryAudit Cmdlet.
10+
This example will retrieve the list of audit logs
11+
12+
### Example 2: Retrieve the list of audit logs with a filter on initiatedBy/user
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Reports
17+
18+
Get-MgBetaAuditLogDirectoryAudit -Filter "initiatedBy/user/id eq '00000000-0000-0000-0000-000000000000'"
19+
20+
```
21+
This example will retrieve the list of audit logs with a filter on initiatedby/user
1122

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Retrieve the list of audit logs
22

33
```powershell
44
@@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Reports
77
Get-MgAuditLogDirectoryAudit
88
99
```
10-
This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet.
10+
This example will retrieve the list of audit logs
11+
12+
### Example 2: Retrieve the list of audit logs with a filter on initiatedBy/user
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Reports
17+
18+
Get-MgAuditLogDirectoryAudit -Filter "initiatedBy/user/id eq '00000000-0000-0000-0000-000000000000'"
19+
20+
```
21+
This example will retrieve the list of audit logs with a filter on initiatedby/user
1122

src/Teams/beta/examples/New-MgBetaTeam.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ $params = @{
88
"template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')"
99
displayName = "My Sample Team"
1010
description = "My Sample Team's Description"
11+
firstChannelName = "My First Channel of the sample team"
1112
}
1213
1314
New-MgBetaTeam -BodyParameter $params
@@ -25,6 +26,7 @@ $params = @{
2526
"template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')"
2627
displayName = "My Sample Team"
2728
description = "My Sample Team’s Description"
29+
firstChannelName = "My First Channel of the sample team"
2830
members = @(
2931
@{
3032
"@odata.type" = "#microsoft.graph.aadUserConversationMember"
@@ -52,6 +54,7 @@ $params = @{
5254
visibility = "Private"
5355
displayName = "Sample Engineering Team"
5456
description = "This is a sample engineering team, used to showcase the range of properties supported by this API"
57+
firstChannelName = "My First Channel of the team"
5558
channels = @(
5659
@{
5760
displayName = "Announcements 📢"

src/Teams/v1.0/examples/New-MgTeamScheduleOpenShift.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,19 @@
55
Import-Module Microsoft.Graph.Teams
66
77
$params = @{
8-
id = "OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8"
9-
schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0"
8+
schedulingGroupId = "TAG_4ab7d329-1f7e-4eaf-ba93-63f1ff3f3c4a"
109
sharedOpenShift = @{
11-
notes = "InventoryManagement"
12-
openSlotCount = 2
1310
displayName = "Dayshift"
14-
startDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z")
15-
endDateTime = [System.DateTime]::Parse("2018-10-04T09: 50: 45.332Z")
16-
theme = "white"
11+
startDateTime = [System.DateTime]::Parse("2024-11-04T20:00:00Z")
12+
endDateTime = [System.DateTime]::Parse("2024-11-04T21:00:00Z")
13+
theme = "blue"
14+
notes = "InventoryManagement"
15+
openSlotCount = 1
1716
activities = @(
18-
@{
19-
isPaid = $true
20-
startDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z")
21-
endDateTime = [System.DateTime]::Parse("2018-10-04T01: 58: 45.340Z")
22-
code = ""
23-
displayName = "Lunch"
24-
}
2517
)
2618
}
27-
draftOpenShift = $null
28-
createdDateTime = [System.DateTime]::Parse("2019-03-14T04: 32: 51.451Z")
29-
lastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05: 32: 51.451Z")
30-
lastModifiedBy = @{
31-
application = $null
32-
device = $null
33-
conversation = $null
34-
user = @{
35-
id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8"
36-
displayName = "JohnDoe"
37-
}
38-
}
19+
draftTimeOff = $null
20+
isStagedForDeletion = $false
3921
}
4022
4123
New-MgTeamScheduleOpenShift -TeamId $teamId -BodyParameter $params

src/Teams/v1.0/examples/New-MgTeamScheduleShift.md

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,18 @@
55
Import-Module Microsoft.Graph.Teams
66
77
$params = @{
8-
id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8"
9-
userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1"
10-
schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0"
11-
sharedShift = @{
12-
displayName = "Day shift"
13-
notes = "Please do inventory as part of your shift."
14-
startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z")
15-
endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z")
16-
theme = "blue"
17-
activities = @(
18-
@{
19-
isPaid = $true
20-
startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z")
21-
endDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z")
22-
code = ""
23-
displayName = "Lunch"
24-
}
25-
)
26-
}
8+
userId = "5ca83ce7-291d-43b7-bf53-af79eef4bc1d"
279
draftShift = @{
28-
displayName = "Day shift"
29-
notes = "Please do inventory as part of your shift."
30-
startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z")
31-
endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z")
10+
displayName = $null
11+
startDateTime = [System.DateTime]::Parse("2024-10-08T15:00:00Z")
12+
endDateTime = [System.DateTime]::Parse("2024-10-09T00:00:00Z")
3213
theme = "blue"
14+
notes = $null
3315
activities = @(
34-
@{
35-
isPaid = $true
36-
startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z")
37-
endDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z")
38-
code = ""
39-
displayName = "Lunch"
40-
}
4116
)
4217
}
18+
sharedShift = $null
19+
isStagedForDeletion = $false
4320
}
4421
4522
New-MgTeamScheduleShift -TeamId $teamId -BodyParameter $params

src/Teams/v1.0/examples/New-MgTeamScheduleTimeOff.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@
55
Import-Module Microsoft.Graph.Teams
66
77
$params = @{
8-
userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1"
8+
userId = "aa162a04-bec6-4b81-ba99-96caa7b2b24d"
99
sharedTimeOff = @{
10-
timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7"
11-
startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z")
12-
endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z")
13-
theme = "white"
14-
}
15-
draftTimeOff = @{
16-
timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7"
17-
startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z")
18-
endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z")
19-
theme = "pink"
10+
timeOffReasonId = "TOR_29a5ba96-c7ef-4e76-bec6-055323746314"
11+
startDateTime = [System.DateTime]::Parse("2024-10-10T19:00:00Z")
12+
endDateTime = [System.DateTime]::Parse("2024-10-10T20:00:00Z")
13+
theme = "blue"
2014
}
15+
draftTimeOff = $null
16+
isStagedForDeletion = $false
2117
}
2218
2319
New-MgTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params

src/Teams/v1.0/examples/New-MgTeamworkWorkforceIntegration.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
Import-Module Microsoft.Graph.Teams
66
77
$params = @{
8-
displayName = "displayName-value"
9-
apiVersion = 99
8+
displayName = "ABCWorkforceIntegration"
9+
apiVersion = 1
10+
isActive = $true
1011
encryption = @{
11-
protocol = "protocol-value"
12-
secret = "secret-value"
12+
protocol = "sharedSecret"
13+
secret = "My Secret"
1314
}
14-
isActive = $true
15-
url = "url-value"
16-
supportedEntities = "supportedEntities-value"
15+
url = "https://ABCWorkforceIntegration.com/Contoso/"
16+
supportedEntities = "Shift,SwapRequest"
17+
eligibilityFilteringEnabledEntities = "SwapRequest"
1718
}
1819
1920
New-MgTeamworkWorkforceIntegration -BodyParameter $params

src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
Import-Module Microsoft.Graph.Teams
66
77
$params = @{
8-
displayName = "displayName-value"
9-
apiVersion = 99
8+
displayName = "ABCWorkforceIntegration"
9+
apiVersion = 1
10+
isActive = $true
1011
encryption = @{
11-
protocol = "protocol-value"
12-
secret = "secret-value"
12+
protocol = "sharedSecret"
13+
secret = "My Secret"
1314
}
14-
isActive = $true
15-
url = "url-value"
16-
supportedEntities = "supportedEntities-value"
15+
url = "https://ABCWorkforceIntegration.com/Contoso/"
16+
supportedEntities = "Shift,SwapRequest"
17+
eligibilityFilteringEnabledEntities = "SwapRequest"
1718
}
1819
1920
Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params

0 commit comments

Comments
 (0)