Get-AzIotHubModule
Rufen Sie die Details eines IoT-Gerätemoduls oder Listenmoduls auf einem IoT-Gerät in einem IoT Hub ab.
Syntax
Get-AzIotHubModule
[-ResourceGroupName] <String>
[-IotHubName] <String>
[-DeviceId] <String>
[-ModuleId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubModule
[-InputObject] <PSIotHub>
[-DeviceId] <String>
[-ModuleId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubModule
[-ResourceId] <String>
[-DeviceId] <String>
[-ModuleId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Beschreibung
Rufen Sie die Details eines IoT-Gerätemoduls oder Listenmoduls auf einem IoT-Gerät in einem IoT Hub ab.
Beispiele
Beispiel 1
Get-AzIotHubModule -ResourceGroupName "myresourcegroup" -IotHubName "myiothub" -DeviceId "myDevice1" -ModuleId "myModule1"
ModuleId : myModule1
DeviceId : myDevice1
GenerationId : 637148941292917073
ETag : "NzIyMDI4MTk3"
LastActivityTime : 1/1/0001 12:00:00 AM
ConnectionState : Disconnected
ConnectionStateUpdatedTime : 1/1/0001 12:00:00 AM
CloudToDeviceMessageCount : 0
Authentication : Sas
ManagedBy :
Rufen Sie die Details eines IoT-Gerätemoduls in einem IoT-Hub ab.
Beispiel 2
Get-AzIotHubModule -ResourceGroupName "myresourcegroup" -IotHubName "myiothub" -DeviceId "myDevice1"
Module Id Device Id Connection State Authentication Last Activity Time
--------- --------- ---------------- -------------- ------------------
module1 myDevice1 Disconnected Sas 1/1/0001 12:00:00 AM
module2 myDevice1 Disconnected Sas 1/1/0001 12:00:00 AM
Zeigen Sie alle Module auf einem IoT-Gerät in einem IoT-Hub an.
Parameter
-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 |
-DeviceId
Zielgeräte-ID.
Typ: | String |
Position: | 1 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
IotHub-Objekt
Typ: | PSIotHub |
Position: | 0 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IotHubName
Name des Iot Hub
Typ: | String |
Position: | 1 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ModuleId
Zielmodul-ID.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Name der Ressourcengruppe
Typ: | String |
Position: | 0 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
IotHub-Ressourcen-ID
Typ: | String |
Position: | 0 |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Eingaben
Ausgaben
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für