1. Packages
  2. Azure Classic
  3. API Docs
  4. cdn
  5. FrontdoorProfile

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.cdn.FrontdoorProfile

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    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/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 {
    		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,
                         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.

    Example

    The following reference example uses placeholder values for all input properties.

    var frontdoorProfileResource = new Azure.Cdn.FrontdoorProfile("frontdoorProfileResource", new()
    {
        ResourceGroupName = "string",
        SkuName = "string",
        Name = "string",
        ResponseTimeoutSeconds = 0,
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cdn.NewFrontdoorProfile(ctx, "frontdoorProfileResource", &cdn.FrontdoorProfileArgs{
    	ResourceGroupName:      pulumi.String("string"),
    	SkuName:                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")
        .name("string")
        .responseTimeoutSeconds(0)
        .tags(Map.of("string", "string"))
        .build());
    
    frontdoor_profile_resource = azure.cdn.FrontdoorProfile("frontdoorProfileResource",
        resource_group_name="string",
        sku_name="string",
        name="string",
        response_timeout_seconds=0,
        tags={
            "string": "string",
        })
    
    const frontdoorProfileResource = new azure.cdn.FrontdoorProfile("frontdoorProfileResource", {
        resourceGroupName: "string",
        skuName: "string",
        name: "string",
        responseTimeoutSeconds: 0,
        tags: {
            string: "string",
        },
    });
    
    type: azure:cdn:FrontdoorProfile
    properties:
        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

    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
    

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi