Hello, I'm using pulumi with C# and I'm trying to ...
# dotnet
i
Hello, I'm using pulumi with C# and I'm trying to create azure front door that would load balance two aks clusters in different regions, the hostname property under azure front door that is in the below endpoint, if I put a hostname then pulumi or azure complains as it requires cname registered and it doesn't accept any randomsite.fd.net subdomain, and if I removed the hostname to make azure relay on auto created sub domain, I get an error saying hostname is mandatory, what am I missing here FrontendEndpoint = new[] { new Azure.FrontDoor.Inputs.FrontdoorFrontendEndpointArgs { Name = "exampleFrontendEndpoint1", HostName = "example-FrontDoor.azurefd.net", }, },
b
I'm not sure what the difference is between the AzureNative network.FrontDoor and the AFD* resources in the cdn namespace but I've successfully used the resources in the cdn ns. https://www.pulumi.com/registry/packages/azure-native/api-docs/cdn/
i
Thanks, I've tried it and it worked, it seems the other namespaces got issues, another tip seemed that I need to create az frontdoor profile first
b
I also had to add a dependsOn for RulesSet, Rule and Route's so they depended on the Origin for --destroy to work.