azure-powershell
azure-powershell copied to clipboard
[Doc]: https://learn.microsoft.com/powershell/module/az.dns/new-azdnsrecordconfig MX record example incorrect
Description
is
Example 4: Create a RecordSet of type MX
$Records = @()
$Records += New-AzDnsRecordConfig -Exchange "mail.microsoft.com" -Preference 5
$RecordSet = New-AzDnsRecordSet -Name "www" -RecordType AAAA -ResourceGroupName "MyResourceGroup" -TTL 3600 -ZoneName "myzone.com" -DnsRecords $Records
should probably be:
Example 4: Create a RecordSet of type MX
$Records = @()
$Records += New-AzDnsRecordConfig -Exchange "mail.microsoft.com" -Preference 5
$RecordSet = New-AzDnsRecordSet -Name "@" -RecordType MX -ResourceGroupName "MyResourceGroup" -TTL 3600 -ZoneName "myzone.com" -DnsRecords $Records
I could be wrong don't trust me but I was looking for guidance on usage.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dnssuppgithub.
:bell: Routing this issue to @act-quality-productivity-squad.