Test-AzIotHubRoute
IoT Hub'da yolları test edin
Syntax
Test-AzIotHubRoute
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzIotHubRoute
[-InputObject] <PSIotHub>
[-RouteName] <String>
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-ShowError]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzIotHubRoute
[-InputObject] <PSIotHub>
[-Source] <PSRoutingSource>
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzIotHubRoute
[-ResourceGroupName] <String>
[-Name] <String>
[-RouteName] <String>
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-ShowError]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzIotHubRoute
[-ResourceGroupName] <String>
[-Name] <String>
[-Source] <PSRoutingSource>
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzIotHubRoute
[-ResourceId] <String>
[-RouteName] <String>
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-ShowError]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzIotHubRoute
[-ResourceId] <String>
[-Source] <PSRoutingSource>
[-Body <String>]
[-AppProperty <Hashtable>]
[-SystemProperty <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Belirli bir yolu test edin.
Örnekler
Örnek 1
Test-AzIotHubRoute -ResourceGroupName "myresourcegroup" -Name "myiothub" -Source DeviceMessages
RouteName DataSource EndpointNames IsEnabled
--------- ---------- ------------- ---------
R1 DeviceMessages events True
R5 DeviceMessages E1 True
Tüm yolu "DeviceMessages" kaynağıyla test edin.
Örnek 2
Test-AzIotHubRoute -ResourceGroupName "myresourcegroup" -Name "myiothub" -RouteName R1
Result : true
Belirli bir yolu test edin.
Örnek 3
Test-AzIotHubRoute -ResourceGroupName "myresourcegroup" -Name "myiothub" -RouteName R1 -ShowError
ErrorMessage Severity LocationStartLine LocationStartColumn LocationEndLine LocationEndColumn
------------ -------- ----------------- ------------------- --------------- -----------------
Syntax error. error 1 29 1 30
Belirli bir yolu test edin ve hatanın nedenini gösterir.
Örnek 4
$ap = @{}
$ap.add("key0","value0")
$sp = @{}
$sp.add("key1", "value1")
Test-AzIotHubRoute -ResourceGroupName "myresourcegroup" -Name "myiothub" -RouteName R1 -AppProperty $ap -SystemProperty $sp
Result : true
AppProperty ve SystemProperty ile belirli bir yolu test edin.
Parametreler
-AppProperty
Yol iletisinin uygulama özellikleri
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Body
Yol iletisinin gövdesi
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
IotHub Nesnesi
Type: | PSIotHub |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
IoT Hub'ının adı
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Kaynak Grubunun Adı
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
IotHub Kaynak Kimliği
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RouteName
Yolun Adı
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ShowError
Varsa ayrıntılı hatayı göster
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Source
Yolun kaynağı
Type: | PSRoutingSource |
Accepted values: | Invalid, DeviceMessages, TwinChangeEvents, DeviceLifecycleEvents, DeviceJobLifecycleEvents, DigitalTwinChangeEvents |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SystemProperty
Yol iletisinin sistem özellikleri
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
Çıkışlar
Azure PowerShell
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin