Closed SkyaTura closed 4 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sfiguemsft
@KarenHammons @rohinkoul can you look into this please?
@karravi-msft looks like the operation is failing with a 5xx error which can be due to problems in ARM or DNS frontend - can you look into this please?
@SkyaTura I think your parameters definition is not right. you can refer to line 270 to 453 of sdk/dns/arm-dns/src/models/mappers.ts. parameters here should have common properties of a RecordSet. So I changed the parameters properties TTL to tTL, TXTRecords to txtRecords and found it succeeded.
I'll check it as soon as possible, but in that case, the error shouldn't be 4xx?
I feel that's strange too, but I did change the parameter properties and it works for me. If problem still exists, I need to involve relevant team to take a look.
I've tried as you said and that worked fine.
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.
@azure/arm-dns
3.2.0
MacOS Mojave 10.14.16
v10.16.3
Describe the bug DnsManagementClient won't createOrUpdate a recordSet.
When trying to use
recordSets.createOrUpdate()
method, the client hangs for a while and then throws an InternalServerError.While this may be related with #420, it's important to notice that, for me, other methods like get and list works fine. Only
recordSets.createOrUpdate()
is failing.To Reproduce Steps to reproduce the behavior:
npm init
@azure/ms-rest-nodeatuh
and@azure/arm-dns
msRestNodeAuth.interactiveLogin().then((creds) => { const client = new DnsManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const zoneName = "testzoneName"; const relativeRecordSetName = "testrelativeRecordSetName"; const recordType = "TXT"; const parameters = { TTL: 5, TXTRecords: [{ value: ['test'] }], }; client.recordSets.set( resourceGroupName, zoneName, relativeRecordSetName, recordType, parameters ).then((result) => { console.log("The result is:"); console.log(result); }); }).catch((err) => { console.error(err); });