Freigeben über


New-AzIotHubImportDevice

Erstellt einen neuen Importgeräteauftrag.

Syntax

New-AzIotHubImportDevice
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-InputBlobContainerUri] <String>
   [-OutputBlobContainerUri] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Beschreibung

Erstellt einen neuen Importgeräteauftrag für IotHub. Dadurch werden alle Geräte aus dem angegebenen Container in iotHub importiert. Weitere Informationen zum Generieren des SAS-URI finden Sie im folgenden Artikel. https://learn.microsoft.com/azure/iot-hub/iot-hub-bulk-identity-mgmt#get-the-container-sas-uri .

Beispiele

Beispiel 1

New-AzIotHubImportDevice -ResourceGroupName "myresourcegroup" -Name "myiothub" -InputBlobContainerUri "https://mystorageaccount.blob.core.windows.net/mystoragecontainer?sv=2015-04-05&ss=bfqt&sr=c&srt=sco&sp=rwdl&se=2016-10-27T04:01:48Z&st=2016-10-26T20:01:48Z&spr=https&sig=QqpIhHsIMF8hNuFO%3D" -OutputBlobContainerUri "https://mystorageaccount.blob.core.windows.net/?sv=2015-04-05&ss=bfqt&sr=c&srt=sco&sp=rwdl&se=2016-10-27T04:01:48Z&st=2016-10-26T20:01:48Z&spr=https&sig=QqpIhHsIMF8hNuFO%3D"

Erstellt eine neue Importgerätanforderung für den IotHub "myiothub".

Parameter

-Confirm

Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.

Typ:SwitchParameter
Aliases:cf
Position:Named
Standardwert:False
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Typ:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-InputBlobContainerUri

Eingabe-BLOB-Container-URI für FileUpload

Typ:String
Position:2
Standardwert:None
Erforderlich:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name des IotHub

Typ:String
Position:1
Standardwert:None
Erforderlich:True
Accept pipeline input:True
Accept wildcard characters:False

-OutputBlobContainerUri

Der URI, in den die Ausgabe geschrieben werden soll.

Typ:String
Position:3
Standardwert:None
Erforderlich:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Ressourcengruppenname

Typ:String
Position:0
Standardwert:None
Erforderlich:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Typ:SwitchParameter
Aliases:wi
Position:Named
Standardwert:False
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

String

Ausgaben

PSIotHubJobResponse