Update-AzIoTDeviceProvisioningServiceLinkedHub
Een gekoppelde IoT-hub bijwerken in een Azure IoT Hub-apparaatinrichtingsservice.
Syntaxis
Update-AzIoTDeviceProvisioningServiceLinkedHub
[-ResourceGroupName] <String>
[-Name] <String>
[-LinkedHubName] <String>
[-AllocationWeight <Int32>]
[-ApplyAllocationPolicy]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzIoTDeviceProvisioningServiceLinkedHub
[-InputObject] <PSIotHubDefinitionDescription>
[-AllocationWeight <Int32>]
[-ApplyAllocationPolicy]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzIoTDeviceProvisioningServiceLinkedHub
[-ResourceId] <String>
[-LinkedHubName] <String>
[-AllocationWeight <Int32>]
[-ApplyAllocationPolicy]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<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
Update-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -LinkedHubName "myiothub" -AllocationWeight 10 -ApplyAllocationPolicy
ResourceGroupName : myresourcegroup
Name : myiotdps
LinkedHubName : myiothub.azure-devices.net
ConnectionString : HostName=myiothub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=****
AllocationWeight : 10
ApplyAllocationPolicy : True
Location : eastus
Gekoppelde IoT-hub 'myiothub.azure-devices.net' bijwerken in een Azure IoT Hub-apparaatinrichtingsservice.
Parameters
-AllocationWeight
Toewijzingsgewicht van de IoT Hub
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ApplyAllocationPolicy
Toewijzingsbeleid toepassen op de IoT Hub
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
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 |
-InputObject
IoT Device Provisioning Service-object
Type: | PSIotHubDefinitionDescription |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-LinkedHubName
Hostnaam van gekoppelde IoT Hub
Type: | String |
Position: | 1 |
Default value: | None |
Vereist: | True |
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 |
-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