你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzPrivateDnsZoneGroup
Gets private DNS zone group
Syntax
Get-AzPrivateDnsZoneGroup
-ResourceGroupName <String>
-PrivateEndpointName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzPrivateDnsZoneGroup
-ResourceGroupName <String>
-PrivateEndpointName <String>
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzPrivateDnsZoneGroup cmdlet gets one or more private DNS zone groups.
Examples
Example 1: Retrieve private DNS zone group
Get-AzPrivateDnsZoneGroup -ResourceGroupName "rg" -PrivateEndpointName "test-pr-endpoint" -name "dnsgroup1"
Name : dnsgroup1
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/test-pr-endpoint/privateDnsZoneGroups/dnsgroup1
ProvisioningState : Succeeded
PrivateDnsZoneConfigs : [
{
"Name": "test-vault-azure-com",
"PrivateDnsZoneId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Network/privateDnsZones/test.vault.azure.com",
"RecordSets": []
}
]
Above example gets a private DNS zone group named dnsgroup1 in the resource group rg.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the private dns zone group.
Type: | String |
Aliases: | PrivateDnsZoneGroupName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PrivateEndpointName
The name of the private endpoint.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |