Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network/latest:RecordSet points to Private DNS's record set #583

Closed
mikhailshilkov opened this issue Oct 16, 2020 · 2 comments · Fixed by #723
Closed

network/latest:RecordSet points to Private DNS's record set #583

mikhailshilkov opened this issue Oct 16, 2020 · 2 comments · Fixed by #723
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed upstream/open-api
Milestone

Comments

@mikhailshilkov
Copy link
Member

It looks like different versions of network/xyz:RecordSet point to different resources in Azure:

  • network/latest:RecordSet points to a Private DNS's record set
  • network/v20180501:RecordSet points to a (public) DNS's record set

We should undertand why and disambiguate with resource names.

@mikhailshilkov mikhailshilkov self-assigned this Oct 16, 2020
@mikhailshilkov
Copy link
Member Author

Issue upstream: Azure/azure-rest-api-specs#11402

@iskandersierra
Copy link

I can confirm this issue. For those trying to make it work in the meanwhile, you can use two different versions of the API (not ideal, but it worked for me):

using Network = Pulumi.AzureNextGen.Network.Latest;
using Network2018 = Pulumi.AzureNextGen.Network.V20180501;
...

            var zone = new Network.Zone($"dns{name}", new()
            {
                Location = "global",
                ResourceGroupName = args.Group.ResourceGroupName,

                ZoneName = Info.DNS.ZoneName,
                //ZoneType = Network.ZoneType.Public,

                Tags = args.Group.Tags,
            });

            DNSNameServers = zone.NameServers;

            var dnsRecordSet = new Network2018.RecordSet("loadBalancer", new()
            {
                ResourceGroupName = args.Group.ResourceGroupName,
                ZoneName = zone.Name,
                ARecords = new Network2018.Inputs.ARecordArgs[]
                {
                    new ()
                    {
                        Ipv4Address = ipAddress.IpAddress,
                    },
                },
                RecordType = "A",
                RelativeRecordSetName = "@",
                Metadata = args.Group.Tags,
                Ttl = 3600,
            });

I hope it can help others

@stack72 stack72 transferred this issue from pulumi/pulumi-azure-nextgen Mar 2, 2021
@mikhailshilkov mikhailshilkov added kind/bug Some behavior is incorrect or out of spec upstream/open-api labels Mar 4, 2021
@mikhailshilkov mikhailshilkov added this to the 0.55 milestone Apr 6, 2021
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed upstream/open-api
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants