AFDCustom Domain
Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com. API Version: 2020-09-01.
Example Usage
AFDCustomDomains_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdCustomDomain = new AzureNative.Cdn.AFDCustomDomain("afdCustomDomain", new()
{
AzureDnsZone = new AzureNative.Cdn.Inputs.ResourceReferenceArgs
{
Id = "",
},
CustomDomainName = "domain1",
HostName = "www.someDomain.net",
ProfileName = "profile1",
ResourceGroupName = "RG",
TlsSettings = new AzureNative.Cdn.Inputs.AFDDomainHttpsParametersArgs
{
CertificateType = "ManagedCertificate",
MinimumTlsVersion = AzureNative.Cdn.AfdMinimumTlsVersion.TLS12,
},
});
});
Content copied to clipboard
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewAFDCustomDomain(ctx, "afdCustomDomain", &cdn.AFDCustomDomainArgs{
AzureDnsZone: &cdn.ResourceReferenceArgs{
Id: pulumi.String(""),
},
CustomDomainName: pulumi.String("domain1"),
HostName: pulumi.String("www.someDomain.net"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
TlsSettings: &cdn.AFDDomainHttpsParametersArgs{
CertificateType: pulumi.String("ManagedCertificate"),
MinimumTlsVersion: cdn.AfdMinimumTlsVersionTLS12,
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.AFDCustomDomain;
import com.pulumi.azurenative.cdn.AFDCustomDomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var afdCustomDomain = new AFDCustomDomain("afdCustomDomain", AFDCustomDomainArgs.builder()
.azureDnsZone(Map.of("id", ""))
.customDomainName("domain1")
.hostName("www.someDomain.net")
.profileName("profile1")
.resourceGroupName("RG")
.tlsSettings(Map.ofEntries(
Map.entry("certificateType", "ManagedCertificate"),
Map.entry("minimumTlsVersion", "TLS12")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:AFDCustomDomain domain1 /subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1
Content copied to clipboard
Properties
Link copied to clipboard
Resource reference to the Azure DNS zone
Link copied to clipboard
Link copied to clipboard
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation.
Link copied to clipboard
Provisioning status
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Read only system data
Link copied to clipboard
The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.
Link copied to clipboard
Values the customer needs to validate domain ownership