Get-​Azure​Dns

Gets the DNS settings for an Azure deployment.

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.

Optional Parameters

-DnsSettings

Specifies a DnsSettings object.

Type:DnsSettings
Aliases:InputObject
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False