1. Packages
  2. Azure Native
  3. API Docs
  4. managednetworkfabric
  5. InternetGateway
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.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.managednetworkfabric.InternetGateway

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.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

The Internet Gateway resource definition.

Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used API version 2023-06-15.

Example Usage

InternetGateways_Create_MaximumSet_Gen

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

return await Deployment.RunAsync(() => 
{
    var internetGateway = new AzureNative.ManagedNetworkFabric.InternetGateway("internetGateway", new()
    {
        Annotation = "annotation",
        InternetGatewayName = "example-internetGateway",
        InternetGatewayRuleId = "/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule",
        Location = "eastus",
        NetworkFabricControllerId = "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController",
        ResourceGroupName = "example-rg",
        Tags = 
        {
            { "key3540", "1234" },
        },
        Type = AzureNative.ManagedNetworkFabric.GatewayType.Infrastructure,
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := managednetworkfabric.NewInternetGateway(ctx, "internetGateway", &managednetworkfabric.InternetGatewayArgs{
			Annotation:                pulumi.String("annotation"),
			InternetGatewayName:       pulumi.String("example-internetGateway"),
			InternetGatewayRuleId:     pulumi.String("/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule"),
			Location:                  pulumi.String("eastus"),
			NetworkFabricControllerId: pulumi.String("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController"),
			ResourceGroupName:         pulumi.String("example-rg"),
			Tags: pulumi.StringMap{
				"key3540": pulumi.String("1234"),
			},
			Type: pulumi.String(managednetworkfabric.GatewayTypeInfrastructure),
		})
		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.managednetworkfabric.InternetGateway;
import com.pulumi.azurenative.managednetworkfabric.InternetGatewayArgs;
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 internetGateway = new InternetGateway("internetGateway", InternetGatewayArgs.builder()
            .annotation("annotation")
            .internetGatewayName("example-internetGateway")
            .internetGatewayRuleId("/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule")
            .location("eastus")
            .networkFabricControllerId("/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController")
            .resourceGroupName("example-rg")
            .tags(Map.of("key3540", "1234"))
            .type("Infrastructure")
            .build());

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

const internetGateway = new azure_native.managednetworkfabric.InternetGateway("internetGateway", {
    annotation: "annotation",
    internetGatewayName: "example-internetGateway",
    internetGatewayRuleId: "/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule",
    location: "eastus",
    networkFabricControllerId: "/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController",
    resourceGroupName: "example-rg",
    tags: {
        key3540: "1234",
    },
    type: azure_native.managednetworkfabric.GatewayType.Infrastructure,
});
Copy
import pulumi
import pulumi_azure_native as azure_native

internet_gateway = azure_native.managednetworkfabric.InternetGateway("internetGateway",
    annotation="annotation",
    internet_gateway_name="example-internetGateway",
    internet_gateway_rule_id="/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule",
    location="eastus",
    network_fabric_controller_id="/subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController",
    resource_group_name="example-rg",
    tags={
        "key3540": "1234",
    },
    type=azure_native.managednetworkfabric.GatewayType.INFRASTRUCTURE)
Copy
resources:
  internetGateway:
    type: azure-native:managednetworkfabric:InternetGateway
    properties:
      annotation: annotation
      internetGatewayName: example-internetGateway
      internetGatewayRuleId: /subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/example-internetGatewayRule
      location: eastus
      networkFabricControllerId: /subscriptions/xxxx-xxxx-xxxx-xxxx/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/example-networkFabricController
      resourceGroupName: example-rg
      tags:
        key3540: '1234'
      type: Infrastructure
Copy

Create InternetGateway Resource

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

Constructor syntax

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

@overload
def InternetGateway(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    network_fabric_controller_id: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    type: Optional[Union[str, GatewayType]] = None,
                    annotation: Optional[str] = None,
                    internet_gateway_name: Optional[str] = None,
                    internet_gateway_rule_id: Optional[str] = None,
                    location: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None)
func NewInternetGateway(ctx *Context, name string, args InternetGatewayArgs, opts ...ResourceOption) (*InternetGateway, error)
public InternetGateway(string name, InternetGatewayArgs args, CustomResourceOptions? opts = null)
public InternetGateway(String name, InternetGatewayArgs args)
public InternetGateway(String name, InternetGatewayArgs args, CustomResourceOptions options)
type: azure-native:managednetworkfabric:InternetGateway
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. InternetGatewayArgs
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. InternetGatewayArgs
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. InternetGatewayArgs
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. InternetGatewayArgs
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. InternetGatewayArgs
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 internetGatewayResource = new AzureNative.ManagedNetworkFabric.InternetGateway("internetGatewayResource", new()
{
    NetworkFabricControllerId = "string",
    ResourceGroupName = "string",
    Type = "string",
    Annotation = "string",
    InternetGatewayName = "string",
    InternetGatewayRuleId = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := managednetworkfabric.NewInternetGateway(ctx, "internetGatewayResource", &managednetworkfabric.InternetGatewayArgs{
	NetworkFabricControllerId: pulumi.String("string"),
	ResourceGroupName:         pulumi.String("string"),
	Type:                      pulumi.String("string"),
	Annotation:                pulumi.String("string"),
	InternetGatewayName:       pulumi.String("string"),
	InternetGatewayRuleId:     pulumi.String("string"),
	Location:                  pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var internetGatewayResource = new InternetGateway("internetGatewayResource", InternetGatewayArgs.builder()
    .networkFabricControllerId("string")
    .resourceGroupName("string")
    .type("string")
    .annotation("string")
    .internetGatewayName("string")
    .internetGatewayRuleId("string")
    .location("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
internet_gateway_resource = azure_native.managednetworkfabric.InternetGateway("internetGatewayResource",
    network_fabric_controller_id="string",
    resource_group_name="string",
    type="string",
    annotation="string",
    internet_gateway_name="string",
    internet_gateway_rule_id="string",
    location="string",
    tags={
        "string": "string",
    })
Copy
const internetGatewayResource = new azure_native.managednetworkfabric.InternetGateway("internetGatewayResource", {
    networkFabricControllerId: "string",
    resourceGroupName: "string",
    type: "string",
    annotation: "string",
    internetGatewayName: "string",
    internetGatewayRuleId: "string",
    location: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:managednetworkfabric:InternetGateway
properties:
    annotation: string
    internetGatewayName: string
    internetGatewayRuleId: string
    location: string
    networkFabricControllerId: string
    resourceGroupName: string
    tags:
        string: string
    type: string
Copy

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

NetworkFabricControllerId This property is required. string
ARM Resource ID of the Network Fabric Controller.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Type This property is required. string | Pulumi.AzureNative.ManagedNetworkFabric.GatewayType
Gateway Type of the resource.
Annotation string
Switch configuration description.
InternetGatewayName Changes to this property will trigger replacement. string
Name of the Internet Gateway.
InternetGatewayRuleId string
ARM Resource ID of the Internet Gateway Rule.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
Tags Dictionary<string, string>
Resource tags.
NetworkFabricControllerId This property is required. string
ARM Resource ID of the Network Fabric Controller.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Type This property is required. string | GatewayType
Gateway Type of the resource.
Annotation string
Switch configuration description.
InternetGatewayName Changes to this property will trigger replacement. string
Name of the Internet Gateway.
InternetGatewayRuleId string
ARM Resource ID of the Internet Gateway Rule.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
Tags map[string]string
Resource tags.
networkFabricControllerId This property is required. String
ARM Resource ID of the Network Fabric Controller.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
type This property is required. String | GatewayType
Gateway Type of the resource.
annotation String
Switch configuration description.
internetGatewayName Changes to this property will trigger replacement. String
Name of the Internet Gateway.
internetGatewayRuleId String
ARM Resource ID of the Internet Gateway Rule.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
tags Map<String,String>
Resource tags.
networkFabricControllerId This property is required. string
ARM Resource ID of the Network Fabric Controller.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
type This property is required. string | GatewayType
Gateway Type of the resource.
annotation string
Switch configuration description.
internetGatewayName Changes to this property will trigger replacement. string
Name of the Internet Gateway.
internetGatewayRuleId string
ARM Resource ID of the Internet Gateway Rule.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
tags {[key: string]: string}
Resource tags.
network_fabric_controller_id This property is required. str
ARM Resource ID of the Network Fabric Controller.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
type This property is required. str | GatewayType
Gateway Type of the resource.
annotation str
Switch configuration description.
internet_gateway_name Changes to this property will trigger replacement. str
Name of the Internet Gateway.
internet_gateway_rule_id str
ARM Resource ID of the Internet Gateway Rule.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
tags Mapping[str, str]
Resource tags.
networkFabricControllerId This property is required. String
ARM Resource ID of the Network Fabric Controller.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
type This property is required. String | "Infrastructure" | "Workload"
Gateway Type of the resource.
annotation String
Switch configuration description.
internetGatewayName Changes to this property will trigger replacement. String
Name of the Internet Gateway.
internetGatewayRuleId String
ARM Resource ID of the Internet Gateway Rule.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
tags Map<String>
Resource tags.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Ipv4Address string
IPv4 Address of Internet Gateway.
Name string
The name of the resource
Port int
Port number of Internet Gateway.
ProvisioningState string
Provisioning state of resource.
SystemData Pulumi.AzureNative.ManagedNetworkFabric.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Ipv4Address string
IPv4 Address of Internet Gateway.
Name string
The name of the resource
Port int
Port number of Internet Gateway.
ProvisioningState string
Provisioning state of resource.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
ipv4Address String
IPv4 Address of Internet Gateway.
name String
The name of the resource
port Integer
Port number of Internet Gateway.
provisioningState String
Provisioning state of resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
ipv4Address string
IPv4 Address of Internet Gateway.
name string
The name of the resource
port number
Port number of Internet Gateway.
provisioningState string
Provisioning state of resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
ipv4_address str
IPv4 Address of Internet Gateway.
name str
The name of the resource
port int
Port number of Internet Gateway.
provisioning_state str
Provisioning state of resource.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
ipv4Address String
IPv4 Address of Internet Gateway.
name String
The name of the resource
port Number
Port number of Internet Gateway.
provisioningState String
Provisioning state of resource.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.

Supporting Types

GatewayType
, GatewayTypeArgs

Infrastructure
Infrastructure
Workload
Workload
GatewayTypeInfrastructure
Infrastructure
GatewayTypeWorkload
Workload
Infrastructure
Infrastructure
Workload
Workload
Infrastructure
Infrastructure
Workload
Workload
INFRASTRUCTURE
Infrastructure
WORKLOAD
Workload
"Infrastructure"
Infrastructure
"Workload"
Workload

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
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
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
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
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
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
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
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
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
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
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
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
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

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

$ pulumi import azure-native:managednetworkfabric:InternetGateway example-internetGateway /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName} 
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.1.0 published on Tuesday, Apr 8, 2025 by Pulumi