MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.41k forks source link

Set Alias/Value for cname #83159

Closed Aoshua closed 2 years ago

Aoshua commented 2 years ago

Please explain how to use the SDK to add a value/alias for a new cname record set. When I follow this tutorial to add a cname record, it creates one with the name and value/alias having the same value, which won't work for what I'm trying to accomplish.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Aoshua commented 2 years ago

Never mind, I see now that I just wasn't undertanding that new CnameRecord(value) sets the value and dnsClient.RecordSets.CreateorUpdateAsync(resourceGroup, zoneName, recordSetName, recordType, recSetParams) sets the name.