AFDOrigin
Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. Uses Azure REST API version 2023-05-01. In version 1.x of the Azure Native provider, it used API version 2020-09-01. Other available API versions: 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01.
Example Usage
AFDOrigins_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdOrigin = new AzureNative.Cdn.AFDOrigin("afdOrigin", new()
{
EnabledState = AzureNative.Cdn.EnabledState.Enabled,
HostName = "host1.blob.core.windows.net",
HttpPort = 80,
HttpsPort = 443,
OriginGroupName = "origingroup1",
OriginHostHeader = "host1.foo.com",
OriginName = "origin1",
ProfileName = "profile1",
ResourceGroupName = "RG",
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewAFDOrigin(ctx, "afdOrigin", &cdn.AFDOriginArgs{
EnabledState: pulumi.String(cdn.EnabledStateEnabled),
HostName: pulumi.String("host1.blob.core.windows.net"),
HttpPort: pulumi.Int(80),
HttpsPort: pulumi.Int(443),
OriginGroupName: pulumi.String("origingroup1"),
OriginHostHeader: pulumi.String("host1.foo.com"),
OriginName: pulumi.String("origin1"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.AFDOrigin;
import com.pulumi.azurenative.cdn.AFDOriginArgs;
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 afdOrigin = new AFDOrigin("afdOrigin", AFDOriginArgs.builder()
.enabledState("Enabled")
.hostName("host1.blob.core.windows.net")
.httpPort(80)
.httpsPort(443)
.originGroupName("origingroup1")
.originHostHeader("host1.foo.com")
.originName("origin1")
.profileName("profile1")
.resourceGroupName("RG")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:AFDOrigin origin1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}
Properties
Resource reference to the Azure origin resource.
Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.
Whether to enable certificate name check at origin level
The name of the origin group which contains this origin.
The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint
Provisioning status
The properties of the private link resource for private origin.
Read only system data