|
1 | | -### Example 1: {{ Add title here }} |
| 1 | +### Example 1: Create a building |
| 2 | + |
| 3 | +```powershell |
| 4 | +
|
| 5 | +Import-Module Microsoft.Graph.Beta.Calendar |
| 6 | +
|
| 7 | +$params = @{ |
| 8 | + "@odata.type" = "microsoft.graph.building" |
| 9 | + displayName = "B001" |
| 10 | +} |
| 11 | +
|
| 12 | +New-MgBetaPlace -BodyParameter $params |
| 13 | +
|
| 14 | +``` |
| 15 | +This example will create a building |
| 16 | + |
| 17 | +### Example 2: Create a floor |
| 18 | + |
| 19 | +```powershell |
| 20 | +
|
| 21 | +Import-Module Microsoft.Graph.Beta.Calendar |
| 22 | +
|
| 23 | +$params = @{ |
| 24 | + "@odata.type" = "microsoft.graph.floor" |
| 25 | + displayName = "F1" |
| 26 | + parentId = "767a31a7-6987-41c9-b829-ab351b8aab53" |
| 27 | +} |
| 28 | +
|
| 29 | +New-MgBetaPlace -BodyParameter $params |
| 30 | +
|
| 31 | +``` |
| 32 | +This example will create a floor |
| 33 | + |
| 34 | +### Example 3: Create a section |
| 35 | + |
| 36 | +```powershell |
| 37 | +
|
| 38 | +Import-Module Microsoft.Graph.Beta.Calendar |
| 39 | +
|
| 40 | +$params = @{ |
| 41 | + "@odata.type" = "microsoft.graph.section" |
| 42 | + displayName = "S1" |
| 43 | + parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955" |
| 44 | +} |
| 45 | +
|
| 46 | +New-MgBetaPlace -BodyParameter $params |
| 47 | +
|
| 48 | +``` |
| 49 | +This example will create a section |
| 50 | + |
| 51 | +### Example 4: Create a desk |
| 52 | + |
2 | 53 | ```powershell |
3 | | -PS C:\> {{ Add code here }} |
4 | 54 |
|
5 | | -{{ Add output here }} |
| 55 | +Import-Module Microsoft.Graph.Beta.Calendar |
| 56 | +
|
| 57 | +$params = @{ |
| 58 | + "@odata.type" = "microsoft.graph.desk" |
| 59 | + displayName = "D1" |
| 60 | + parentId = "1ad0f725-6885-49c5-9a47-3b22a1f9409d" |
| 61 | +} |
| 62 | +
|
| 63 | +New-MgBetaPlace -BodyParameter $params |
| 64 | +
|
6 | 65 | ``` |
| 66 | +This example will create a desk |
7 | 67 |
|
8 | | -{{ Add description here }} |
| 68 | +### Example 5: Create a room |
9 | 69 |
|
10 | | -### Example 2: {{ Add title here }} |
11 | 70 | ```powershell |
12 | | -PS C:\> {{ Add code here }} |
13 | 71 |
|
14 | | -{{ Add output here }} |
| 72 | +Import-Module Microsoft.Graph.Beta.Calendar |
| 73 | +
|
| 74 | +$params = @{ |
| 75 | + "@odata.type" = "microsoft.graph.room" |
| 76 | + displayName = "Conf Room 4/3.3G11" |
| 77 | + parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955" |
| 78 | + bookingType = "standard" |
| 79 | +} |
| 80 | +
|
| 81 | +New-MgBetaPlace -BodyParameter $params |
| 82 | +
|
15 | 83 | ``` |
| 84 | +This example will create a room |
| 85 | + |
| 86 | +### Example 6: Create a workspace |
| 87 | + |
| 88 | +```powershell |
16 | 89 |
|
17 | | -{{ Add description here }} |
| 90 | +Import-Module Microsoft.Graph.Beta.Calendar |
| 91 | +
|
| 92 | +$params = @{ |
| 93 | + "@odata.type" = "microsoft.graph.workspace" |
| 94 | + parentId = "f7de7265-e420-47b4-9d49-28d728716241" |
| 95 | + displayName = "testSpace001" |
| 96 | + tags = @( |
| 97 | + "test" |
| 98 | +) |
| 99 | +} |
| 100 | +
|
| 101 | +New-MgBetaPlace -BodyParameter $params |
| 102 | +
|
| 103 | +``` |
| 104 | +This example will create a workspace |
18 | 105 |
|
0 commit comments