New-MgApplicationExtensionProperty

Create a new directory extension definition, represented by an extensionProperty object.

Syntax

New-MgApplicationExtensionProperty
   -ApplicationId <String>
   [-AdditionalProperties <Hashtable>]
   [-AppDisplayName <String>]
   [-DataType <String>]
   [-DeletedDateTime <DateTime>]
   [-Id <String>]
   [-IsSyncedFromOnPremises]
   [-Name <String>]
   [-TargetObjects <String[]>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgApplicationExtensionProperty
   -ApplicationId <String>
   -BodyParameter <IMicrosoftGraphExtensionProperty>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgApplicationExtensionProperty
   -InputObject <IApplicationsIdentity>
   [-AdditionalProperties <Hashtable>]
   [-AppDisplayName <String>]
   [-DataType <String>]
   [-DeletedDateTime <DateTime>]
   [-Id <String>]
   [-IsSyncedFromOnPremises]
   [-Name <String>]
   [-TargetObjects <String[]>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgApplicationExtensionProperty
   -InputObject <IApplicationsIdentity>
   -BodyParameter <IMicrosoftGraphExtensionProperty>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create a new directory extension definition, represented by an extensionProperty object.

Examples

Example 1: Using the New-MgApplicationExtensionProperty Cmdlet

Import-Module Microsoft.Graph.Applications
$params = @{
	Name = "jobGroup"
	DataType = "String"
	TargetObjects = @(
		"User"
	)
}
New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params

This example shows how to use the New-MgApplicationExtensionProperty Cmdlet. To learn about permissions for this resource, see the permissions reference.

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AppDisplayName

Display name of the application object on which this extension property is defined. Read-only.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ApplicationId

key: id of application

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

extensionProperty To construct, please use Get-Help -Online and see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IMicrosoftGraphExtensionProperty
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DataType

Specifies the data type of the value the extension property can hold. Following values are supported. Not nullable. Binary - 256 bytes maximumBooleanDateTime - Must be specified in ISO 8601 format. Will be stored in UTC.Integer - 32-bit value.LargeInteger - 64-bit value.String - 256 characters maximum

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-DeletedDateTime

Date and time when this object was deleted. Always null when the object hasn't been deleted.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Id

The unique idenfier for an entity. Read-only.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, please use Get-Help -Online and see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IApplicationsIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-IsSyncedFromOnPremises

Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the extension property. Not nullable. Supports $filter (eq).

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-TargetObjects

Following values are supported. Not nullable. UserGroupAdministrativeUnitApplicationDeviceOrganization

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IApplicationsIdentity

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphExtensionProperty

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphExtensionProperty

Notes

ALIASES

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.

BODYPARAMETER <IMicrosoftGraphExtensionProperty>: extensionProperty

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [DeletedDateTime <DateTime?>]: Date and time when this object was deleted. Always null when the object hasn't been deleted.
  • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [AppDisplayName <String>]: Display name of the application object on which this extension property is defined. Read-only.
  • [DataType <String>]: Specifies the data type of the value the extension property can hold. Following values are supported. Not nullable. Binary - 256 bytes maximumBooleanDateTime - Must be specified in ISO 8601 format. Will be stored in UTC.Integer - 32-bit value.LargeInteger - 64-bit value.String - 256 characters maximum
  • [IsSyncedFromOnPremises <Boolean?>]: Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only.
  • [Name <String>]: Name of the extension property. Not nullable. Supports $filter (eq).
  • [TargetObjects <String[]>]: Following values are supported. Not nullable. UserGroupAdministrativeUnitApplicationDeviceOrganization

INPUTOBJECT <IApplicationsIdentity>: Identity Parameter

  • [AppManagementPolicyId <String>]: key: id of appManagementPolicy
  • [AppRoleAssignmentId <String>]: key: id of appRoleAssignment
  • [ApplicationId <String>]: key: id of application
  • [ApplicationTemplateId <String>]: key: id of applicationTemplate
  • [ClaimsMappingPolicyId <String>]: key: id of claimsMappingPolicy
  • [ConnectorGroupId <String>]: key: id of connectorGroup
  • [ConnectorId <String>]: key: id of connector
  • [DelegatedPermissionClassificationId <String>]: key: id of delegatedPermissionClassification
  • [DirectoryDefinitionId <String>]: key: id of directoryDefinition
  • [DirectoryObjectId <String>]: key: id of directoryObject
  • [EndpointId <String>]: key: id of endpoint
  • [ExtensionPropertyId <String>]: key: id of extensionProperty
  • [FederatedIdentityCredentialId <String>]: key: id of federatedIdentityCredential
  • [GroupId <String>]: key: id of group
  • [HomeRealmDiscoveryPolicyId <String>]: key: id of homeRealmDiscoveryPolicy
  • [LicenseDetailsId <String>]: key: id of licenseDetails
  • [OAuth2PermissionGrantId <String>]: key: id of oAuth2PermissionGrant
  • [OnPremisesAgentGroupId <String>]: key: id of onPremisesAgentGroup
  • [OnPremisesAgentGroupId1 <String>]: key: id of onPremisesAgentGroup
  • [OnPremisesAgentId <String>]: key: id of onPremisesAgent
  • [OnPremisesPublishingProfileId <String>]: key: id of onPremisesPublishingProfile
  • [PublishedResourceId <String>]: key: id of publishedResource
  • [ServicePrincipalId <String>]: key: id of servicePrincipal
  • [SynchronizationJobId <String>]: key: id of synchronizationJob
  • [SynchronizationTemplateId <String>]: key: id of synchronizationTemplate
  • [TokenIssuancePolicyId <String>]: key: id of tokenIssuancePolicy
  • [TokenLifetimePolicyId <String>]: key: id of tokenLifetimePolicy
  • [UserId <String>]: key: id of user