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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example

```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
```
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 2: Code snippet
### Example 1: List attendance reports for a town hall session

```powershell

Expand All @@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Beta.Bookings
Get-MgBetaVirtualEventTownhallSessionAttendanceReport -VirtualEventTownhallId $virtualEventTownhallId -VirtualEventSessionId $virtualEventSessionId

```
This example shows how to use the Get-MgBetaVirtualEventTownhallSessionAttendanceReport Cmdlet.
This example will list attendance reports for a town hall session

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Bookings

Get-MgVirtualEventTownhallByUserRole -Role $roleId

```
This example shows how to use the Get-MgVirtualEventTownhallByUserRole Cmdlet.

103 changes: 95 additions & 8 deletions src/Calendar/beta/examples/New-MgBetaPlace.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,105 @@
### Example 1: {{ Add title here }}
### Example 1: Create a building

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
"@odata.type" = "microsoft.graph.building"
displayName = "B001"
}

New-MgBetaPlace -BodyParameter $params

```
This example will create a building

### Example 2: Create a floor

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
"@odata.type" = "microsoft.graph.floor"
displayName = "F1"
parentId = "767a31a7-6987-41c9-b829-ab351b8aab53"
}

New-MgBetaPlace -BodyParameter $params

```
This example will create a floor

### Example 3: Create a section

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
"@odata.type" = "microsoft.graph.section"
displayName = "S1"
parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955"
}

New-MgBetaPlace -BodyParameter $params

```
This example will create a section

### Example 4: Create a desk

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

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

$params = @{
"@odata.type" = "microsoft.graph.desk"
displayName = "D1"
parentId = "1ad0f725-6885-49c5-9a47-3b22a1f9409d"
}

New-MgBetaPlace -BodyParameter $params

```
This example will create a desk

{{ Add description here }}
### Example 5: Create a room

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

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

$params = @{
"@odata.type" = "microsoft.graph.room"
displayName = "Conf Room 4/3.3G11"
parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955"
bookingType = "standard"
}

New-MgBetaPlace -BodyParameter $params

```
This example will create a room

### Example 6: Create a workspace

```powershell

{{ Add description here }}
Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
"@odata.type" = "microsoft.graph.workspace"
parentId = "f7de7265-e420-47b4-9d49-28d728716241"
displayName = "testSpace001"
tags = @(
"test"
)
}

New-MgBetaPlace -BodyParameter $params

```
This example will create a workspace

17 changes: 17 additions & 0 deletions src/Calendar/beta/examples/New-MgBetaPlaceCheck.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
"@odata.type" = "#microsoft.graph.checkInClaim"
calendarEventId = "040000008200E00074C5B7101A82E00800000000D02AC02D26EFDB010000000000000000100000005A18ADA04F0A24489AE13ED3CC367978"
checkInMethod = "verified"
}

New-MgBetaPlaceCheck -PlaceId $placeId -BodyParameter $params

```
This example shows how to use the New-MgBetaPlaceCheck Cmdlet.

11 changes: 11 additions & 0 deletions src/Calendar/beta/examples/Remove-MgBetaPlaceAsBuildingMap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

Remove-MgBetaPlaceAsBuildingMap -PlaceId $placeId

```
This example shows how to use the Remove-MgBetaPlaceAsBuildingMap Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

Remove-MgBetaPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId -FixtureMapId $fixtureMapId

```
This example shows how to use the Remove-MgBetaPlaceAsBuildingMapLevelFixture Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

Remove-MgBetaPlaceAsBuildingMapLevelUnit -PlaceId $placeId -LevelMapId $levelMapId -UnitMapId $unitMapId

```
This example shows how to use the Remove-MgBetaPlaceAsBuildingMapLevelUnit Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
### Example 1: Update an existing fixtureMap

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
placeId = "67149ec1-4b99-42d4-88a4-d92cd23cb606"
properties = '{"id":"005eb3b8-c95d-4d35-a8a0-22d3cb4d6002","type":"Feature","feature_type":"fixture","geometry":{"type":"Polygon","coordinates":[[[-121.8889415,37.3295396],[-121.8889137,37.329503],[-121.8889082,37.3294956],[-121.888907,37.3294941],[-121.8888551,37.3295189],[-121.8888895,37.3295644],[-121.8889415,37.3295396]]]},"properties":{"name":{"en":"Test Fixture update"},"level_id":"e537d463-475b-43c3-a650-184566c68bc9","display_point":{"type":"Point","coordinates":[-121.8888983,37.3295292]}}}'
}

