Get-AzIoTDeviceProvisioningServiceLinkedHub
Geef alle items weer of geef details weer van gekoppelde IoT-hubs in een Azure IoT Hub-apparaatinrichtingsservice.
Syntaxis
Get-AzIoTDeviceProvisioningServiceLinkedHub
[-ResourceGroupName] <String>
[-Name] <String>
[-LinkedHubName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIoTDeviceProvisioningServiceLinkedHub
[-DpsObject] <PSProvisioningServiceDescription>
[-LinkedHubName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIoTDeviceProvisioningServiceLinkedHub
[-ResourceId] <String>
[-LinkedHubName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Zie https://learn.microsoft.com/azure/iot-dps/about-iot-dpsvoor een inleiding tot Azure IoT Hub Device Provisioning Service.
Voorbeelden
Voorbeeld 1
Get-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps"
LinkedHubName Location AllocationWeight ApplyAllocationPolicy
------------- -------- ---------------- ---------------------
myiothub1.azure-devices.net eastus 2
myiothub2.azure-devices.net westus2 true
Vermeld alle gekoppelde IoT-hubs in 'myiotdps'.
Voorbeeld 2
Get-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -LinkedHubName "myiothub1"
ResourceGroupName : myresourcegroup
Name : myiotdps
LinkedHubName : myiothub1.azure-devices.net
ConnectionString : HostName=myiothub1.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=****
AllocationWeight : 2
ApplyAllocationPolicy :
Location : eastus
Details weergeven van gekoppelde IoT-hub 'myiothub1' in een Azure IoT Hub-apparaatinrichtingsservice.
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 |
-DpsObject
IoT Device Provisioning Service-object
Type: | PSProvisioningServiceDescription |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-LinkedHubName
Hostnaam van gekoppelde IoT Hub
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Name
Naam van de IoT Device Provisioning Service
Type: | String |
Position: | 1 |
Default value: | None |
Vereist: | True |
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 |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell