AFDOrigin Args
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 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cdn [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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}
Constructors
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
Name of the origin group which is unique within the profile.
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
Name of the origin that is unique within the profile.
Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
Name of the Resource group within the Azure subscription.
The properties of the private link resource for private origin.