你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzPeeringServicePrefix
获取具有给定订阅、资源组和对等互连服务下指定名称的现有前缀。
语法
Get-AzPeeringServicePrefix
-PeeringServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringServicePrefix
-Name <String>
-PeeringServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringServicePrefix
-InputObject <IPeeringIdentity>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取具有给定订阅、资源组和对等互连服务下指定名称的现有前缀。
示例
示例 1:列出所有对等互连服务前缀
Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
Name Prefix Key PrefixValidationState LearnedType ProvisioningState
---- ------ --- --------------------- ----------- -----------------
TestPrefix 91.194.255.0/24 6a7f0d42-e49c-4eea-a930-280610671c3f Failed None Succeeded
TestPrefix2 240.0.0.0/24 Failed None Succeeded
列出对等互连服务的所有对等互连服务前缀
示例 2:获取特定的对等互连服务前缀
Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -Name TestPrefix
Name Prefix Key PrefixValidationState LearnedType ProvisioningState
---- ------ --- --------------------- ----------- -----------------
TestPrefix 91.194.255.0/24 6a7f0d42-e49c-4eea-a930-280610671c3f Failed None Succeeded
获取特定的对等互连服务前缀
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Expand
要展开的属性。
Type: | String |
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: | PrefixName |
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。