Get-AzIotHubDeviceConnectionString
Haal de verbindingsreeks van een IoT-doelapparaat op in een IoT-hub.
Syntaxis
Get-AzIotHubDeviceConnectionString
[-ResourceGroupName] <String>
[-IotHubName] <String>
[-DeviceId <String>]
[-KeyType <PSKeyType>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubDeviceConnectionString
[-InputObject] <PSIotHub>
[-DeviceId <String>]
[-KeyType <PSKeyType>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubDeviceConnectionString
[-ResourceId] <String>
[-DeviceId <String>]
[-KeyType <PSKeyType>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Maak een lijst met verbindingsreeksen van alle apparaten of een ioT-doelapparaat in een Azure IoT Hub.
Voorbeelden
Voorbeeld 1
Get-AzIotHubDeviceConnectionString -ResourceGroupName "myresourcegroup" -IotHubName "myiothub"
Device Id Connection String
--------- -----------------
device1 HostName=myiothub.azure-devices.net;DeviceId=device1;SharedAccessKey=/X4y******
device2 HostName=myiothub.azure-devices.net;DeviceId=device2;x509=true
Alle verbindingsreeksen voor apparaten weergeven in een IoT-hub.
Voorbeeld 2
Get-AzIotHubDeviceConnectionString -ResourceGroupName "myresourcegroup" -IotHubName "myiothub" -DeviceId "device1" -KeyType secondary
Device Id Connection String
--------- -----------------
device1 HostName=myiothub.azure-devices.net;DeviceId=device1;SharedAccessKey=/X4y******
Haal de secundaire verbindingsreeks van een IoT-apparaat op.
Parameters
-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 |
-DeviceId
Doelapparaat-id.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-InputObject
IotHub-object
Type: | PSIotHub |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-IotHubName
Naam van de IoT-hub
Type: | String |
Position: | 1 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-KeyType
Sleuteltype voor gedeeld toegangsbeleid voor verificatie.
Type: | PSKeyType |
Geaccepteerde waarden: | primary, secondary |
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
IotHub-resource-id
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure PowerShell