共用方式為


Get-AzEventHubPrivateLink

取得支援 Privatelinks 的資源清單。

語法

Get-AzEventHubPrivateLink
   -NamespaceName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得支援 Privatelinks 的資源清單。

範例

範例 1:取得與 EventHub 命名空間相關聯的私人連結

Get-AzEventHubPrivateLink -ResourceGroupName myResourceGroup -NamespaceName myNamespace

GroupId          : namespace
Id               : subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/privateLinkResources/namespace
Name             : namespace
RequiredMember   : {namespace}
RequiredZoneName : {privatelink.servicebus.windows.net}
Type             : Microsoft.EventHub/namespaces/privateLinkResources

取得 EventHubs 命名空間 myNamespace上可用的私人鏈接資源。

參數

-DefaultProfile

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

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

-NamespaceName

命名空間名稱

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

-ResourceGroupName

Azure 訂用帳戶內的資源組名。

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

-SubscriptionId

可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。

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

輸出

IPrivateLinkResourcesListResult