1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. network
  6. ConnectionPolicy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi

    ConnectionPolicy resource defined for VirtualHub.

    Uses Azure REST API version 2025-07-01.

    Example Usage

    ConnectionPolicyPut

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var connectionPolicy = new AzureNative.Network.ConnectionPolicy("connectionPolicy", new()
        {
            ConnectionPolicyName = "testpolicy2",
            Properties = new AzureNative.Network.Inputs.ConnectionPolicyPropertiesArgs
            {
                EnableInternetSecurity = true,
                RoutingConfiguration = new AzureNative.Network.Inputs.RoutingConfigurationArgs
                {
                    AssociatedRouteTable = new AzureNative.Network.Inputs.SubResourceArgs
                    {
                        Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable",
                    },
                    InboundRouteMap = new AzureNative.Network.Inputs.SubResourceArgs
                    {
                        Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap",
                    },
                    OutboundRouteMap = new AzureNative.Network.Inputs.SubResourceArgs
                    {
                        Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap",
                    },
                    PropagatedRouteTables = new AzureNative.Network.Inputs.PropagatedRouteTableArgs
                    {
                        Labels = new[]
                        {
                            "default",
                        },
                    },
                },
            },
            ResourceGroupName = "rg1",
            VirtualHubName = "TestHub",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewConnectionPolicy(ctx, "connectionPolicy", &network.ConnectionPolicyArgs{
    			ConnectionPolicyName: pulumi.String("testpolicy2"),
    			Properties: &network.ConnectionPolicyPropertiesArgs{
    				EnableInternetSecurity: pulumi.Bool(true),
    				RoutingConfiguration: &network.RoutingConfigurationTypeArgs{
    					AssociatedRouteTable: &network.SubResourceArgs{
    						Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable"),
    					},
    					InboundRouteMap: &network.SubResourceArgs{
    						Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap"),
    					},
    					OutboundRouteMap: &network.SubResourceArgs{
    						Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap"),
    					},
    					PropagatedRouteTables: &network.PropagatedRouteTableArgs{
    						Labels: pulumi.StringArray{
    							pulumi.String("default"),
    						},
    					},
    				},
    			},
    			ResourceGroupName: pulumi.String("rg1"),
    			VirtualHubName:    pulumi.String("TestHub"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    pulumi {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_network_connectionpolicy" "connectionPolicy" {
      connection_policy_name = "testpolicy2"
      properties = {
        enable_internet_security = true
        routing_configuration = {
          associated_route_table = {
            id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable"
          }
          inbound_route_map = {
            id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap"
          }
          outbound_route_map = {
            id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap"
          }
          propagated_route_tables = {
            labels = ["default"]
          }
        }
      }
      resource_group_name = "rg1"
      virtual_hub_name    = "TestHub"
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.ConnectionPolicy;
    import com.pulumi.azurenative.network.ConnectionPolicyArgs;
    import com.pulumi.azurenative.network.inputs.ConnectionPolicyPropertiesArgs;
    import com.pulumi.azurenative.network.inputs.RoutingConfigurationArgs;
    import com.pulumi.azurenative.network.inputs.SubResourceArgs;
    import com.pulumi.azurenative.network.inputs.PropagatedRouteTableArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 connectionPolicy = new ConnectionPolicy("connectionPolicy", ConnectionPolicyArgs.builder()
                .connectionPolicyName("testpolicy2")
                .properties(ConnectionPolicyPropertiesArgs.builder()
                    .enableInternetSecurity(true)
                    .routingConfiguration(RoutingConfigurationArgs.builder()
                        .associatedRouteTable(SubResourceArgs.builder()
                            .id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable")
                            .build())
                        .inboundRouteMap(SubResourceArgs.builder()
                            .id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap")
                            .build())
                        .outboundRouteMap(SubResourceArgs.builder()
                            .id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap")
                            .build())
                        .propagatedRouteTables(PropagatedRouteTableArgs.builder()
                            .labels("default")
                            .build())
                        .build())
                    .build())
                .resourceGroupName("rg1")
                .virtualHubName("TestHub")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const connectionPolicy = new azure_native.network.ConnectionPolicy("connectionPolicy", {
        connectionPolicyName: "testpolicy2",
        properties: {
            enableInternetSecurity: true,
            routingConfiguration: {
                associatedRouteTable: {
                    id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable",
                },
                inboundRouteMap: {
                    id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap",
                },
                outboundRouteMap: {
                    id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap",
                },
                propagatedRouteTables: {
                    labels: ["default"],
                },
            },
        },
        resourceGroupName: "rg1",
        virtualHubName: "TestHub",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    connection_policy = azure_native.network.ConnectionPolicy("connectionPolicy",
        connection_policy_name="testpolicy2",
        properties={
            "enable_internet_security": True,
            "routing_configuration": {
                "associated_route_table": {
                    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable",
                },
                "inbound_route_map": {
                    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap",
                },
                "outbound_route_map": {
                    "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap",
                },
                "propagated_route_tables": {
                    "labels": ["default"],
                },
            },
        },
        resource_group_name="rg1",
        virtual_hub_name="TestHub")
    
    resources:
      connectionPolicy:
        type: azure-native:network:ConnectionPolicy
        properties:
          connectionPolicyName: testpolicy2
          properties:
            enableInternetSecurity: true
            routingConfiguration:
              associatedRouteTable:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/hubRouteTables/defaultRouteTable
              inboundRouteMap:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap
              outboundRouteMap:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/TestHub/routeMaps/TestRouteMap
              propagatedRouteTables:
                labels:
                  - default
          resourceGroupName: rg1
          virtualHubName: TestHub
    

    Create ConnectionPolicy Resource

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

    Constructor syntax

    new ConnectionPolicy(name: string, args: ConnectionPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectionPolicy(resource_name: str,
                         args: ConnectionPolicyArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectionPolicy(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         resource_group_name: Optional[str] = None,
                         virtual_hub_name: Optional[str] = None,
                         connection_policy_name: Optional[str] = None,
                         id: Optional[str] = None,
                         properties: Optional[ConnectionPolicyPropertiesArgs] = None)
    func NewConnectionPolicy(ctx *Context, name string, args ConnectionPolicyArgs, opts ...ResourceOption) (*ConnectionPolicy, error)
    public ConnectionPolicy(string name, ConnectionPolicyArgs args, CustomResourceOptions? opts = null)
    public ConnectionPolicy(String name, ConnectionPolicyArgs args)
    public ConnectionPolicy(String name, ConnectionPolicyArgs args, CustomResourceOptions options)
    
    type: azure-native:network:ConnectionPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure-native_network_connection_policy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ConnectionPolicyArgs
    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 ConnectionPolicyArgs
    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 ConnectionPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectionPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectionPolicyArgs
    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 connectionPolicyResource = new AzureNative.Network.ConnectionPolicy("connectionPolicyResource", new()
    {
        ResourceGroupName = "string",
        VirtualHubName = "string",
        ConnectionPolicyName = "string",
        Id = "string",
        Properties = new AzureNative.Network.Inputs.ConnectionPolicyPropertiesArgs
        {
            EnableInternetSecurity = false,
            RoutingConfiguration = new AzureNative.Network.Inputs.RoutingConfigurationArgs
            {
                AssociatedRouteTable = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "string",
                },
                InboundRouteMap = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "string",
                },
                OutboundRouteMap = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "string",
                },
                PropagatedRouteTables = new AzureNative.Network.Inputs.PropagatedRouteTableArgs
                {
                    Ids = new[]
                    {
                        new AzureNative.Network.Inputs.SubResourceArgs
                        {
                            Id = "string",
                        },
                    },
                    Labels = new[]
                    {
                        "string",
                    },
                },
                VnetRoutes = new AzureNative.Network.Inputs.VnetRouteArgs
                {
                    StaticRoutes = new[]
                    {
                        new AzureNative.Network.Inputs.StaticRouteArgs
                        {
                            AddressPrefixes = new[]
                            {
                                "string",
                            },
                            Name = "string",
                            NextHopIpAddress = "string",
                        },
                    },
                    StaticRoutesConfig = new AzureNative.Network.Inputs.StaticRoutesConfigArgs
                    {
                        PropagateStaticRoutes = false,
                        VnetLocalRouteOverrideCriteria = "string",
                    },
                },
            },
        },
    });
    
    example, err := network.NewConnectionPolicy(ctx, "connectionPolicyResource", &network.ConnectionPolicyArgs{
    	ResourceGroupName:    pulumi.String("string"),
    	VirtualHubName:       pulumi.String("string"),
    	ConnectionPolicyName: pulumi.String("string"),
    	Id:                   pulumi.String("string"),
    	Properties: &network.ConnectionPolicyPropertiesArgs{
    		EnableInternetSecurity: pulumi.Bool(false),
    		RoutingConfiguration: &network.RoutingConfigurationTypeArgs{
    			AssociatedRouteTable: &network.SubResourceArgs{
    				Id: pulumi.String("string"),
    			},
    			InboundRouteMap: &network.SubResourceArgs{
    				Id: pulumi.String("string"),
    			},
    			OutboundRouteMap: &network.SubResourceArgs{
    				Id: pulumi.String("string"),
    			},
    			PropagatedRouteTables: &network.PropagatedRouteTableArgs{
    				Ids: network.SubResourceArray{
    					&network.SubResourceArgs{
    						Id: pulumi.String("string"),
    					},
    				},
    				Labels: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			VnetRoutes: &network.VnetRouteArgs{
    				StaticRoutes: network.StaticRouteArray{
    					&network.StaticRouteArgs{
    						AddressPrefixes: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    						Name:             pulumi.String("string"),
    						NextHopIpAddress: pulumi.String("string"),
    					},
    				},
    				StaticRoutesConfig: &network.StaticRoutesConfigArgs{
    					PropagateStaticRoutes:          pulumi.Bool(false),
    					VnetLocalRouteOverrideCriteria: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    resource "azure-native_network_connection_policy" "connectionPolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      resource_group_name    = "string"
      virtual_hub_name       = "string"
      connection_policy_name = "string"
      id                     = "string"
      properties = {
        enable_internet_security = false
        routing_configuration = {
          associated_route_table = {
            id = "string"
          }
          inbound_route_map = {
            id = "string"
          }
          outbound_route_map = {
            id = "string"
          }
          propagated_route_tables = {
            ids = [{
              id = "string"
            }]
            labels = ["string"]
          }
          vnet_routes = {
            static_routes = [{
              address_prefixes    = ["string"]
              name                = "string"
              next_hop_ip_address = "string"
            }]
            static_routes_config = {
              propagate_static_routes            = false
              vnet_local_route_override_criteria = "string"
            }
          }
        }
      }
    }
    
    var connectionPolicyResource = new ConnectionPolicy("connectionPolicyResource", ConnectionPolicyArgs.builder()
        .resourceGroupName("string")
        .virtualHubName("string")
        .connectionPolicyName("string")
        .id("string")
        .properties(ConnectionPolicyPropertiesArgs.builder()
            .enableInternetSecurity(false)
            .routingConfiguration(com.pulumi.azurenative.network.inputs.RoutingConfigurationArgs.builder()
                .associatedRouteTable(com.pulumi.azurenative.network.inputs.SubResourceArgs.builder()
                    .id("string")
                    .build())
                .inboundRouteMap(com.pulumi.azurenative.network.inputs.SubResourceArgs.builder()
                    .id("string")
                    .build())
                .outboundRouteMap(com.pulumi.azurenative.network.inputs.SubResourceArgs.builder()
                    .id("string")
                    .build())
                .propagatedRouteTables(PropagatedRouteTableArgs.builder()
                    .ids(com.pulumi.azurenative.network.inputs.SubResourceArgs.builder()
                        .id("string")
                        .build())
                    .labels("string")
                    .build())
                .vnetRoutes(VnetRouteArgs.builder()
                    .staticRoutes(StaticRouteArgs.builder()
                        .addressPrefixes("string")
                        .name("string")
                        .nextHopIpAddress("string")
                        .build())
                    .staticRoutesConfig(StaticRoutesConfigArgs.builder()
                        .propagateStaticRoutes(false)
                        .vnetLocalRouteOverrideCriteria("string")
                        .build())
                    .build())
                .build())
            .build())
        .build());
    
    connection_policy_resource = azure_native.network.ConnectionPolicy("connectionPolicyResource",
        resource_group_name="string",
        virtual_hub_name="string",
        connection_policy_name="string",
        id="string",
        properties={
            "enable_internet_security": False,
            "routing_configuration": {
                "associated_route_table": {
                    "id": "string",
                },
                "inbound_route_map": {
                    "id": "string",
                },
                "outbound_route_map": {
                    "id": "string",
                },
                "propagated_route_tables": {
                    "ids": [{
                        "id": "string",
                    }],
                    "labels": ["string"],
                },
                "vnet_routes": {
                    "static_routes": [{
                        "address_prefixes": ["string"],
                        "name": "string",
                        "next_hop_ip_address": "string",
                    }],
                    "static_routes_config": {
                        "propagate_static_routes": False,
                        "vnet_local_route_override_criteria": "string",
                    },
                },
            },
        })
    
    const connectionPolicyResource = new azure_native.network.ConnectionPolicy("connectionPolicyResource", {
        resourceGroupName: "string",
        virtualHubName: "string",
        connectionPolicyName: "string",
        id: "string",
        properties: {
            enableInternetSecurity: false,
            routingConfiguration: {
                associatedRouteTable: {
                    id: "string",
                },
                inboundRouteMap: {
                    id: "string",
                },
                outboundRouteMap: {
                    id: "string",
                },
                propagatedRouteTables: {
                    ids: [{
                        id: "string",
                    }],
                    labels: ["string"],
                },
                vnetRoutes: {
                    staticRoutes: [{
                        addressPrefixes: ["string"],
                        name: "string",
                        nextHopIpAddress: "string",
                    }],
                    staticRoutesConfig: {
                        propagateStaticRoutes: false,
                        vnetLocalRouteOverrideCriteria: "string",
                    },
                },
            },
        },
    });
    
    type: azure-native:network:ConnectionPolicy
    properties:
        connectionPolicyName: string
        id: string
        properties:
            enableInternetSecurity: false
            routingConfiguration:
                associatedRouteTable:
                    id: string
                inboundRouteMap:
                    id: string
                outboundRouteMap:
                    id: string
                propagatedRouteTables:
                    ids:
                        - id: string
                    labels:
                        - string
                vnetRoutes:
                    staticRoutes:
                        - addressPrefixes:
                            - string
                          name: string
                          nextHopIpAddress: string
                    staticRoutesConfig:
                        propagateStaticRoutes: false
                        vnetLocalRouteOverrideCriteria: string
        resourceGroupName: string
        virtualHubName: string
    

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

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    VirtualHubName string
    The name of the VirtualHub.
    ConnectionPolicyName string
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    Id string
    Resource ID.
    Properties Pulumi.AzureNative.Network.Inputs.ConnectionPolicyProperties
    Properties of the ConnectionPolicy resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    VirtualHubName string
    The name of the VirtualHub.
    ConnectionPolicyName string
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    Id string
    Resource ID.
    Properties ConnectionPolicyPropertiesArgs
    Properties of the ConnectionPolicy resource.
    resource_group_name string
    The name of the resource group. The name is case insensitive.
    virtual_hub_name string
    The name of the VirtualHub.
    connection_policy_name string
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    id string
    Resource ID.
    properties object
    Properties of the ConnectionPolicy resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    virtualHubName String
    The name of the VirtualHub.
    connectionPolicyName String
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    id String
    Resource ID.
    properties ConnectionPolicyProperties
    Properties of the ConnectionPolicy resource.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    virtualHubName string
    The name of the VirtualHub.
    connectionPolicyName string
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    id string
    Resource ID.
    properties ConnectionPolicyProperties
    Properties of the ConnectionPolicy resource.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    virtual_hub_name str
    The name of the VirtualHub.
    connection_policy_name str
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    id str
    Resource ID.
    properties ConnectionPolicyPropertiesArgs
    Properties of the ConnectionPolicy resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    virtualHubName String
    The name of the VirtualHub.
    connectionPolicyName String
    The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
    id String
    Resource ID.
    properties Property Map
    Properties of the ConnectionPolicy resource.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Etag string
    A unique read-only string that changes whenever the resource is updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Type string
    Resource type.
    AzureApiVersion string
    The Azure API version of the resource.
    Etag string
    A unique read-only string that changes whenever the resource is updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Type string
    Resource type.
    azure_api_version string
    The Azure API version of the resource.
    etag string
    A unique read-only string that changes whenever the resource is updated.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    type string
    Resource type.
    azureApiVersion String
    The Azure API version of the resource.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    type String
    Resource type.
    azureApiVersion string
    The Azure API version of the resource.
    etag string
    A unique read-only string that changes whenever the resource is updated.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    type string
    Resource type.
    azure_api_version str
    The Azure API version of the resource.
    etag str
    A unique read-only string that changes whenever the resource is updated.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    type str
    Resource type.
    azureApiVersion String
    The Azure API version of the resource.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    type String
    Resource type.

    Supporting Types

    ConnectionPolicyProperties, ConnectionPolicyPropertiesArgs

    Properties of the ConnectionPolicy resource.
    EnableInternetSecurity bool
    Enable internet security.
    RoutingConfiguration Pulumi.AzureNative.Network.Inputs.RoutingConfiguration
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    EnableInternetSecurity bool
    Enable internet security.
    RoutingConfiguration RoutingConfigurationType
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    enable_internet_security bool
    Enable internet security.
    routing_configuration object
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    enableInternetSecurity Boolean
    Enable internet security.
    routingConfiguration RoutingConfiguration
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    enableInternetSecurity boolean
    Enable internet security.
    routingConfiguration RoutingConfiguration
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    enable_internet_security bool
    Enable internet security.
    routing_configuration RoutingConfiguration
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    enableInternetSecurity Boolean
    Enable internet security.
    routingConfiguration Property Map
    The Routing Configuration indicating the associated and propagated route tables on this connection.

    ConnectionPolicyPropertiesResponse, ConnectionPolicyPropertiesResponseArgs

    Properties of the ConnectionPolicy resource.
    AssociatedConnections List<string>
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    ProvisioningState string
    The provisioning state of the ConnectionPolicy resource.
    EnableInternetSecurity bool
    Enable internet security.
    RoutingConfiguration Pulumi.AzureNative.Network.Inputs.RoutingConfigurationResponse
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    AssociatedConnections []string
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    ProvisioningState string
    The provisioning state of the ConnectionPolicy resource.
    EnableInternetSecurity bool
    Enable internet security.
    RoutingConfiguration RoutingConfigurationResponse
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    associated_connections list(string)
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    provisioning_state string
    The provisioning state of the ConnectionPolicy resource.
    enable_internet_security bool
    Enable internet security.
    routing_configuration object
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    associatedConnections List<String>
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    provisioningState String
    The provisioning state of the ConnectionPolicy resource.
    enableInternetSecurity Boolean
    Enable internet security.
    routingConfiguration RoutingConfigurationResponse
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    associatedConnections string[]
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    provisioningState string
    The provisioning state of the ConnectionPolicy resource.
    enableInternetSecurity boolean
    Enable internet security.
    routingConfiguration RoutingConfigurationResponse
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    associated_connections Sequence[str]
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    provisioning_state str
    The provisioning state of the ConnectionPolicy resource.
    enable_internet_security bool
    Enable internet security.
    routing_configuration RoutingConfigurationResponse
    The Routing Configuration indicating the associated and propagated route tables on this connection.
    associatedConnections List<String>
    List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
    provisioningState String
    The provisioning state of the ConnectionPolicy resource.
    enableInternetSecurity Boolean
    Enable internet security.
    routingConfiguration Property Map
    The Routing Configuration indicating the associated and propagated route tables on this connection.

    PropagatedRouteTable, PropagatedRouteTableArgs

    The list of RouteTables to advertise the routes to.
    Ids List<Pulumi.AzureNative.Network.Inputs.SubResource>
    The list of resource ids of all the RouteTables.
    Labels List<string>
    The list of labels.
    Ids []SubResource
    The list of resource ids of all the RouteTables.
    Labels []string
    The list of labels.
    ids list(object)
    The list of resource ids of all the RouteTables.
    labels list(string)
    The list of labels.
    ids List<SubResource>
    The list of resource ids of all the RouteTables.
    labels List<String>
    The list of labels.
    ids SubResource[]
    The list of resource ids of all the RouteTables.
    labels string[]
    The list of labels.
    ids Sequence[SubResource]
    The list of resource ids of all the RouteTables.
    labels Sequence[str]
    The list of labels.
    ids List<Property Map>
    The list of resource ids of all the RouteTables.
    labels List<String>
    The list of labels.

    PropagatedRouteTableResponse, PropagatedRouteTableResponseArgs

    The list of RouteTables to advertise the routes to.
    Ids List<Pulumi.AzureNative.Network.Inputs.SubResourceResponse>
    The list of resource ids of all the RouteTables.
    Labels List<string>
    The list of labels.
    Ids []SubResourceResponse
    The list of resource ids of all the RouteTables.
    Labels []string
    The list of labels.
    ids list(object)
    The list of resource ids of all the RouteTables.
    labels list(string)
    The list of labels.
    ids List<SubResourceResponse>
    The list of resource ids of all the RouteTables.
    labels List<String>
    The list of labels.
    ids SubResourceResponse[]
    The list of resource ids of all the RouteTables.
    labels string[]
    The list of labels.
    ids Sequence[SubResourceResponse]
    The list of resource ids of all the RouteTables.
    labels Sequence[str]
    The list of labels.
    ids List<Property Map>
    The list of resource ids of all the RouteTables.
    labels List<String>
    The list of labels.

    RoutingConfiguration, RoutingConfigurationArgs

    Routing Configuration indicating the associated and propagated route tables for this connection.
    AssociatedRouteTable Pulumi.AzureNative.Network.Inputs.SubResource
    The resource id RouteTable associated with this RoutingConfiguration.
    InboundRouteMap Pulumi.AzureNative.Network.Inputs.SubResource
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    OutboundRouteMap Pulumi.AzureNative.Network.Inputs.SubResource
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    PropagatedRouteTables Pulumi.AzureNative.Network.Inputs.PropagatedRouteTable
    The list of RouteTables to advertise the routes to.
    VnetRoutes Pulumi.AzureNative.Network.Inputs.VnetRoute
    List of routes that control routing from VirtualHub into a virtual network connection.
    AssociatedRouteTable SubResource
    The resource id RouteTable associated with this RoutingConfiguration.
    InboundRouteMap SubResource
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    OutboundRouteMap SubResource
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    PropagatedRouteTables PropagatedRouteTable
    The list of RouteTables to advertise the routes to.
    VnetRoutes VnetRoute
    List of routes that control routing from VirtualHub into a virtual network connection.
    associated_route_table object
    The resource id RouteTable associated with this RoutingConfiguration.
    inbound_route_map object
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outbound_route_map object
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagated_route_tables object
    The list of RouteTables to advertise the routes to.
    vnet_routes object
    List of routes that control routing from VirtualHub into a virtual network connection.
    associatedRouteTable SubResource
    The resource id RouteTable associated with this RoutingConfiguration.
    inboundRouteMap SubResource
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outboundRouteMap SubResource
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagatedRouteTables PropagatedRouteTable
    The list of RouteTables to advertise the routes to.
    vnetRoutes VnetRoute
    List of routes that control routing from VirtualHub into a virtual network connection.
    associatedRouteTable SubResource
    The resource id RouteTable associated with this RoutingConfiguration.
    inboundRouteMap SubResource
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outboundRouteMap SubResource
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagatedRouteTables PropagatedRouteTable
    The list of RouteTables to advertise the routes to.
    vnetRoutes VnetRoute
    List of routes that control routing from VirtualHub into a virtual network connection.
    associated_route_table SubResource
    The resource id RouteTable associated with this RoutingConfiguration.
    inbound_route_map SubResource
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outbound_route_map SubResource
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagated_route_tables PropagatedRouteTable
    The list of RouteTables to advertise the routes to.
    vnet_routes VnetRoute
    List of routes that control routing from VirtualHub into a virtual network connection.
    associatedRouteTable Property Map
    The resource id RouteTable associated with this RoutingConfiguration.
    inboundRouteMap Property Map
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outboundRouteMap Property Map
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagatedRouteTables Property Map
    The list of RouteTables to advertise the routes to.
    vnetRoutes Property Map
    List of routes that control routing from VirtualHub into a virtual network connection.

    RoutingConfigurationResponse, RoutingConfigurationResponseArgs

    Routing Configuration indicating the associated and propagated route tables for this connection.
    AssociatedRouteTable Pulumi.AzureNative.Network.Inputs.SubResourceResponse
    The resource id RouteTable associated with this RoutingConfiguration.
    InboundRouteMap Pulumi.AzureNative.Network.Inputs.SubResourceResponse
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    OutboundRouteMap Pulumi.AzureNative.Network.Inputs.SubResourceResponse
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    PropagatedRouteTables Pulumi.AzureNative.Network.Inputs.PropagatedRouteTableResponse
    The list of RouteTables to advertise the routes to.
    VnetRoutes Pulumi.AzureNative.Network.Inputs.VnetRouteResponse
    List of routes that control routing from VirtualHub into a virtual network connection.
    AssociatedRouteTable SubResourceResponse
    The resource id RouteTable associated with this RoutingConfiguration.
    InboundRouteMap SubResourceResponse
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    OutboundRouteMap SubResourceResponse
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    PropagatedRouteTables PropagatedRouteTableResponse
    The list of RouteTables to advertise the routes to.
    VnetRoutes VnetRouteResponse
    List of routes that control routing from VirtualHub into a virtual network connection.
    associated_route_table object
    The resource id RouteTable associated with this RoutingConfiguration.
    inbound_route_map object
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outbound_route_map object
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagated_route_tables object
    The list of RouteTables to advertise the routes to.
    vnet_routes object
    List of routes that control routing from VirtualHub into a virtual network connection.
    associatedRouteTable SubResourceResponse
    The resource id RouteTable associated with this RoutingConfiguration.
    inboundRouteMap SubResourceResponse
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outboundRouteMap SubResourceResponse
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagatedRouteTables PropagatedRouteTableResponse
    The list of RouteTables to advertise the routes to.
    vnetRoutes VnetRouteResponse
    List of routes that control routing from VirtualHub into a virtual network connection.
    associatedRouteTable SubResourceResponse
    The resource id RouteTable associated with this RoutingConfiguration.
    inboundRouteMap SubResourceResponse
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outboundRouteMap SubResourceResponse
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagatedRouteTables PropagatedRouteTableResponse
    The list of RouteTables to advertise the routes to.
    vnetRoutes VnetRouteResponse
    List of routes that control routing from VirtualHub into a virtual network connection.
    associated_route_table SubResourceResponse
    The resource id RouteTable associated with this RoutingConfiguration.
    inbound_route_map SubResourceResponse
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outbound_route_map SubResourceResponse
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagated_route_tables PropagatedRouteTableResponse
    The list of RouteTables to advertise the routes to.
    vnet_routes VnetRouteResponse
    List of routes that control routing from VirtualHub into a virtual network connection.
    associatedRouteTable Property Map
    The resource id RouteTable associated with this RoutingConfiguration.
    inboundRouteMap Property Map
    The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
    outboundRouteMap Property Map
    The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
    propagatedRouteTables Property Map
    The list of RouteTables to advertise the routes to.
    vnetRoutes Property Map
    List of routes that control routing from VirtualHub into a virtual network connection.

    StaticRoute, StaticRouteArgs

    List of all Static Routes.
    AddressPrefixes List<string>
    List of all address prefixes.
    Name string
    The name of the StaticRoute that is unique within a VnetRoute.
    NextHopIpAddress string
    The ip address of the next hop.
    AddressPrefixes []string
    List of all address prefixes.
    Name string
    The name of the StaticRoute that is unique within a VnetRoute.
    NextHopIpAddress string
    The ip address of the next hop.
    address_prefixes list(string)
    List of all address prefixes.
    name string
    The name of the StaticRoute that is unique within a VnetRoute.
    next_hop_ip_address string
    The ip address of the next hop.
    addressPrefixes List<String>
    List of all address prefixes.
    name String
    The name of the StaticRoute that is unique within a VnetRoute.
    nextHopIpAddress String
    The ip address of the next hop.
    addressPrefixes string[]
    List of all address prefixes.
    name string
    The name of the StaticRoute that is unique within a VnetRoute.
    nextHopIpAddress string
    The ip address of the next hop.
    address_prefixes Sequence[str]
    List of all address prefixes.
    name str
    The name of the StaticRoute that is unique within a VnetRoute.
    next_hop_ip_address str
    The ip address of the next hop.
    addressPrefixes List<String>
    List of all address prefixes.
    name String
    The name of the StaticRoute that is unique within a VnetRoute.
    nextHopIpAddress String
    The ip address of the next hop.

    StaticRouteResponse, StaticRouteResponseArgs

    List of all Static Routes.
    AddressPrefixes List<string>
    List of all address prefixes.
    Name string
    The name of the StaticRoute that is unique within a VnetRoute.
    NextHopIpAddress string
    The ip address of the next hop.
    AddressPrefixes []string
    List of all address prefixes.
    Name string
    The name of the StaticRoute that is unique within a VnetRoute.
    NextHopIpAddress string
    The ip address of the next hop.
    address_prefixes list(string)
    List of all address prefixes.
    name string
    The name of the StaticRoute that is unique within a VnetRoute.
    next_hop_ip_address string
    The ip address of the next hop.
    addressPrefixes List<String>
    List of all address prefixes.
    name String
    The name of the StaticRoute that is unique within a VnetRoute.
    nextHopIpAddress String
    The ip address of the next hop.
    addressPrefixes string[]
    List of all address prefixes.
    name string
    The name of the StaticRoute that is unique within a VnetRoute.
    nextHopIpAddress string
    The ip address of the next hop.
    address_prefixes Sequence[str]
    List of all address prefixes.
    name str
    The name of the StaticRoute that is unique within a VnetRoute.
    next_hop_ip_address str
    The ip address of the next hop.
    addressPrefixes List<String>
    List of all address prefixes.
    name String
    The name of the StaticRoute that is unique within a VnetRoute.
    nextHopIpAddress String
    The ip address of the next hop.

    StaticRoutesConfig, StaticRoutesConfigArgs

    Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection.
    PropagateStaticRoutes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    VnetLocalRouteOverrideCriteria string | Pulumi.AzureNative.Network.VnetLocalRouteOverrideCriteria
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    PropagateStaticRoutes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    VnetLocalRouteOverrideCriteria string | VnetLocalRouteOverrideCriteria
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagate_static_routes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnet_local_route_override_criteria string | "Contains" | "Equal"
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagateStaticRoutes Boolean
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnetLocalRouteOverrideCriteria String | VnetLocalRouteOverrideCriteria
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagateStaticRoutes boolean
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnetLocalRouteOverrideCriteria string | VnetLocalRouteOverrideCriteria
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagate_static_routes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnet_local_route_override_criteria str | VnetLocalRouteOverrideCriteria
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagateStaticRoutes Boolean
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnetLocalRouteOverrideCriteria String | "Contains" | "Equal"
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

    StaticRoutesConfigResponse, StaticRoutesConfigResponseArgs

    Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection.
    PropagateStaticRoutes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    VnetLocalRouteOverrideCriteria string
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    PropagateStaticRoutes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    VnetLocalRouteOverrideCriteria string
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagate_static_routes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnet_local_route_override_criteria string
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagateStaticRoutes Boolean
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnetLocalRouteOverrideCriteria String
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagateStaticRoutes boolean
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnetLocalRouteOverrideCriteria string
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagate_static_routes bool
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnet_local_route_override_criteria str
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
    propagateStaticRoutes Boolean
    Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
    vnetLocalRouteOverrideCriteria String
    Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.

    SubResource, SubResourceArgs

    Reference to another subresource.
    Id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    Id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id String
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id str
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id String
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    SubResourceResponse, SubResourceResponseArgs

    Reference to another subresource.
    Id string
    Resource ID.
    Id string
    Resource ID.
    id string
    Resource ID.
    id String
    Resource ID.
    id string
    Resource ID.
    id str
    Resource ID.
    id String
    Resource ID.

    VnetLocalRouteOverrideCriteria, VnetLocalRouteOverrideCriteriaArgs

    Contains
    Contains
    Equal
    Equal
    VnetLocalRouteOverrideCriteriaContains
    Contains
    VnetLocalRouteOverrideCriteriaEqual
    Equal
    "Contains"
    Contains
    "Equal"
    Equal
    Contains
    Contains
    Equal
    Equal
    Contains
    Contains
    Equal
    Equal
    CONTAINS
    Contains
    EQUAL
    Equal
    "Contains"
    Contains
    "Equal"
    Equal

    VnetRoute, VnetRouteArgs

    List of routes that control routing from VirtualHub into a virtual network connection.
    StaticRoutes []StaticRoute
    List of all Static Routes.
    StaticRoutesConfig StaticRoutesConfig
    Configuration for static routes on this HubVnetConnection.
    static_routes list(object)
    List of all Static Routes.
    static_routes_config object
    Configuration for static routes on this HubVnetConnection.
    staticRoutes List<StaticRoute>
    List of all Static Routes.
    staticRoutesConfig StaticRoutesConfig
    Configuration for static routes on this HubVnetConnection.
    staticRoutes StaticRoute[]
    List of all Static Routes.
    staticRoutesConfig StaticRoutesConfig
    Configuration for static routes on this HubVnetConnection.
    static_routes Sequence[StaticRoute]
    List of all Static Routes.
    static_routes_config StaticRoutesConfig
    Configuration for static routes on this HubVnetConnection.
    staticRoutes List<Property Map>
    List of all Static Routes.
    staticRoutesConfig Property Map
    Configuration for static routes on this HubVnetConnection.

    VnetRouteResponse, VnetRouteResponseArgs

    List of routes that control routing from VirtualHub into a virtual network connection.
    BgpConnections []SubResourceResponse
    The list of references to HubBgpConnection objects.
    StaticRoutes []StaticRouteResponse
    List of all Static Routes.
    StaticRoutesConfig StaticRoutesConfigResponse
    Configuration for static routes on this HubVnetConnection.
    bgp_connections list(object)
    The list of references to HubBgpConnection objects.
    static_routes list(object)
    List of all Static Routes.
    static_routes_config object
    Configuration for static routes on this HubVnetConnection.
    bgpConnections List<SubResourceResponse>
    The list of references to HubBgpConnection objects.
    staticRoutes List<StaticRouteResponse>
    List of all Static Routes.
    staticRoutesConfig StaticRoutesConfigResponse
    Configuration for static routes on this HubVnetConnection.
    bgpConnections SubResourceResponse[]
    The list of references to HubBgpConnection objects.
    staticRoutes StaticRouteResponse[]
    List of all Static Routes.
    staticRoutesConfig StaticRoutesConfigResponse
    Configuration for static routes on this HubVnetConnection.
    bgp_connections Sequence[SubResourceResponse]
    The list of references to HubBgpConnection objects.
    static_routes Sequence[StaticRouteResponse]
    List of all Static Routes.
    static_routes_config StaticRoutesConfigResponse
    Configuration for static routes on this HubVnetConnection.
    bgpConnections List<Property Map>
    The list of references to HubBgpConnection objects.
    staticRoutes List<Property Map>
    List of all Static Routes.
    staticRoutesConfig Property Map
    Configuration for static routes on this HubVnetConnection.

    Import

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

    $ pulumi import azure-native:network:ConnectionPolicy testpolicy2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/connectionPolicies/{connectionPolicyName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.25.0
    published on Wednesday, Aug 5, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial