New-MgPlace
Create a new place object. You can also use this method to create the following child object types: building, floor, section, room, workspace, or desk.
Note
To view the beta release of this cmdlet, view New-MgBetaPlace
Syntax
CreateExpanded (Default)
New-MgPlace
[-ResponseHeadersVariable <string>]
[-AdditionalProperties <hashtable>]
[-Address <IMicrosoftGraphPhysicalAddress>]
[-CheckIns <IMicrosoftGraphCheckInClaim[]>]
[-DisplayName <string>]
[-GeoCoordinates <IMicrosoftGraphOutlookGeoCoordinates>]
[-Id <string>]
[-IsWheelChairAccessible]
[-Label <string>]
[-ParentId <string>]
[-Phone <string>]
[-PlaceId <string>]
[-Tags <string[]>]
[-Break]
[-Headers <IDictionary>]
[-HttpPipelineAppend <SendAsyncStep[]>]
[-HttpPipelinePrepend <SendAsyncStep[]>]
[-Proxy <uri>]
[-ProxyCredential <pscredential>]
[-ProxyUseDefaultCredentials]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Create
New-MgPlace
-BodyParameter <IMicrosoftGraphPlace>
[-ResponseHeadersVariable <string>]
[-Break]
[-Headers <IDictionary>]
[-HttpPipelineAppend <SendAsyncStep[]>]
[-HttpPipelinePrepend <SendAsyncStep[]>]
[-Proxy <uri>]
[-ProxyCredential <pscredential>]
[-ProxyUseDefaultCredentials]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Create a new place object. You can also use this method to create the following child object types: building, floor, section, room, workspace, or desk.
Permissions
| Permission type | Permissions (from least to most privileged) |
|---|---|
| Delegated (work or school account) | Place.ReadWrite.All, |
| Delegated (personal Microsoft account) | Not supported |
| Application | Place.ReadWrite.All, |
Examples
Example 1: Create a building
Import-Module Microsoft.Graph.Calendar
$params = @{
"@odata.type" = "microsoft.graph.building"
displayName = "B001"
}
New-MgPlace -BodyParameter $params
This example will create a building
Example 2: Create a floor
Import-Module Microsoft.Graph.Calendar
$params = @{
"@odata.type" = "microsoft.graph.floor"
displayName = "F1"
parentId = "767a31a7-6987-41c9-b829-ab351b8aab53"
}
New-MgPlace -BodyParameter $params
This example will create a floor
Example 3: Create a section
Import-Module Microsoft.Graph.Calendar
$params = @{
"@odata.type" = "microsoft.graph.section"
displayName = "S1"
parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955"
}
New-MgPlace -BodyParameter $params
This example will create a section
Example 4: Create a desk
Import-Module Microsoft.Graph.Calendar
$params = @{
"@odata.type" = "microsoft.graph.desk"
displayName = "D1"
parentId = "1ad0f725-6885-49c5-9a47-3b22a1f9409d"
}
New-MgPlace -BodyParameter $params
This example will create a desk
Example 5: Create a room
Import-Module Microsoft.Graph.Calendar
$params = @{
"@odata.type" = "microsoft.graph.room"
displayName = "Conf Room 4/3.3G11"
parentId = "46ef7aed-5d94-4fd4-ae03-b333bc7a6955"
bookingType = "standard"
}
New-MgPlace -BodyParameter $params
This example will create a room
Example 6: Create a workspace
Import-Module Microsoft.Graph.Calendar
$params = @{
"@odata.type" = "microsoft.graph.workspace"
parentId = "f7de7265-e420-47b4-9d49-28d728716241"
displayName = "testSpace001"
tags = @(
"test"
)
}
New-MgPlace -BodyParameter $params
This example will create a workspace
Parameters
-AdditionalProperties
Additional Parameters
Parameter properties
| Type: | System.Collections.Hashtable |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Address
physicalAddress To construct, see NOTES section for ADDRESS properties and create a hash table.
Parameter properties
| Type: | Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPhysicalAddress |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-BodyParameter
place To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Parameter properties
| Type: | Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPlace |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Create
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Break
Wait for .NET debugger to attach
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-CheckIns
A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. To construct, see NOTES section for CHECKINS properties and create a hash table.
Parameter properties
| Type: | Microsoft.Graph.PowerShell.Models.IMicrosoftGraphCheckInClaim[] |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cf |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-DisplayName
The name that is associated with the place.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-GeoCoordinates
outlookGeoCoordinates To construct, see NOTES section for GEOCOORDINATES properties and create a hash table.
Parameter properties
| Type: | Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOutlookGeoCoordinates |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Headers
Optional headers that will be added to the request.
Parameter properties
| Type: | System.Collections.IDictionary |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-HttpPipelineAppend
SendAsync Pipeline Steps to be appended to the front of the pipeline
Parameter properties
| Type: | Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[] |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-HttpPipelinePrepend
SendAsync Pipeline Steps to be prepended to the front of the pipeline
Parameter properties
| Type: | Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[] |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Id
The unique identifier for an entity. Read-only.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-IsWheelChairAccessible
Indicates whether the place is wheelchair accessible.
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Label
User-defined description of the place.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ParentId
The ID of a parent place.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Phone
The phone number of the place.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PlaceId
A stable service-level identifier for the place object used by Places workloads.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Proxy
The URI for the proxy server to use
Parameter properties
| Type: | System.Uri |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ProxyCredential
Credentials for a proxy server to use for the remote call
Parameter properties
| Type: | System.Management.Automation.PSCredential |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ProxyUseDefaultCredentials
Use the default credentials for the proxy
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Parameter properties
| Type: | System.String |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | RHV |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Tags
Custom tags that are associated with the place for categorization or filtering.
Parameter properties
| Type: | System.String[] |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CreateExpanded
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Parameter properties
| Type: | System.Management.Automation.SwitchParameter |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | wi |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPlace
{{ Fill in the Description }}
System.Collections.IDictionary
{{ Fill in the Description }}
Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPlace
{{ Fill in the Description }}
Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
ADDRESS <IMicrosoftGraphPhysicalAddress>: physicalAddress
[(Any) <Object>]: This indicates any property can be added to this object.
[City <String>]: The city.
[CountryOrRegion <String>]: The country or region.
It's a free-format string value, for example, 'United States'.
[PostalCode <String>]: The postal code.
[State <String>]: The state.
[Street <String>]: The street.
BODYPARAMETER <IMicrosoftGraphPlace>: place
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Address <IMicrosoftGraphPhysicalAddress>]: physicalAddress
[(Any) <Object>]: This indicates any property can be added to this object.
[City <String>]: The city.
[CountryOrRegion <String>]: The country or region.
It's a free-format string value, for example, 'United States'.
[PostalCode <String>]: The postal code.
[State <String>]: The state.
[Street <String>]: The street.
[CheckIns <IMicrosoftGraphCheckInClaim[]>]: A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place.
[CalendarEventId <String>]: The unique identifier for an Outlook calendar event associated with the checkInClaim object.
For more information, see the iCalUId property in event.
[CheckInMethod <String>]: checkInMethod
[CreatedDateTime <DateTime?>]: The date and time when the checkInClaim object was created.
The timestamp type represents date and time information using ISO 8601 format and is always in UTC.
For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
[DisplayName <String>]: The name that is associated with the place.
[GeoCoordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates
[(Any) <Object>]: This indicates any property can be added to this object.
[Accuracy <Double?>]: The accuracy of the latitude and longitude.
As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters.
[Altitude <Double?>]: The altitude of the location.
[AltitudeAccuracy <Double?>]: The accuracy of the altitude.
[Latitude <Double?>]: The latitude of the location.
[Longitude <Double?>]: The longitude of the location.
[IsWheelChairAccessible <Boolean?>]: Indicates whether the place is wheelchair accessible.
[Label <String>]: User-defined description of the place.
[ParentId <String>]: The ID of a parent place.
[Phone <String>]: The phone number of the place.
[PlaceId <String>]: A stable service-level identifier for the place object used by Places workloads.
[Tags <String[]>]: Custom tags that are associated with the place for categorization or filtering.
CHECKINS <IMicrosoftGraphCheckInClaim[]>: A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. [CalendarEventId <String>]: The unique identifier for an Outlook calendar event associated with the checkInClaim object. For more information, see the iCalUId property in event. [CheckInMethod <String>]: checkInMethod [CreatedDateTime <DateTime?>]: The date and time when the checkInClaim object was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
GEOCOORDINATES <IMicrosoftGraphOutlookGeoCoordinates>: outlookGeoCoordinates
[(Any) <Object>]: This indicates any property can be added to this object.
[Accuracy <Double?>]: The accuracy of the latitude and longitude.
As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters.
[Altitude <Double?>]: The altitude of the location.
[AltitudeAccuracy <Double?>]: The accuracy of the altitude.
[Latitude <Double?>]: The latitude of the location.
[Longitude <Double?>]: The longitude of the location.