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
using System.Collections.Generic;
using System.Linq;
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:
- 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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.