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,
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",
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:
- Resource
Group stringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- Sku
Name string - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_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.
- Response
Timeout intSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - Dictionary<string, string>
- Specifies a mapping of tags to assign to the resource.
- Resource
Group stringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- Sku
Name string - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_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.
- Response
Timeout intSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - map[string]string
- Specifies a mapping of tags to assign to the resource.
- resource
Group StringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- sku
Name String - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_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.
- response
Timeout IntegerSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - Map<String,String>
- Specifies a mapping of tags to assign to the resource.
- resource
Group stringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- sku
Name string - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_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.
- response
Timeout numberSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - {[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_AzureFrontDoor
andPremium_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_ intseconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - Mapping[str, str]
- Specifies a mapping of tags to assign to the resource.
- resource
Group StringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- sku
Name String - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_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.
- response
Timeout NumberSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - 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.
- Resource
Guid 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.
- Resource
Guid 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.
- resource
Guid 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.
- resource
Guid 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.
- resource
Guid 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.
- Name string
- Specifies the name of the Front Door Profile. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- Resource
Guid string - The UUID of this Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDID
attribute. - Response
Timeout intSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - Sku
Name string - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_AzureFrontDoor
. Changing this forces a new resource to be created. - 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.
- Resource
Group stringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- Resource
Guid string - The UUID of this Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDID
attribute. - Response
Timeout intSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - Sku
Name string - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_AzureFrontDoor
. Changing this forces a new resource to be created. - 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.
- resource
Group StringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- resource
Guid String - The UUID of this Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDID
attribute. - response
Timeout IntegerSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - sku
Name String - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_AzureFrontDoor
. Changing this forces a new resource to be created. - 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.
- resource
Group stringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- resource
Guid string - The UUID of this Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDID
attribute. - response
Timeout numberSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - sku
Name string - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_AzureFrontDoor
. Changing this forces a new resource to be created. - {[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_ 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-FDID
attribute. - response_
timeout_ intseconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - sku_
name str - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_AzureFrontDoor
. Changing this forces a new resource to be created. - 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.
- resource
Group StringName - The name of the Resource Group where this Front Door Profile should exist. Changing this forces a new resource to be created.
- resource
Guid String - The UUID of this Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDID
attribute. - response
Timeout NumberSeconds - Specifies the maximum response timeout in seconds. Possible values are between
16
and240
seconds (inclusive). Defaults to120
seconds. - sku
Name String - Specifies the SKU for this Front Door Profile. Possible values include
Standard_AzureFrontDoor
andPremium_AzureFrontDoor
. Changing this forces a new resource to be created. - 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.