https://pulumi.com logo
#azure
Title
# azure
w

worried-knife-31967

07/12/2023, 6:21 PM
I keep getting this whenever I work with the azure dns resource... am I doing something wrong...
Copy code
cannot check existence of resource '/subscriptions/[sub]/resourceGroups/[secret]/providers/Microsoft.Network/dnsZones/[secret]/A/recordSet': status code 400, {"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'."}}
The code is pretty simple.
Copy code
var recordSet = new RecordSet("recordSet", new()
        {
            RelativeRecordSetName = "collector",
            ARecords = 
            {
                new ARecordArgs()
                {
                    Ipv4Address = collectorIngress.Status.Apply(s => s.LoadBalancer.Ingress[0].Ip),
                },
            },
            RecordType = "A",
            ResourceGroupName = dnsZoneResourceGroup,
            Ttl = 3600,
            ZoneName = dnsZoneName,
        });
m

melodic-tomato-39005

07/13/2023, 8:03 AM
The
dnsZoneResourceGroup
variable should contain the name of the resource group, not the id or a Pulumi object. Check if that fixes the issue.
w

worried-knife-31967

07/13/2023, 1:58 PM
yeah, it's just the name
8 Views