azure logo
Azure Classic v5.38.0, Mar 21 23

azure.cdn.FrontdoorProfile

Manages a Front Door (standard/premium) Profile which contains a collection of endpoints and origin groups.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleFrontdoorProfile = new Azure.Cdn.FrontdoorProfile("exampleFrontdoorProfile", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        SkuName = "Standard_AzureFrontDoor",
        Tags = 
        {
            { "environment", "Production" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewFrontdoorProfile(ctx, "exampleFrontdoorProfile", &cdn.FrontdoorProfileArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			SkuName:           pulumi.String("Standard_AzureFrontDoor"),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.cdn.FrontdoorProfile;
import com.pulumi.azure.cdn.FrontdoorProfileArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleFrontdoorProfile = new FrontdoorProfile("exampleFrontdoorProfile", FrontdoorProfileArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .skuName("Standard_AzureFrontDoor")
            .tags(Map.of("environment", "Production"))
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_frontdoor_profile = azure.cdn.FrontdoorProfile("exampleFrontdoorProfile",
    resource_group_name=example_resource_group.name,
    sku_name="Standard_AzureFrontDoor",
    tags={
        "environment": "Production",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("exampleFrontdoorProfile", {
    resourceGroupName: exampleResourceGroup.name,
    skuName: "Standard_AzureFrontDoor",
    tags: {
        environment: "Production",
    },
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleFrontdoorProfile:
    type: azure:cdn:FrontdoorProfile
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      skuName: Standard_AzureFrontDoor
      tags:
        environment: Production

Create FrontdoorProfile Resource

new FrontdoorProfile(name: string, args: FrontdoorProfileArgs, opts?: CustomResourceOptions);
@overload
def FrontdoorProfile(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     response_timeout_seconds: Optional[int] = None,
                     sku_name: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
@overload
def FrontdoorProfile(resource_name: str,
                     args: FrontdoorProfileArgs,
                     opts: Optional[ResourceOptions] = None)
func NewFrontdoorProfile(ctx *Context, name string, args FrontdoorProfileArgs, opts ...ResourceOption) (*FrontdoorProfile, error)
public FrontdoorProfile(string name, FrontdoorProfileArgs args, CustomResourceOptions? opts = null)
public FrontdoorProfile(String name, FrontdoorProfileArgs args)
public FrontdoorProfile(String name, FrontdoorProfileArgs args, CustomResourceOptions options)
type: azure:cdn:FrontdoorProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FrontdoorProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args FrontdoorProfileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args FrontdoorProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FrontdoorProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FrontdoorProfileArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FrontdoorProfile Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The FrontdoorProfile resource accepts the following input properties:

ResourceGroupName string

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

SkuName string

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

Name string

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

ResponseTimeoutSeconds int

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

Tags Dictionary<string, string>

Specifies a mapping of tags to assign to the resource.

ResourceGroupName string

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

SkuName string

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

Name string

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

ResponseTimeoutSeconds int

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

Tags map[string]string

Specifies a mapping of tags to assign to the resource.

resourceGroupName String

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

skuName String

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

name String

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

responseTimeoutSeconds Integer

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

tags Map<String,String>

Specifies a mapping of tags to assign to the resource.

resourceGroupName string

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

skuName string

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

name string

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

responseTimeoutSeconds number

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

tags {[key: string]: string}

Specifies a mapping of tags to assign to the resource.

resource_group_name str

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

sku_name str

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

name str

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

response_timeout_seconds int

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

tags Mapping[str, str]

Specifies a mapping of tags to assign to the resource.

resourceGroupName String

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

skuName String

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

name String

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

responseTimeoutSeconds Number

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

tags Map<String>

Specifies a mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the FrontdoorProfile resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

ResourceGuid string

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

Id string

The provider-assigned unique ID for this managed resource.

ResourceGuid string

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

id String

The provider-assigned unique ID for this managed resource.

resourceGuid String

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

id string

The provider-assigned unique ID for this managed resource.

resourceGuid string

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

id str

The provider-assigned unique ID for this managed resource.

resource_guid str

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

id String

The provider-assigned unique ID for this managed resource.

resourceGuid String

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

Look up Existing FrontdoorProfile Resource

Get an existing FrontdoorProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FrontdoorProfileState, opts?: CustomResourceOptions): FrontdoorProfile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        resource_guid: Optional[str] = None,
        response_timeout_seconds: Optional[int] = None,
        sku_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> FrontdoorProfile
func GetFrontdoorProfile(ctx *Context, name string, id IDInput, state *FrontdoorProfileState, opts ...ResourceOption) (*FrontdoorProfile, error)
public static FrontdoorProfile Get(string name, Input<string> id, FrontdoorProfileState? state, CustomResourceOptions? opts = null)
public static FrontdoorProfile get(String name, Output<String> id, FrontdoorProfileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name string

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

ResourceGuid string

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

ResponseTimeoutSeconds int

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

SkuName string

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

Tags Dictionary<string, string>

Specifies a mapping of tags to assign to the resource.

Name string

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

ResourceGuid string

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

ResponseTimeoutSeconds int

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

SkuName string

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

Tags map[string]string

Specifies a mapping of tags to assign to the resource.

name String

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

resourceGroupName String

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

resourceGuid String

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

responseTimeoutSeconds Integer

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

skuName String

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

tags Map<String,String>

Specifies a mapping of tags to assign to the resource.

name string

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

resourceGuid string

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

responseTimeoutSeconds number

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

skuName string

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

tags {[key: string]: string}

Specifies a mapping of tags to assign to the resource.

name str

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

resource_guid str

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

response_timeout_seconds int

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

sku_name str

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

tags Mapping[str, str]

Specifies a mapping of tags to assign to the resource.

name String

Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.

resourceGroupName String

The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.

resourceGuid String

The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.

responseTimeoutSeconds Number

Specifies the maximum response timeout in seconds. Possible values are between 16 and 240 seconds (inclusive). Defaults to 120 seconds.

skuName String

Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoor and Premium_AzureFrontDoor. Changing this forces a new resource to be created.

tags Map<String>

Specifies a mapping of tags to assign to the resource.

Import

Front Door Profiles can be imported using the resource id, e.g.

 $ pulumi import azure:cdn/frontdoorProfile:FrontdoorProfile example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.