Get-AzPrivateLinkService
取得私人鏈接服務
語法
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 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ExpandResource
要展開的資源參考。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
資源名稱。
類型: | String |
別名: | ResourceName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |
-ResourceGroupName
資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | True |