We recommend using Azure Native.
azure.cdn.FrontdoorProfile
Explore with Pulumi AI
Manages a Front Door (standard/premium) Profile which contains a collection of endpoints and origin groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("example", {
    name: "example-cdn-profile",
    resourceGroupName: example.name,
    skuName: "Standard_AzureFrontDoor",
    tags: {
        environment: "Production",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_frontdoor_profile = azure.cdn.FrontdoorProfile("example",
    name="example-cdn-profile",
    resource_group_name=example.name,
    sku_name="Standard_AzureFrontDoor",
    tags={
        "environment": "Production",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{
			Name:              pulumi.String("example-cdn-profile"),
			ResourceGroupName: example.Name,
			SkuName:           pulumi.String("Standard_AzureFrontDoor"),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleFrontdoorProfile = new Azure.Cdn.FrontdoorProfile("example", new()
    {
        Name = "example-cdn-profile",
        ResourceGroupName = example.Name,
        SkuName = "Standard_AzureFrontDoor",
        Tags = 
        {
            { "environment", "Production" },
        },
    });
});
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleFrontdoorProfile = new FrontdoorProfile("exampleFrontdoorProfile", FrontdoorProfileArgs.builder()
            .name("example-cdn-profile")
            .resourceGroupName(example.name())
            .skuName("Standard_AzureFrontDoor")
            .tags(Map.of("environment", "Production"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleFrontdoorProfile:
    type: azure:cdn:FrontdoorProfile
    name: example
    properties:
      name: example-cdn-profile
      resourceGroupName: ${example.name}
      skuName: Standard_AzureFrontDoor
      tags:
        environment: Production
Create FrontdoorProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FrontdoorProfile(name: string, args: FrontdoorProfileArgs, opts?: CustomResourceOptions);@overload
def FrontdoorProfile(resource_name: str,
                     args: FrontdoorProfileArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def FrontdoorProfile(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     resource_group_name: Optional[str] = None,
                     sku_name: Optional[str] = None,
                     identity: Optional[FrontdoorProfileIdentityArgs] = None,
                     name: Optional[str] = None,
                     response_timeout_seconds: Optional[int] = None,
                     tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var frontdoorProfileResource = new Azure.Cdn.FrontdoorProfile("frontdoorProfileResource", new()
{
    ResourceGroupName = "string",
    SkuName = "string",
    Identity = new Azure.Cdn.Inputs.FrontdoorProfileIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    Name = "string",
    ResponseTimeoutSeconds = 0,
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := cdn.NewFrontdoorProfile(ctx, "frontdoorProfileResource", &cdn.FrontdoorProfileArgs{
	ResourceGroupName: pulumi.String("string"),
	SkuName:           pulumi.String("string"),
	Identity: &cdn.FrontdoorProfileIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	Name:                   pulumi.String("string"),
	ResponseTimeoutSeconds: pulumi.Int(0),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var frontdoorProfileResource = new FrontdoorProfile("frontdoorProfileResource", FrontdoorProfileArgs.builder()
    .resourceGroupName("string")
    .skuName("string")
    .identity(FrontdoorProfileIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .name("string")
    .responseTimeoutSeconds(0)
    .tags(Map.of("string", "string"))
    .build());
frontdoor_profile_resource = azure.cdn.FrontdoorProfile("frontdoorProfileResource",
    resource_group_name="string",
    sku_name="string",
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    name="string",
    response_timeout_seconds=0,
    tags={
        "string": "string",
    })
const frontdoorProfileResource = new azure.cdn.FrontdoorProfile("frontdoorProfileResource", {
    resourceGroupName: "string",
    skuName: "string",
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    name: "string",
    responseTimeoutSeconds: 0,
    tags: {
        string: "string",
    },
});
type: azure:cdn:FrontdoorProfile
properties:
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    name: string
    resourceGroupName: string
    responseTimeoutSeconds: 0
    skuName: string
    tags:
        string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FrontdoorProfile resource accepts the following input properties:
- ResourceGroup stringName 
- 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_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- Identity
FrontdoorProfile Identity 
- An identityblock as defined below.
- Name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- ResponseTimeout intSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- Dictionary<string, string>
- Specifies a mapping of tags to assign to the resource.
- ResourceGroup stringName 
- 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_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- Identity
FrontdoorProfile Identity Args 
- An identityblock as defined below.
- Name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- ResponseTimeout intSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- map[string]string
- Specifies a mapping of tags to assign to the resource.
- resourceGroup StringName 
- 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_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- identity
FrontdoorProfile Identity 
- An identityblock as defined below.
- name String
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- responseTimeout IntegerSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- Map<String,String>
- Specifies a mapping of tags to assign to the resource.
- resourceGroup stringName 
- 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_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- identity
FrontdoorProfile Identity 
- An identityblock as defined below.
- name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- responseTimeout numberSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- {[key: string]: string}
- Specifies a mapping of tags to assign to the resource.
- resource_group_ strname 
- 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_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- identity
FrontdoorProfile Identity Args 
- An identityblock as defined below.
- name str
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- response_timeout_ intseconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- Mapping[str, str]
- Specifies a mapping of tags to assign to the resource.
- resourceGroup StringName 
- 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_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- identity Property Map
- An identityblock as defined below.
- name String
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- responseTimeout NumberSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- 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-FDIDattribute.
- 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-FDIDattribute.
- 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-FDIDattribute.
- 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-FDIDattribute.
- 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-FDIDattribute.
- 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-FDIDattribute.
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,
        identity: Optional[FrontdoorProfileIdentityArgs] = 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) -> FrontdoorProfilefunc 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)resources:  _:    type: azure:cdn:FrontdoorProfile    get:      id: ${id}- 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.
- Identity
FrontdoorProfile Identity 
- An identityblock as defined below.
- Name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- 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-FDIDattribute.
- ResponseTimeout intSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- SkuName string
- Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- Dictionary<string, string>
- Specifies a mapping of tags to assign to the resource.
- Identity
FrontdoorProfile Identity Args 
- An identityblock as defined below.
- Name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- 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-FDIDattribute.
- ResponseTimeout intSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- SkuName string
- Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- map[string]string
- Specifies a mapping of tags to assign to the resource.
- identity
FrontdoorProfile Identity 
- An identityblock as defined below.
- name String
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- resourceGroup StringName 
- 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-FDIDattribute.
- responseTimeout IntegerSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- skuName String
- Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- Map<String,String>
- Specifies a mapping of tags to assign to the resource.
- identity
FrontdoorProfile Identity 
- An identityblock as defined below.
- name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- resourceGroup stringName 
- 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-FDIDattribute.
- responseTimeout numberSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- skuName string
- Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- {[key: string]: string}
- Specifies a mapping of tags to assign to the resource.
- identity
FrontdoorProfile Identity Args 
- An identityblock as defined below.
- name str
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- resource_group_ strname 
- 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-FDIDattribute.
- response_timeout_ intseconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- sku_name str
- Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- Mapping[str, str]
- Specifies a mapping of tags to assign to the resource.
- identity Property Map
- An identityblock as defined below.
- name String
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- resourceGroup StringName 
- 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-FDIDattribute.
- responseTimeout NumberSeconds 
- Specifies the maximum response timeout in seconds. Possible values are between 16and240seconds (inclusive). Defaults to120seconds.
- skuName String
- Specifies the SKU for this Front Door Profile. Possible values include Standard_AzureFrontDoorandPremium_AzureFrontDoor. Changing this forces a new resource to be created.
- Map<String>
- Specifies a mapping of tags to assign to the resource.
Supporting Types
FrontdoorProfileIdentity, FrontdoorProfileIdentityArgs      
- Type string
- The type of managed identity to assign. Possible values are SystemAssigned,UserAssignedorSystemAssigned, UserAssigned.
- IdentityIds List<string>
- A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when typeis set toUserAssignedorSystemAssigned, UserAssigned.
- PrincipalId string
- TenantId string
- Type string
- The type of managed identity to assign. Possible values are SystemAssigned,UserAssignedorSystemAssigned, UserAssigned.
- IdentityIds []string
- A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when typeis set toUserAssignedorSystemAssigned, UserAssigned.
- PrincipalId string
- TenantId string
- type String
- The type of managed identity to assign. Possible values are SystemAssigned,UserAssignedorSystemAssigned, UserAssigned.
- identityIds List<String>
- A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when typeis set toUserAssignedorSystemAssigned, UserAssigned.
- principalId String
- tenantId String
- type string
- The type of managed identity to assign. Possible values are SystemAssigned,UserAssignedorSystemAssigned, UserAssigned.
- identityIds string[]
- A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when typeis set toUserAssignedorSystemAssigned, UserAssigned.
- principalId string
- tenantId string
- type str
- The type of managed identity to assign. Possible values are SystemAssigned,UserAssignedorSystemAssigned, UserAssigned.
- identity_ids Sequence[str]
- A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when typeis set toUserAssignedorSystemAssigned, UserAssigned.
- principal_id str
- tenant_id str
- type String
- The type of managed identity to assign. Possible values are SystemAssigned,UserAssignedorSystemAssigned, UserAssigned.
- identityIds List<String>
- A list of one or more Resource IDs for User Assigned Managed identities to assign. Required when typeis set toUserAssignedorSystemAssigned, UserAssigned.
- principalId String
- tenantId String
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.