< Back

New-AzureDns

Wed Jan 30, 2019 5:48 pm

NAME New-AzureDns



SYNOPSIS

Creates an Azure DNS settings object.





SYNTAX

New-AzureDns [-Name] <String> [-IPAddress] <String> [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]





DESCRIPTION

The New-AzureDns cmdlet creates an Azure DNS settings object. You can use a DNS settings object when you create a virtual machine by using the

New-AzureVM cmdlet.





PARAMETERS

-Name <String>

Specifies a friendly name for the DNS server. This name is not necessarily a fully qualified domain name.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IPAddress <String>

Specifies the IP address of the DNS server.



Required? true

Position? 1

Default value None

Accept pipeline input? False

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: Create a DNS settings object --------------------------



PS C:\\>$Dns = New-AzureDns -Name "Dns01" -IPAddress "10.1.2.4"



This command creates an Azure DNS settings object. The DNS server has the specified address and the friendly name Dns01. The command stores the object

in the $Dns variable for use by the New-AzureVM cmdlet.



RELATED LINKS

Add-AzureDns

Get-AzureDns

New-AzureVM

Remove-AzureDns

Set-AzureDns