1. Packages
  2. Azure Native
  3. API Docs
  4. cdn
  5. AFDTargetGroup
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.cdn.AFDTargetGroup

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

AFDTargetGroup comprises a list of Endpoints that is used for tunnelling protocols to allow certain traffic.

Uses Azure REST API version 2024-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-06-01-preview.

Example Usage

AfdTargetGroups_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var afdTargetGroup = new AzureNative.Cdn.AFDTargetGroup("afdTargetGroup", new()
    {
        ProfileName = "profile1",
        ResourceGroupName = "RG",
        TargetEndpoints = new[]
        {
            new AzureNative.Cdn.Inputs.TargetEndpointArgs
            {
                Ports = new[]
                {
                    443,
                    80,
                },
                TargetFqdn = "host1.foo.com",
            },
            new AzureNative.Cdn.Inputs.TargetEndpointArgs
            {
                Ports = new[]
                {
                    443,
                    80,
                },
                TargetFqdn = "host2.contoso.com",
            },
        },
        TargetGroupName = "targetgroup1",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.NewAFDTargetGroup(ctx, "afdTargetGroup", &cdn.AFDTargetGroupArgs{
			ProfileName:       pulumi.String("profile1"),
			ResourceGroupName: pulumi.String("RG"),
			TargetEndpoints: cdn.TargetEndpointArray{
				&cdn.TargetEndpointArgs{
					Ports: pulumi.IntArray{
						pulumi.Int(443),
						pulumi.Int(80),
					},
					TargetFqdn: pulumi.String("host1.foo.com"),
				},
				&cdn.TargetEndpointArgs{
					Ports: pulumi.IntArray{
						pulumi.Int(443),
						pulumi.Int(80),
					},
					TargetFqdn: pulumi.String("host2.contoso.com"),
				},
			},
			TargetGroupName: pulumi.String("targetgroup1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.AFDTargetGroup;
import com.pulumi.azurenative.cdn.AFDTargetGroupArgs;
import com.pulumi.azurenative.cdn.inputs.TargetEndpointArgs;
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 afdTargetGroup = new AFDTargetGroup("afdTargetGroup", AFDTargetGroupArgs.builder()
            .profileName("profile1")
            .resourceGroupName("RG")
            .targetEndpoints(            
                TargetEndpointArgs.builder()
                    .ports(                    
                        443,
                        80)
                    .targetFqdn("host1.foo.com")
                    .build(),
                TargetEndpointArgs.builder()
                    .ports(                    
                        443,
                        80)
                    .targetFqdn("host2.contoso.com")
                    .build())
            .targetGroupName("targetgroup1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const afdTargetGroup = new azure_native.cdn.AFDTargetGroup("afdTargetGroup", {
    profileName: "profile1",
    resourceGroupName: "RG",
    targetEndpoints: [
        {
            ports: [
                443,
                80,
            ],
            targetFqdn: "host1.foo.com",
        },
        {
            ports: [
                443,
                80,
            ],
            targetFqdn: "host2.contoso.com",
        },
    ],
    targetGroupName: "targetgroup1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

afd_target_group = azure_native.cdn.AFDTargetGroup("afdTargetGroup",
    profile_name="profile1",
    resource_group_name="RG",
    target_endpoints=[
        {
            "ports": [
                443,
                80,
            ],
            "target_fqdn": "host1.foo.com",
        },
        {
            "ports": [
                443,
                80,
            ],
            "target_fqdn": "host2.contoso.com",
        },
    ],
    target_group_name="targetgroup1")
Copy
resources:
  afdTargetGroup:
    type: azure-native:cdn:AFDTargetGroup
    properties:
      profileName: profile1
      resourceGroupName: RG
      targetEndpoints:
        - ports:
            - 443
            - 80
          targetFqdn: host1.foo.com
        - ports:
            - 443
            - 80
          targetFqdn: host2.contoso.com
      targetGroupName: targetgroup1
Copy

Create AFDTargetGroup Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AFDTargetGroup(name: string, args: AFDTargetGroupArgs, opts?: CustomResourceOptions);
@overload
def AFDTargetGroup(resource_name: str,
                   args: AFDTargetGroupArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def AFDTargetGroup(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   profile_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   target_endpoints: Optional[Sequence[TargetEndpointArgs]] = None,
                   target_group_name: Optional[str] = None)
func NewAFDTargetGroup(ctx *Context, name string, args AFDTargetGroupArgs, opts ...ResourceOption) (*AFDTargetGroup, error)
public AFDTargetGroup(string name, AFDTargetGroupArgs args, CustomResourceOptions? opts = null)
public AFDTargetGroup(String name, AFDTargetGroupArgs args)
public AFDTargetGroup(String name, AFDTargetGroupArgs args, CustomResourceOptions options)
type: azure-native:cdn:AFDTargetGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AFDTargetGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AFDTargetGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AFDTargetGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AFDTargetGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AFDTargetGroupArgs
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 afdtargetGroupResource = new AzureNative.Cdn.AFDTargetGroup("afdtargetGroupResource", new()
{
    ProfileName = "string",
    ResourceGroupName = "string",
    TargetEndpoints = new[]
    {
        new AzureNative.Cdn.Inputs.TargetEndpointArgs
        {
            Ports = new[]
            {
                0,
            },
            TargetFqdn = "string",
        },
    },
    TargetGroupName = "string",
});
Copy
example, err := cdn.NewAFDTargetGroup(ctx, "afdtargetGroupResource", &cdn.AFDTargetGroupArgs{
	ProfileName:       pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	TargetEndpoints: cdn.TargetEndpointArray{
		&cdn.TargetEndpointArgs{
			Ports: pulumi.IntArray{
				pulumi.Int(0),
			},
			TargetFqdn: pulumi.String("string"),
		},
	},
	TargetGroupName: pulumi.String("string"),
})
Copy
var afdtargetGroupResource = new AFDTargetGroup("afdtargetGroupResource", AFDTargetGroupArgs.builder()
    .profileName("string")
    .resourceGroupName("string")
    .targetEndpoints(TargetEndpointArgs.builder()
        .ports(0)
        .targetFqdn("string")
        .build())
    .targetGroupName("string")
    .build());
Copy
afdtarget_group_resource = azure_native.cdn.AFDTargetGroup("afdtargetGroupResource",
    profile_name="string",
    resource_group_name="string",
    target_endpoints=[{
        "ports": [0],
        "target_fqdn": "string",
    }],
    target_group_name="string")
Copy
const afdtargetGroupResource = new azure_native.cdn.AFDTargetGroup("afdtargetGroupResource", {
    profileName: "string",
    resourceGroupName: "string",
    targetEndpoints: [{
        ports: [0],
        targetFqdn: "string",
    }],
    targetGroupName: "string",
});
Copy
type: azure-native:cdn:AFDTargetGroup
properties:
    profileName: string
    resourceGroupName: string
    targetEndpoints:
        - ports:
            - 0
          targetFqdn: string
    targetGroupName: string
Copy

AFDTargetGroup 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 AFDTargetGroup resource accepts the following input properties:

ProfileName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
TargetEndpoints This property is required. List<Pulumi.AzureNative.Cdn.Inputs.TargetEndpoint>
TargetEndpoint list referenced by this target group.
TargetGroupName Changes to this property will trigger replacement. string
Name of the Target Group under the profile.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
TargetEndpoints This property is required. []TargetEndpointArgs
TargetEndpoint list referenced by this target group.
TargetGroupName Changes to this property will trigger replacement. string
Name of the Target Group under the profile.
profileName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.
targetEndpoints This property is required. List<TargetEndpoint>
TargetEndpoint list referenced by this target group.
targetGroupName Changes to this property will trigger replacement. String
Name of the Target Group under the profile.
profileName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
targetEndpoints This property is required. TargetEndpoint[]
TargetEndpoint list referenced by this target group.
targetGroupName Changes to this property will trigger replacement. string
Name of the Target Group under the profile.
profile_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Resource group within the Azure subscription.
target_endpoints This property is required. Sequence[TargetEndpointArgs]
TargetEndpoint list referenced by this target group.
target_group_name Changes to this property will trigger replacement. str
Name of the Target Group under the profile.
profileName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Front Door Standard or Azure Front Door Premium which is unique within the resource group.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.
targetEndpoints This property is required. List<Property Map>
TargetEndpoint list referenced by this target group.
targetGroupName Changes to this property will trigger replacement. String
Name of the Target Group under the profile.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
DeploymentStatus string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
ProvisioningState string
Provisioning status
SystemData Pulumi.AzureNative.Cdn.Outputs.SystemDataResponse
Read only system data
Type string
Resource type.
AzureApiVersion string
The Azure API version of the resource.
DeploymentStatus string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
ProvisioningState string
Provisioning status
SystemData SystemDataResponse
Read only system data
Type string
Resource type.
azureApiVersion String
The Azure API version of the resource.
deploymentStatus String
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
provisioningState String
Provisioning status
systemData SystemDataResponse
Read only system data
type String
Resource type.
azureApiVersion string
The Azure API version of the resource.
deploymentStatus string
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name.
provisioningState string
Provisioning status
systemData SystemDataResponse
Read only system data
type string
Resource type.
azure_api_version str
The Azure API version of the resource.
deployment_status str
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name.
provisioning_state str
Provisioning status
system_data SystemDataResponse
Read only system data
type str
Resource type.
azureApiVersion String
The Azure API version of the resource.
deploymentStatus String
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
provisioningState String
Provisioning status
systemData Property Map
Read only system data
type String
Resource type.

Supporting Types

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC)
CreatedBy string
An identifier for the identity that created the resource
CreatedByType string
The type of identity that created the resource
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
An identifier for the identity that last modified the resource
LastModifiedByType string
The type of identity that last modified the resource
CreatedAt string
The timestamp of resource creation (UTC)
CreatedBy string
An identifier for the identity that created the resource
CreatedByType string
The type of identity that created the resource
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
An identifier for the identity that last modified the resource
LastModifiedByType string
The type of identity that last modified the resource
createdAt String
The timestamp of resource creation (UTC)
createdBy String
An identifier for the identity that created the resource
createdByType String
The type of identity that created the resource
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
An identifier for the identity that last modified the resource
lastModifiedByType String
The type of identity that last modified the resource
createdAt string
The timestamp of resource creation (UTC)
createdBy string
An identifier for the identity that created the resource
createdByType string
The type of identity that created the resource
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
An identifier for the identity that last modified the resource
lastModifiedByType string
The type of identity that last modified the resource
created_at str
The timestamp of resource creation (UTC)
created_by str
An identifier for the identity that created the resource
created_by_type str
The type of identity that created the resource
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
An identifier for the identity that last modified the resource
last_modified_by_type str
The type of identity that last modified the resource
createdAt String
The timestamp of resource creation (UTC)
createdBy String
An identifier for the identity that created the resource
createdByType String
The type of identity that created the resource
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
An identifier for the identity that last modified the resource
lastModifiedByType String
The type of identity that last modified the resource

TargetEndpoint
, TargetEndpointArgs

Ports List<int>
The Ports to be allowed for the FQDN.
TargetFqdn string
The FQDN for traffic endpoint.
Ports []int
The Ports to be allowed for the FQDN.
TargetFqdn string
The FQDN for traffic endpoint.
ports List<Integer>
The Ports to be allowed for the FQDN.
targetFqdn String
The FQDN for traffic endpoint.
ports number[]
The Ports to be allowed for the FQDN.
targetFqdn string
The FQDN for traffic endpoint.
ports Sequence[int]
The Ports to be allowed for the FQDN.
target_fqdn str
The FQDN for traffic endpoint.
ports List<Number>
The Ports to be allowed for the FQDN.
targetFqdn String
The FQDN for traffic endpoint.

TargetEndpointResponse
, TargetEndpointResponseArgs

Ports List<int>
The Ports to be allowed for the FQDN.
TargetFqdn string
The FQDN for traffic endpoint.
Ports []int
The Ports to be allowed for the FQDN.
TargetFqdn string
The FQDN for traffic endpoint.
ports List<Integer>
The Ports to be allowed for the FQDN.
targetFqdn String
The FQDN for traffic endpoint.
ports number[]
The Ports to be allowed for the FQDN.
targetFqdn string
The FQDN for traffic endpoint.
ports Sequence[int]
The Ports to be allowed for the FQDN.
target_fqdn str
The FQDN for traffic endpoint.
ports List<Number>
The Ports to be allowed for the FQDN.
targetFqdn String
The FQDN for traffic endpoint.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:cdn:AFDTargetGroup targetgroup1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/targetGroups/{targetGroupName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi