Get-AzPrivateLinkService
取得私人鏈接服務
Syntax
Get-AzPrivateLinkService
[-Name <String>]
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzPrivateLinkService
-Name <String>
-ResourceGroupName <String>
-ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzPrivateLinkService Cmdlet 會取得一或多個私人鏈接服務。
範例
範例 1
Get-AzPrivateLinkService -Name MyPLS -ResourceGroupName TestResourceGroup
Name : MyPLS
ResourceGroupName : TestResourceGroup
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/prov
iders/Microsoft.Network/privateLinkServices/MyPLS
Location : eastus2euap
Type : Microsoft.Network/privateLinkServices
Etag : W/"00000000-0000-0000-0000-000000000000"
Tag : {}
ProvisioningState : Succeeded
Visibility :
AutoApproval :
Alias :
LoadBalancerFrontendIpConfigurations : []
IpConfigurations : [
{
"PrivateIPAddress": "10.0.2.5",
"PrivateIPAllocationMethod": "Static",
"ProvisioningState": "Failed",
"PrivateIPAddressVersion": "IPv4",
"Name": "IP-Config",
"Subnet": {
"Delegations": [],
"Id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/
TestResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/backendSubne
t",
"ServiceAssociationLinks": []
}
}
]
PrivateEndpointConnections : []
NetworkInterfaces : [
{
"TapConfigurations": [],
"HostedWorkloads": [],
"Id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/providers/Microsoft.Network/networkInterfaces/mytestinterface"
}
]
這個 Commandlet 會取得資源群組中的私人連結服務。
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExpandResource
要展開的資源參考。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
資源名稱。
Type: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-ResourceGroupName
資源組名。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應