你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzPeeringConnectionMonitorTest
获取具有给定订阅、资源组和对等互连服务下指定名称的现有连接监视器测试。
语法
Get-AzPeeringConnectionMonitorTest
-PeeringServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringConnectionMonitorTest
-Name <String>
-PeeringServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringConnectionMonitorTest
-InputObject <IPeeringIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取具有给定订阅、资源组和对等互连服务下指定名称的现有连接监视器测试。
示例
示例 1:列出所有连接监视器测试
Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest
SourceAgent Destination DestinationPort TestFrequency Sucessful ProvisioningState
----------- ----------- --------------- ------------- --------- -----------------
Agent 1 1.1.1.1 80 30 True Succeeded
Agent 2 8.8.8.8 80 30 True Succeeded
列出所有连接监视器测试对象
示例 2:获取单连接监视器测试
Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest -Name TestName
SourceAgent Destination DestinationPort TestFrequency Sucessful ProvisioningState
----------- ----------- --------------- ------------- --------- -----------------
Agent 1 1.1.1.1 80 30 True Succeeded
获取单个连接监视器测试
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
Type: | IPeeringIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
连接监视器测试的名称
Type: | String |
Aliases: | ConnectionMonitorTestName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PeeringServiceName
对等互连服务的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
资源组的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Azure 订阅 ID。
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输入
输出
备注
别名
复杂参数属性
若要创建下面所述的参数,请构造一个包含相应属性的哈希表。 有关哈希表的信息,请运行 Get-Help about_Hash_Tables。
INPUTOBJECT <IPeeringIdentity>
:标识参数
[ConnectionMonitorTestName <String>]
:连接监视器测试的名称[Id <String>]
:资源标识路径[PeerAsnName <String>]
:对等 ASN 名称。[PeeringName <String>]
:对等互连的名称。[PeeringServiceName <String>]
:对等互连服务的名称。[PrefixName <String>]
:前缀的名称。[RegisteredAsnName <String>]
:已注册的 ASN 的名称。[RegisteredPrefixName <String>]
:已注册前缀的名称。[ResourceGroupName <String>]
:资源组的名称。[SubscriptionId <String>]
:Azure 订阅 ID。