Add-AzIoTDeviceProvisioningServiceEnrollment
Maak een registratierecord voor apparaten.
Syntaxis
Add-AzIoTDeviceProvisioningServiceEnrollment
[-ResourceGroupName] <String>
[-DpsName] <String>
-RegistrationId <String>
-AttestationType <PSAttestationMechanismType>
[-DeviceId <String>]
[-EndorsementKey <String>]
[-StorageRootKey <String>]
[-PrimaryKey <String>]
[-SecondaryKey <String>]
[-PrimaryCertificate <String>]
[-SecondaryCertificate <String>]
[-RootCertificate]
[-PrimaryCAName <String>]
[-SecondaryCAName <String>]
[-ReprovisionPolicy <PSReprovisionType>]
[-EdgeEnabled]
[-Tag <Hashtable>]
[-Desired <Hashtable>]
[-AllocationPolicy <PSAllocationPolicy>]
[-ProvisioningStatus <PSProvisioningStatus>]
[-IotHubHostName <String>]
[-IotHub <String[]>]
[-WebhookUrl <String>]
[-ApiVersion <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzIoTDeviceProvisioningServiceEnrollment
[-DpsObject] <PSProvisioningServiceDescription>
-RegistrationId <String>
-AttestationType <PSAttestationMechanismType>
[-DeviceId <String>]
[-EndorsementKey <String>]
[-StorageRootKey <String>]
[-PrimaryKey <String>]
[-SecondaryKey <String>]
[-PrimaryCertificate <String>]
[-SecondaryCertificate <String>]
[-RootCertificate]
[-PrimaryCAName <String>]
[-SecondaryCAName <String>]
[-ReprovisionPolicy <PSReprovisionType>]
[-EdgeEnabled]
[-Tag <Hashtable>]
[-Desired <Hashtable>]
[-AllocationPolicy <PSAllocationPolicy>]
[-ProvisioningStatus <PSProvisioningStatus>]
[-IotHubHostName <String>]
[-IotHub <String[]>]
[-WebhookUrl <String>]
[-ApiVersion <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzIoTDeviceProvisioningServiceEnrollment
[-ResourceId] <String>
-RegistrationId <String>
-AttestationType <PSAttestationMechanismType>
[-DeviceId <String>]
[-EndorsementKey <String>]
[-StorageRootKey <String>]
[-PrimaryKey <String>]
[-SecondaryKey <String>]
[-PrimaryCertificate <String>]
[-SecondaryCertificate <String>]
[-RootCertificate]
[-PrimaryCAName <String>]
[-SecondaryCAName <String>]
[-ReprovisionPolicy <PSReprovisionType>]
[-EdgeEnabled]
[-Tag <Hashtable>]
[-Desired <Hashtable>]
[-AllocationPolicy <PSAllocationPolicy>]
[-ProvisioningStatus <PSProvisioningStatus>]
[-IotHubHostName <String>]
[-IotHub <String[]>]
[-WebhookUrl <String>]
[-ApiVersion <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Een apparaatinschrijving maken in een Azure IoT Hub Device Provisioning Service.
Voorbeelden
Voorbeeld 1
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType SymmetricKey
Een inschrijving maken met het attestation-type SymmetricKey
Voorbeeld 2
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType Tpm -EndorsementKey "endorementkey"
Maak een inschrijving met TPM-attestation.
Voorbeeld 3
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType X509 -PrimaryCertificate "D:/primary.cer"
Een inschrijving maken met attestation-type X509
Voorbeeld 4
$tag = @{}
$tag.Add("environment","test")
$desired = @{}
$desired.add("version_dps", "dps1")
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType SymmetricKey -tag $tag -Desired $desired
Maak een inschrijving met het attestation-type SymmetricKey en de eerste dubbele status.
Parameters
-AllocationPolicy
Type toewijzing voor apparaat dat is toegewezen aan de hub.
Type: | PSAllocationPolicy |
Geaccepteerde waarden: | Hashed, GeoLatency, Static, Custom |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ApiVersion
De API-versie van de inrichtingsservice in de aangepaste toewijzingsaanvraag.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-AttestationType
Attestation-mechanisme.
Type: | PSAttestationMechanismType |
Geaccepteerde waarden: | None, Tpm, X509, SymmetricKey |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Desired
Gewenste eigenschappen van eerste dubbel.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DeviceId
IoT Hub-apparaat-id.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DpsName
Naam van de IoT Device Provisioning Service
Type: | String |
Position: | 1 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DpsObject
IoT Device Provisioning Service-object
Type: | PSProvisioningServiceDescription |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-EdgeEnabled
Vlag die aangeeft dat edge is ingeschakeld.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-EndorsementKey
TPM-goedkeuringssleutel voor een TPM-apparaat.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-IotHub
Hostnaam van doel-IoT Hub. Gebruik een door spaties gescheiden lijst voor meerdere IoT Hubs.
Type: | String[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-IotHubHostName
Hostnaam van de doel-IoT Hub.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-PrimaryCAName
De naam van het primaire basis-CA-certificaat. Als attestation met een basis-CA-certificaat gewenst is, moet er een basis-CA-naam worden opgegeven.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-PrimaryCertificate
Het pad naar het bestand met het primaire certificaat. Base-64-weergave van X509-certificaat .cer bestand of PEM-bestandspad.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-PrimaryKey
De primaire symmetrische gedeelde toegangssleutel die is opgeslagen in base64-indeling.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ProvisioningStatus
Inschrijvingsvermelding in- of uitschakelen.
Type: | PSProvisioningStatus |
Geaccepteerde waarden: | Enabled, Disabled |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-RegistrationId
Registratie-id voor afzonderlijke inschrijving.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ReprovisionPolicy
Apparaatgegevens die moeten worden verwerkt bij het opnieuw inrichten van een andere IoT-hub.
Type: | PSReprovisionType |
Geaccepteerde waarden: | reprovisionandmigratedata, reprovisionandresetdata, never |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
Naam van de resourcegroep
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceId
Resource-id van IoT Device Provisioning Service
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-RootCertificate
Hiermee kunt u X509attestation maken met behulp van basiscertificaten.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SecondaryCAName
De naam van het secundaire basis-CA-certificaat. Als attestation met een basis-CA-certificaat gewenst is, moet er een basis-CA-naam worden opgegeven.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SecondaryCertificate
Het pad naar het bestand met het secundaire certificaat. Base-64-weergave van X509-certificaat .cer bestand of PEM-bestandspad.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SecondaryKey
De secundaire symmetrische gedeelde toegangssleutel die is opgeslagen in base64-indeling.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-StorageRootKey
TPM-opslaghoofdsleutel voor een TPM-apparaat.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Tag
Eerste dubbeltags.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WebhookUrl
De webhook-URL die wordt gebruikt voor aangepaste toewijzingsaanvragen.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell