Remove-AzIotHubDeviceChildren
從指定的邊緣裝置中移除非邊緣裝置作為子系。
Syntax
Remove-AzIotHubDeviceChildren
[-ResourceGroupName] <String>
[-IotHubName] <String>
[-DeviceId] <String>
[-Children <String[]>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzIotHubDeviceChildren
[-InputObject] <PSIotHub>
[-DeviceId] <String>
[-Children <String[]>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzIotHubDeviceChildren
[-ResourceId] <String>
[-DeviceId] <String>
[-Children <String[]>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
拿掉所有或提及的非邊緣裝置作為子系指定的邊緣裝置。
範例
範例 1
Remove-AzIotHubDeviceChildren -ResourceGroupName "myresourcegroup" -IotHubName "myiothub" -DeviceId "myDevice1" -Children device1,device2 -Passthru
True
將提及的裝置移除為指定裝置的子系。
範例 2
Remove-AzIotHubDeviceChildren -ResourceGroupName "myresourcegroup" -IotHubName "myiothub" -DeviceId "myDevice1" -Passthru
True
拿掉所有非邊緣裝置作為子系指定的邊緣裝置。
參數
-Children
子裝置清單 (逗號分隔) 只包含非邊緣裝置。
類型: | String[] |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
執行 Cmdlet 之前先提示您確認。
類型: | SwitchParameter |
Aliases: | cf |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeviceId
邊緣裝置的標識碼。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
IotHub 物件
類型: | PSIotHub |
Position: | 0 |
預設值: | None |
必要: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IotHubName
IoT 中樞的名稱
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
允許傳回布爾物件。 根據預設,此 Cmdlet 不會產生任何輸出。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
資源群組的名稱
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
IotHub 資源標識碼
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。
類型: | SwitchParameter |
Aliases: | wi |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應