Get-AzPeeringRegisteredAsn
取得在指定訂用帳戶、資源群組和對等互連下具有指定名稱的現有已註冊 ASN。
Syntax
Get-AzPeeringRegisteredAsn
-PeeringName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringRegisteredAsn
-Name <String>
-PeeringName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPeeringRegisteredAsn
-InputObject <IPeeringIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得在指定訂用帳戶、資源群組和對等互連下具有指定名稱的現有已註冊 ASN。
範例
範例 1:列出所有已註冊的對等互連 ASN
Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo
Name Asn PeeringServicePrefixKey ProvisioningState
---- --- ----------------------- -----------------
fgfg 6500 767c9f30-7388-49ef-ba8e-e2d16d1c08e4 Succeeded
homedepottest 65000 32259ee0-ea01-495e-8279-06c24ef7aae0 Succeeded
JonOrmondTest 62540 e3f552c5-909e-434b-8fab-93e524a1aeed Succeeded
列出所有已註冊 asn 的對等互連
範例 2:取得特定註冊為對等互連
Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Name fgfg
Name Asn PeeringServicePrefixKey ProvisioningState
---- --- ----------------------- -----------------
fgfg 6500 767c9f30-7388-49ef-ba8e-e2d16d1c08e4 Succeeded
依名稱取得對等互連的特定註冊 asn
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | IPeeringIdentity |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
已註冊 ASN 的名稱。
類型: | String |
Aliases: | RegisteredAsnName |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PeeringName
對等互連的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
資源群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Azure 訂閱識別碼。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應