worried-knife-31967
07/12/2023, 6:21 PMcannot 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.
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,
});
melodic-tomato-39005
07/13/2023, 8:03 AMdnsZoneResourceGroup
variable should contain the name of the resource group, not the id or a Pulumi object. Check if that fixes the issue.worried-knife-31967
07/13/2023, 1:58 PM