共用方式為


Get-AzConnectedPrivateLinkScope

傳回 Azure Arc PrivateLinkScope。

語法

Get-AzConnectedPrivateLinkScope
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzConnectedPrivateLinkScope
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzConnectedPrivateLinkScope
   -ResourceGroupName <String>
   -ScopeName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

傳回 Azure Arc PrivateLinkScope。

範例

範例 1:取得資源群組的所有私人鏈接範圍

Get-AzConnectedPrivateLinkScope -ResourceGroupName 'ytongtest'

Id                           : /subscriptions/subcriptionid/resourceGroups/ytongtest/providers/M
                               icrosoft.HybridCompute/privateLinkScopes/myScope
Location                     : centraluseuap
Name                         : myScope
PrivateEndpointConnection    : {}
PrivateLinkScopeId           : scopeId
ProvisioningState            : Succeeded
PublicNetworkAccess          : Enabled
ResourceGroupName            : ytongtest
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
Tag                          : {
                               }
Type                         : Microsoft.HybridCompute/privateLinkScopes

取得資源群組的所有私人連結範圍

範例 2:取得特定的私人鏈接範圍

Get-AzConnectedPrivateLinkScope -ResourceGroupName 'ytongtest' -ScopeName 'myScope'

Id                           : /subscriptions/********-****-****-****-**********/resourceGroups/ytongtest/providers/Microsoft.HybridCompute/privateLinkScopes/myScope
Location                     : centraluseuap
Name                         : myScope
PrivateEndpointConnection    : {}
PrivateLinkScopeId           : ********-****-****-****-**********
ProvisioningState            : Succeeded
PublicNetworkAccess          : Enabled
ResourceGroupName            : ytongtest
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
Tag                          : {
                               }
Type                         : Microsoft.HybridCompute/privateLinkScopes

取得特定的私人連結範圍

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ScopeName

Azure Arc PrivateLinkScope 資源的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

目標訂用帳戶的標識碼。

類型:String[]
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

輸出