Update-MgBetaPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId -FixtureMapId $fixtureMapId -BodyParameter $params

```
This example will update an existing fixturemap

### Example 2: Create a fixtureMap if it doesn't exist

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
placeId = "67149ec1-4b99-42d4-88a4-d92cd23cb606"
properties = '{"id":"005eb3b8-c95d-4d35-a8a0-22d3cb4d6002","type":"Feature","feature_type":"fixture","geometry":{"type":"Polygon","coordinates":[[[-121.8889415,37.3295396],[-121.8889137,37.329503],[-121.8889082,37.3294956],[-121.888907,37.3294941],[-121.8888551,37.3295189],[-121.8888895,37.3295644],[-121.8889415,37.3295396]]]},"properties":{"name":{"en":"Test Fixture 01"},"level_id":"e537d463-475b-43c3-a650-184566c68bc9","display_point":{"type":"Point","coordinates":[-121.8888983,37.3295292]}}}'
}

Update-MgBetaPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId -FixtureMapId $fixtureMapId -BodyParameter $params

```
This example will create a fixturemap if it doesn't exist

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### Example 1: Update an existing unitMap

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
placeId = $null
properties = '{"id":"005eb3b8-c95d-4d35-a8a0-22d3cb4d6542","type":"Feature","feature_type":"unit","geometry":{"type":"Polygon","coordinates":[[[-121.8889415,37.3295396],[-121.8889137,37.329503],[-121.8889082,37.3294956],[-121.888907,37.3294941],[-121.8888551,37.3295189],[-121.8888895,37.3295644],[-121.8889415,37.3295396]]]},"properties":{"name":{"en":"Test room from Test Floor 1 (120.3)"},"level_id":"e537d463-475b-43c3-a650-184566c68bc9","display_point":{"type":"Point","coordinates":[-121.8888983,37.3295292]},"category":"room"}}'
}

Update-MgBetaPlaceAsBuildingMapLevelUnit -PlaceId $placeId -LevelMapId $levelMapId -UnitMapId $unitMapId -BodyParameter $params

```
This example will update an existing unitmap

### Example 2: Create a unitMap if it doesn't exist

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

$params = @{
properties = '{"id":"005eb3b8-c95d-4d35-a8a0-22d3cb4d6996","type":"Feature","feature_type":"unit","geometry":{"type":"Polygon","coordinates":[[[-121.8889415,37.3295396],[-121.8889137,37.329503],[-121.8889082,37.3294956],[-121.888907,37.3294941],[-121.8888551,37.3295189],[-121.8888895,37.3295644],[-121.8889415,37.3295396]]]},"properties":{"name":{"en":"Test Create room111111111111"},"level_id":"e537d463-475b-43c3-a650-184566c68bc9","display_point":{"type":"Point","coordinates":[-121.8888983,37.3295292]},"category":"room"}}'
}

Update-MgBetaPlaceAsBuildingMapLevelUnit -PlaceId $placeId -LevelMapId $levelMapId -UnitMapId $unitMapId -BodyParameter $params

```
This example will create a unitmap if it doesn't exist

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsBuilding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: List all buildings defined in the tenant

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuilding

```
This example will list all buildings defined in the tenant

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsBuildingMap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuildingMap -PlaceId $placeId

```
This example shows how to use the Get-MgPlaceAsBuildingMap Cmdlet.

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsBuildingMapFootprint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuildingMapFootprint -PlaceId $placeId

```
This example shows how to use the Get-MgPlaceAsBuildingMapFootprint Cmdlet.

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsBuildingMapLevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuildingMapLevel -PlaceId $placeId

```
This example shows how to use the Get-MgPlaceAsBuildingMapLevel Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuildingMapLevelFixture -PlaceId $placeId -LevelMapId $levelMapId

```
This example shows how to use the Get-MgPlaceAsBuildingMapLevelFixture Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuildingMapLevelSection -PlaceId $placeId -LevelMapId $levelMapId

```
This example shows how to use the Get-MgPlaceAsBuildingMapLevelSection Cmdlet.

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsBuildingMapLevelUnit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsBuildingMapLevelUnit -PlaceId $placeId -LevelMapId $levelMapId

```
This example shows how to use the Get-MgPlaceAsBuildingMapLevelUnit Cmdlet.

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsDesk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: List all desks defined in the tenant

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsDesk

```
This example will list all desks defined in the tenant

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsFloor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: List all floors defined in the tenant

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsFloor

```
This example will list all floors defined in the tenant

Loading
Loading