< Back
Get-AzureRmDnsZone
Post
NAME Get-AzureRmDnsZone
SYNOPSIS
Gets a DNS zone.
SYNTAX
Get-AzureRmDnsZone [-DefaultProfile <IAzureContextContainer>] [-Name <String>] -ResourceGroupName <String> [<CommonParameters>]
DESCRIPTION
The Get-AzureRmDnsZone cmdlet gets a Domain Name System (DNS) zone from the specified resource group. If you specify the Name parameter, a single
DnsZone object is returned. If you do not specify the Name parameter, an array containing all of the zones in the specified resource group is
returned. You can use the DnsZone object to update the zone, for example you can add RecordSet objects to it.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the DNS zone to get.
If you do not specify a value for the Name parameter, this cmdlet gets all DNS zones in the specified resource group. If you also omit the
ResourceGroupName parameter, this cmdlet gets all DNS zones in the current Azure subscription.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the DNS zone to get.
If you do not specify the ResourceGroupName , then you must also omit the Name parameter. In this case, this cmdlet gets all DNS zones in the
current Azure subscription.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not allow you to pipe input.
OUTPUTS
Microsoft.Azure.Commands.Dns.DnsZone
This cmdlet returns an object that represents the DNS zone. If the zone name is not specified, an array of zone objects is returned.
NOTES
Example 1: Get a zone
PS C:\\> $Zone = Get-AzureRmDnsZone -ResourceGroupName "MyResourceGroup" -Name "myzone.com"
This example gets the DNS zone named myzone.com from the specified resource group, and then stores it in the $Zone variable.
Example 2: Get all of the zones in a resource group
PS C:\\> $Zones = Get-AzureRmDnsZone -ResourceGroupName "MyResourceGroup"
This example gets all of the DNS zones in the specified resource group, and then stores it in the $Zones variable.
Example 3: Get all of the zones in a subscription
PS C:\\> $Zones = Get-AzureRmDnsZone
This example gets all of the DNS zones in the current Azure subscription, and then stores them in the $Zones variable.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ermdnszone
New-AzureRmDnsZone
Remove-AzureRmDnsZone
Set-AzureRmDnsZone
SYNOPSIS
Gets a DNS zone.
SYNTAX
Get-AzureRmDnsZone [-DefaultProfile <IAzureContextContainer>] [-Name <String>] -ResourceGroupName <String> [<CommonParameters>]
DESCRIPTION
The Get-AzureRmDnsZone cmdlet gets a Domain Name System (DNS) zone from the specified resource group. If you specify the Name parameter, a single
DnsZone object is returned. If you do not specify the Name parameter, an array containing all of the zones in the specified resource group is
returned. You can use the DnsZone object to update the zone, for example you can add RecordSet objects to it.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the DNS zone to get.
If you do not specify a value for the Name parameter, this cmdlet gets all DNS zones in the specified resource group. If you also omit the
ResourceGroupName parameter, this cmdlet gets all DNS zones in the current Azure subscription.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the DNS zone to get.
If you do not specify the ResourceGroupName , then you must also omit the Name parameter. In this case, this cmdlet gets all DNS zones in the
current Azure subscription.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not allow you to pipe input.
OUTPUTS
Microsoft.Azure.Commands.Dns.DnsZone
This cmdlet returns an object that represents the DNS zone. If the zone name is not specified, an array of zone objects is returned.
NOTES
Example 1: Get a zone
PS C:\\> $Zone = Get-AzureRmDnsZone -ResourceGroupName "MyResourceGroup" -Name "myzone.com"
This example gets the DNS zone named myzone.com from the specified resource group, and then stores it in the $Zone variable.
Example 2: Get all of the zones in a resource group
PS C:\\> $Zones = Get-AzureRmDnsZone -ResourceGroupName "MyResourceGroup"
This example gets all of the DNS zones in the specified resource group, and then stores it in the $Zones variable.
Example 3: Get all of the zones in a subscription
PS C:\\> $Zones = Get-AzureRmDnsZone
This example gets all of the DNS zones in the current Azure subscription, and then stores them in the $Zones variable.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ermdnszone
New-AzureRmDnsZone
Remove-AzureRmDnsZone
Set-AzureRmDnsZone