< Back

Get-AzureDns

Wed Jan 30, 2019 5:43 pm

NAME Get-AzureDns



SYNOPSIS

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.





PARAMETERS

-DnsSettings <DnsSettings>

Specifies a DnsSettings object.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- 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.



RELATED LINKS

Add-AzureDns

Get-AzureDeployment

New-AzureDns

Remove-AzureDns

Set-AzureDns