Get-AzureDns
Gets the DNS settings for an Azure deployment.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Service Management APIs. See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources.
Syntax
Get-AzureDns
[-DnsSettings <DnsSettings>]
[-InformationAction <ActionPreference>]
[-InformationVariable <String>]
[<CommonParameters>]
Description
The Get-AzureDns cmdlet gets the DNS settings for an Azure deployment. The cmdlet returns the friendly name and IP address of the DNS server in a DNS settings object.
Examples
Example 1: Get DNS settings
PS C:\> Get-AzureDeployment -ServiceName "ContosoService" -Slot "Production" | Get-AzureDNS
This command uses the Get-AzureDeployment cmdlet to get the production deployment of the service named ContosoService. The command passes that object to the current cmdlet by using the pipeline operator. The current cmdlet gets the DNS settings.
Parameters
-DnsSettings
Specifies a DnsSettings object.
Type: | DnsSettings |
Aliases: | InputObject |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InformationAction
Specifies how this cmdlet responds to an information event.
The acceptable values for this parameter are:
- Continue
- Ignore
- Inquire
- SilentlyContinue
- Stop
- Suspend
Type: | ActionPreference |
Aliases: | infa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
Specifies an information variable.
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |