New-MgBetaDirectoryTemplateDeviceFromTemplate
Create a new device from a deviceTemplate.
Syntax
New-MgBetaDirectoryTemplateDeviceFromTemplate
-DeviceTemplateId <String>
[-ResponseHeadersVariable <String>]
[-AccountEnabled]
[-AdditionalProperties <Hashtable>]
[-AlternativeNames <String[]>]
[-ExternalDeviceId <String>]
[-ExternalSourceName <String>]
[-KeyCredential <IMicrosoftGraphKeyCredential>]
[-OperatingSystemVersion <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgBetaDirectoryTemplateDeviceFromTemplate
-DeviceTemplateId <String>
-BodyParameter <IPaths13Urud7DirectoryTemplatesDevicetemplatesDevicetemplateIdMicrosoftGraphCreatedevicefromtemplatePostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgBetaDirectoryTemplateDeviceFromTemplate
-InputObject <IIdentityDirectoryManagementIdentity>
[-ResponseHeadersVariable <String>]
[-AccountEnabled]
[-AdditionalProperties <Hashtable>]
[-AlternativeNames <String[]>]
[-ExternalDeviceId <String>]
[-ExternalSourceName <String>]
[-KeyCredential <IMicrosoftGraphKeyCredential>]
[-OperatingSystemVersion <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgBetaDirectoryTemplateDeviceFromTemplate
-InputObject <IIdentityDirectoryManagementIdentity>
-BodyParameter <IPaths13Urud7DirectoryTemplatesDevicetemplatesDevicetemplateIdMicrosoftGraphCreatedevicefromtemplatePostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Create a new device from a deviceTemplate.
Parameters
-AccountEnabled
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AdditionalProperties
Additional Parameters
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AlternativeNames
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: | IPaths13Urud7DirectoryTemplatesDevicetemplatesDevicetemplateIdMicrosoftGraphCreatedevicefromtemplatePostRequestbodyContentApplicationJsonSchema |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeviceTemplateId
The unique identifier of deviceTemplate
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExternalDeviceId
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExternalSourceName
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IIdentityDirectoryManagementIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-KeyCredential
keyCredential To construct, see NOTES section for KEYCREDENTIAL properties and create a hash table.
Type: | IMicrosoftGraphKeyCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OperatingSystemVersion
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.Beta.PowerShell.Models.IIdentityDirectoryManagementIdentity
Microsoft.Graph.Beta.PowerShell.Models.IPaths13Urud7DirectoryTemplatesDevicetemplatesDevicetemplateIdMicrosoftGraphCreatedevicefromtemplatePostRequestbodyContentApplicationJsonSchema
System.Collections.IDictionary
Outputs
Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphDevice
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.
BODYPARAMETER <IPaths13Urud7DirectoryTemplatesDevicetemplatesDevicetemplateIdMicrosoftGraphCreatedevicefromtemplatePostRequestbodyContentApplicationJsonSchema>
: .
[(Any) <Object>]
: This indicates any property can be added to this object.[AccountEnabled <Boolean?>]
:[AlternativeNames <String-
[]>]
:[ExternalDeviceId <String>]
:[ExternalSourceName <String>]
:[KeyCredential <IMicrosoftGraphKeyCredential>]
: keyCredential[(Any) <Object>]
: This indicates any property can be added to this object.[CustomKeyIdentifier <Byte-
[]>]
: A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate.[DisplayName <String>]
: The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional.[EndDateTime <DateTime?>]
: The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[Key <Byte-
[]>]
: Value for the key credential. Should be a Base64 encoded value. Returned only on $select for a single object, that is, GET applications/{applicationId}?$select=keyCredentials or GET servicePrincipals/{servicePrincipalId}?$select=keyCredentials; otherwise, it's always null. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key.[KeyId <String>]
: The unique identifier for the key.[StartDateTime <DateTime?>]
: The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[Type <String>]
: The type of key credential; for example, Symmetric, AsymmetricX509Cert, or X509CertAndPassword.[Usage <String>]
: A string that describes the purpose for which the key can be used; for example, None, Verify, PairwiseIdentifier, Delegation, Decrypt, Encrypt, HashedIdentifier, SelfSignedTls, or Sign. If usage is Sign, the type should be X509CertAndPassword, and the passwordCredentials for signing should be defined.
[OperatingSystemVersion <String>]
:
INPUTOBJECT <IIdentityDirectoryManagementIdentity>
: Identity Parameter
[AdministrativeUnitId <String>]
: The unique identifier of administrativeUnit[AllowedValueId <String>]
: The unique identifier of allowedValue[AttributeSetId <String>]
: The unique identifier of attributeSet[CertificateAuthorityAsEntityId <String>]
: The unique identifier of certificateAuthorityAsEntity[CertificateAuthorityDetailId <String>]
: The unique identifier of certificateAuthorityDetail[CertificateBasedApplicationConfigurationId <String>]
: The unique identifier of certificateBasedApplicationConfiguration[CertificateBasedAuthPkiId <String>]
: The unique identifier of certificateBasedAuthPki[CommandId <String>]
: The unique identifier of command[CommerceSubscriptionId <String>]
: Alternate key of companySubscription[CompanySubscriptionId <String>]
: The unique identifier of companySubscription[ContractId <String>]
: The unique identifier of contract[CustomSecurityAttributeDefinitionId <String>]
: The unique identifier of customSecurityAttributeDefinition[DeviceId <String>]
: The unique identifier of device[DeviceLocalCredentialInfoId <String>]
: The unique identifier of deviceLocalCredentialInfo[DeviceTemplateId <String>]
: The unique identifier of deviceTemplate[DirectoryObjectId <String>]
: The unique identifier of directoryObject[DirectoryRoleId <String>]
: The unique identifier of directoryRole[DirectoryRoleTemplateId <String>]
: The unique identifier of directoryRoleTemplate[DirectorySettingId <String>]
: The unique identifier of directorySetting[DirectorySettingTemplateId <String>]
: The unique identifier of directorySettingTemplate[DomainDnsRecordId <String>]
: The unique identifier of domainDnsRecord[DomainId <String>]
: The unique identifier of domain[DomainName <String>]
: Usage: domainName='{domainName}'[ExtensionId <String>]
: The unique identifier of extension[ExternalUserProfileId <String>]
: The unique identifier of externalUserProfile[FeatureRolloutPolicyId <String>]
: The unique identifier of featureRolloutPolicy[HardwareOathTokenAuthenticationMethodDeviceId <String>]
: The unique identifier of hardwareOathTokenAuthenticationMethodDevice[IdentityProviderBaseId <String>]
: The unique identifier of identityProviderBase[ImpactedResourceId <String>]
: The unique identifier of impactedResource[InboundSharedUserProfileUserId <String>]
: The unique identifier of inboundSharedUserProfile[InternalDomainFederationId <String>]
: The unique identifier of internalDomainFederation[MutualTlsOauthConfigurationId <String>]
: The unique identifier of mutualTlsOauthConfiguration[OcpSubscriptionId <String>]
: Alternate key of companySubscription[OnPremisesDirectorySynchronizationId <String>]
: The unique identifier of onPremisesDirectorySynchronization[OrgContactId <String>]
: The unique identifier of orgContact[OrganizationId <String>]
: The unique identifier of organization[OrganizationalBrandingLocalizationId <String>]
: The unique identifier of organizationalBrandingLocalization[OutboundSharedUserProfileUserId <String>]
: The unique identifier of outboundSharedUserProfile[PendingExternalUserProfileId <String>]
: The unique identifier of pendingExternalUserProfile[ProfileCardPropertyId <String>]
: The unique identifier of profileCardProperty[RecommendationId <String>]
: The unique identifier of recommendation[RoleTemplateId <String>]
: Alternate key of directoryRole[ScopedRoleMembershipId <String>]
: The unique identifier of scopedRoleMembership[SharedEmailDomainId <String>]
: The unique identifier of sharedEmailDomain[SharedEmailDomainInvitationId <String>]
: The unique identifier of sharedEmailDomainInvitation[SubscribedSkuId <String>]
: The unique identifier of subscribedSku[TenantId <String>]
: Usage: tenantId='{tenantId}'[TenantReferenceTenantId <String>]
: The unique identifier of tenantReference[UsageRightId <String>]
: The unique identifier of usageRight[UserId <String>]
: The unique identifier of user
KEYCREDENTIAL <IMicrosoftGraphKeyCredential>
: keyCredential
[(Any) <Object>]
: This indicates any property can be added to this object.[CustomKeyIdentifier <Byte-
[]>]
: A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate.[DisplayName <String>]
: The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional.[EndDateTime <DateTime?>]
: The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[Key <Byte-
[]>]
: Value for the key credential. Should be a Base64 encoded value. Returned only on $select for a single object, that is, GET applications/{applicationId}?$select=keyCredentials or GET servicePrincipals/{servicePrincipalId}?$select=keyCredentials; otherwise, it's always null. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key.[KeyId <String>]
: The unique identifier for the key.[StartDateTime <DateTime?>]
: The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[Type <String>]
: The type of key credential; for example, Symmetric, AsymmetricX509Cert, or X509CertAndPassword.[Usage <String>]
: A string that describes the purpose for which the key can be used; for example, None, Verify, PairwiseIdentifier, Delegation, Decrypt, Encrypt, HashedIdentifier, SelfSignedTls, or Sign. If usage is Sign, the type should be X509CertAndPassword, and the passwordCredentials for signing should be defined.