https://pulumi.com logo
#dotnet
Title
# dotnet
i

important-market-91978

02/07/2024, 9:42 AM
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

bored-activity-40468

02/07/2024, 9:00 PM
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

important-market-91978

02/10/2024, 3:54 PM
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

bored-activity-40468

02/10/2024, 6:42 PM
I also had to add a dependsOn for RulesSet, Rule and Route's so they depended on the Origin for --destroy to work.