A brief note on modifying TTL on an Azure DNS record set. This is changed on the record set, not the record itself.
The Azure DNS PowerShell docs don’t make it explicitly clear how to do this, however using “help set-AzureRmDnsRecordSet -examples” gave me a clue on how to achieve it.
The key is the middle line here:
$rs = Get-AzureRmDnsRecordSet -Name "msoid" -RecordType CNAME -ZoneName "domain.com" -ResourceGroupName "DNS" $rs.TTL = 3600 Set-AzureRmDnsRecordSet -RecordSet $rs |