O'Reilly logo

Hands-On Networking with Azure by Mohamed Waly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Azure DNS record using PowerShell

To create an Azure DNS record using PowerShell, you need to create the RecordConfig and store it within a variable by running the following cmdlet:

$RecordConfig = New-AzureRmDnsRecordConfig -IPv4Address "192.168.1.55"

Then, you can create the record by running the following cmdlet:

New-AzureRmDnsRecordSet -Name www -RecordType A -ZoneName Gamezakhana.com -ResourceGroupName PacktPub -Ttl 3600 -DnsRecords $RecordConfig

Remember that the TTL is expressed in seconds.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required