https://pulumi.com logo
Title
a

able-doctor-68496

06/18/2021, 11:30 PM
Now I'm trying to create a
RecordSet
and getting this error:
azure-native:network:RecordSet (application-record):
    error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The request was invalid."
This is the code in Python for the
RecordSet
:
RecordSet(
    'application-record',
    cname_record=CnameRecordArgs(cname=azure_fqdn),
    record_type='CNAME',
    relative_record_set_name=seeq_subdomain,
    resource_group_name=azure_zone_resource_group,
    zone_name=azure_zone_name
)
Is there a good way to troubleshoot that?
t

tall-librarian-49374

06/21/2021, 7:56 PM
You could run it with
pulumi up --debug -v=9 --logflow --logtostderr --yes --skip-preview
to get the raw HTTP requests and responses. Maybe you’d spot what goes wrong.
a

able-doctor-68496

06/21/2021, 8:27 PM
That's exactly what I was hoping for - I'll give that a try
Indeed, that revealed the error coming back from Azure:
The Cname record cannot point at the same resource record.
Now I just need to figure out what that means.
Looks like I forgot that I want the CNAME record to point to my Kubernetes service... So that makes sense.
t

tall-librarian-49374

06/22/2021, 10:23 AM
Awesome that you found the error. If you don’t mind, could you open an issue describing that a useful error message was lost and attach obfuscated HTTP logs? That would be super helpful.