1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. BastionHost
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.network.BastionHost

Explore with Pulumi AI

Bastion Host resource.

Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.

Other available API versions: 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.

Example Usage

Create Bastion Host

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

return await Deployment.RunAsync(() => 
{
    var bastionHost = new AzureNative.Network.BastionHost("bastionHost", new()
    {
        BastionHostName = "bastionhosttenant",
        IpConfigurations = new[]
        {
            new AzureNative.Network.Inputs.BastionHostIPConfigurationArgs
            {
                Name = "bastionHostIpConfiguration",
                PublicIPAddress = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName",
                },
                Subnet = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
                },
            },
        },
        ResourceGroupName = "rg1",
    });

});
Copy
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.NewBastionHost(ctx, "bastionHost", &network.BastionHostArgs{
			BastionHostName: pulumi.String("bastionhosttenant"),
			IpConfigurations: network.BastionHostIPConfigurationArray{
				&network.BastionHostIPConfigurationArgs{
					Name: pulumi.String("bastionHostIpConfiguration"),
					PublicIPAddress: &network.SubResourceArgs{
						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName"),
					},
					Subnet: &network.SubResourceArgs{
						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet"),
					},
				},
			},
			ResourceGroupName: pulumi.String("rg1"),
		})
		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.network.BastionHost;
import com.pulumi.azurenative.network.BastionHostArgs;
import com.pulumi.azurenative.network.inputs.BastionHostIPConfigurationArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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 bastionHost = new BastionHost("bastionHost", BastionHostArgs.builder()
            .bastionHostName("bastionhosttenant")
            .ipConfigurations(BastionHostIPConfigurationArgs.builder()
                .name("bastionHostIpConfiguration")
                .publicIPAddress(SubResourceArgs.builder()
                    .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")
                    .build())
                .subnet(SubResourceArgs.builder()
                    .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")
                    .build())
                .build())
            .resourceGroupName("rg1")
            .build());

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

const bastionHost = new azure_native.network.BastionHost("bastionHost", {
    bastionHostName: "bastionhosttenant",
    ipConfigurations: [{
        name: "bastionHostIpConfiguration",
        publicIPAddress: {
            id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName",
        },
        subnet: {
            id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
        },
    }],
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

bastion_host = azure_native.network.BastionHost("bastionHost",
    bastion_host_name="bastionhosttenant",
    ip_configurations=[{
        "name": "bastionHostIpConfiguration",
        "public_ip_address": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName",
        },
        "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
        },
    }],
    resource_group_name="rg1")
Copy
resources:
  bastionHost:
    type: azure-native:network:BastionHost
    properties:
      bastionHostName: bastionhosttenant
      ipConfigurations:
        - name: bastionHostIpConfiguration
          publicIPAddress:
            id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName
          subnet:
            id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet
      resourceGroupName: rg1
Copy

Create Bastion Host With Private Only

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

return await Deployment.RunAsync(() => 
{
    var bastionHost = new AzureNative.Network.BastionHost("bastionHost", new()
    {
        BastionHostName = "bastionhosttenant",
        EnablePrivateOnlyBastion = true,
        IpConfigurations = new[]
        {
            new AzureNative.Network.Inputs.BastionHostIPConfigurationArgs
            {
                Name = "bastionHostIpConfiguration",
                Subnet = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
                },
            },
        },
        ResourceGroupName = "rg1",
    });

});
Copy
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.NewBastionHost(ctx, "bastionHost", &network.BastionHostArgs{
			BastionHostName:          pulumi.String("bastionhosttenant"),
			EnablePrivateOnlyBastion: pulumi.Bool(true),
			IpConfigurations: network.BastionHostIPConfigurationArray{
				&network.BastionHostIPConfigurationArgs{
					Name: pulumi.String("bastionHostIpConfiguration"),
					Subnet: &network.SubResourceArgs{
						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet"),
					},
				},
			},
			ResourceGroupName: pulumi.String("rg1"),
		})
		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.network.BastionHost;
import com.pulumi.azurenative.network.BastionHostArgs;
import com.pulumi.azurenative.network.inputs.BastionHostIPConfigurationArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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 bastionHost = new BastionHost("bastionHost", BastionHostArgs.builder()
            .bastionHostName("bastionhosttenant")
            .enablePrivateOnlyBastion(true)
            .ipConfigurations(BastionHostIPConfigurationArgs.builder()
                .name("bastionHostIpConfiguration")
                .subnet(SubResourceArgs.builder()
                    .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")
                    .build())
                .build())
            .resourceGroupName("rg1")
            .build());

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

const bastionHost = new azure_native.network.BastionHost("bastionHost", {
    bastionHostName: "bastionhosttenant",
    enablePrivateOnlyBastion: true,
    ipConfigurations: [{
        name: "bastionHostIpConfiguration",
        subnet: {
            id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
        },
    }],
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

bastion_host = azure_native.network.BastionHost("bastionHost",
    bastion_host_name="bastionhosttenant",
    enable_private_only_bastion=True,
    ip_configurations=[{
        "name": "bastionHostIpConfiguration",
        "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
        },
    }],
    resource_group_name="rg1")
Copy
resources:
  bastionHost:
    type: azure-native:network:BastionHost
    properties:
      bastionHostName: bastionhosttenant
      enablePrivateOnlyBastion: true
      ipConfigurations:
        - name: bastionHostIpConfiguration
          subnet:
            id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet
      resourceGroupName: rg1
Copy

Create Bastion Host With Zones

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

return await Deployment.RunAsync(() => 
{
    var bastionHost = new AzureNative.Network.BastionHost("bastionHost", new()
    {
        BastionHostName = "bastionhosttenant",
        IpConfigurations = new[]
        {
            new AzureNative.Network.Inputs.BastionHostIPConfigurationArgs
            {
                Name = "bastionHostIpConfiguration",
                PublicIPAddress = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName",
                },
                Subnet = new AzureNative.Network.Inputs.SubResourceArgs
                {
                    Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
                },
            },
        },
        ResourceGroupName = "rg1",
    });

});
Copy
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.NewBastionHost(ctx, "bastionHost", &network.BastionHostArgs{
			BastionHostName: pulumi.String("bastionhosttenant"),
			IpConfigurations: network.BastionHostIPConfigurationArray{
				&network.BastionHostIPConfigurationArgs{
					Name: pulumi.String("bastionHostIpConfiguration"),
					PublicIPAddress: &network.SubResourceArgs{
						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName"),
					},
					Subnet: &network.SubResourceArgs{
						Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet"),
					},
				},
			},
			ResourceGroupName: pulumi.String("rg1"),
		})
		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.network.BastionHost;
import com.pulumi.azurenative.network.BastionHostArgs;
import com.pulumi.azurenative.network.inputs.BastionHostIPConfigurationArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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 bastionHost = new BastionHost("bastionHost", BastionHostArgs.builder()
            .bastionHostName("bastionhosttenant")
            .ipConfigurations(BastionHostIPConfigurationArgs.builder()
                .name("bastionHostIpConfiguration")
                .publicIPAddress(SubResourceArgs.builder()
                    .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")
                    .build())
                .subnet(SubResourceArgs.builder()
                    .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")
                    .build())
                .build())
            .resourceGroupName("rg1")
            .build());

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

const bastionHost = new azure_native.network.BastionHost("bastionHost", {
    bastionHostName: "bastionhosttenant",
    ipConfigurations: [{
        name: "bastionHostIpConfiguration",
        publicIPAddress: {
            id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName",
        },
        subnet: {
            id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
        },
    }],
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

bastion_host = azure_native.network.BastionHost("bastionHost",
    bastion_host_name="bastionhosttenant",
    ip_configurations=[{
        "name": "bastionHostIpConfiguration",
        "public_ip_address": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName",
        },
        "subnet": {
            "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet",
        },
    }],
    resource_group_name="rg1")
Copy
resources:
  bastionHost:
    type: azure-native:network:BastionHost
    properties:
      bastionHostName: bastionhosttenant
      ipConfigurations:
        - name: bastionHostIpConfiguration
          publicIPAddress:
            id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName
          subnet:
            id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet
      resourceGroupName: rg1
Copy

Create Developer Bastion Host

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

return await Deployment.RunAsync(() => 
{
    var bastionHost = new AzureNative.Network.BastionHost("bastionHost", new()
    {
        BastionHostName = "bastionhostdeveloper",
        IpConfigurations = new[] {},
        NetworkAcls = new AzureNative.Network.Inputs.BastionHostPropertiesFormatNetworkAclsArgs
        {
            IpRules = new[]
            {
                new AzureNative.Network.Inputs.IPRuleArgs
                {
                    AddressPrefix = "1.1.1.1/16",
                },
            },
        },
        ResourceGroupName = "rg2",
        VirtualNetwork = new AzureNative.Network.Inputs.SubResourceArgs
        {
            Id = "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2",
        },
    });

});
Copy
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.NewBastionHost(ctx, "bastionHost", &network.BastionHostArgs{
			BastionHostName:  pulumi.String("bastionhostdeveloper"),
			IpConfigurations: network.BastionHostIPConfigurationArray{},
			NetworkAcls: &network.BastionHostPropertiesFormatNetworkAclsArgs{
				IpRules: network.IPRuleArray{
					&network.IPRuleArgs{
						AddressPrefix: pulumi.String("1.1.1.1/16"),
					},
				},
			},
			ResourceGroupName: pulumi.String("rg2"),
			VirtualNetwork: &network.SubResourceArgs{
				Id: pulumi.String("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2"),
			},
		})
		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.network.BastionHost;
import com.pulumi.azurenative.network.BastionHostArgs;
import com.pulumi.azurenative.network.inputs.BastionHostPropertiesFormatNetworkAclsArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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 bastionHost = new BastionHost("bastionHost", BastionHostArgs.builder()
            .bastionHostName("bastionhostdeveloper")
            .ipConfigurations()
            .networkAcls(BastionHostPropertiesFormatNetworkAclsArgs.builder()
                .ipRules(IPRuleArgs.builder()
                    .addressPrefix("1.1.1.1/16")
                    .build())
                .build())
            .resourceGroupName("rg2")
            .virtualNetwork(SubResourceArgs.builder()
                .id("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2")
                .build())
            .build());

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

const bastionHost = new azure_native.network.BastionHost("bastionHost", {
    bastionHostName: "bastionhostdeveloper",
    ipConfigurations: [],
    networkAcls: {
        ipRules: [{
            addressPrefix: "1.1.1.1/16",
        }],
    },
    resourceGroupName: "rg2",
    virtualNetwork: {
        id: "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

bastion_host = azure_native.network.BastionHost("bastionHost",
    bastion_host_name="bastionhostdeveloper",
    ip_configurations=[],
    network_acls={
        "ip_rules": [{
            "address_prefix": "1.1.1.1/16",
        }],
    },
    resource_group_name="rg2",
    virtual_network={
        "id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2",
    })
Copy
resources:
  bastionHost:
    type: azure-native:network:BastionHost
    properties:
      bastionHostName: bastionhostdeveloper
      ipConfigurations: []
      networkAcls:
        ipRules:
          - addressPrefix: 1.1.1.1/16
      resourceGroupName: rg2
      virtualNetwork:
        id: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/vnet2
Copy

Create BastionHost Resource

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

Constructor syntax

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

@overload
def BastionHost(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                id: Optional[str] = None,
                ip_configurations: Optional[Sequence[BastionHostIPConfigurationArgs]] = None,
                enable_file_copy: Optional[bool] = None,
                bastion_host_name: Optional[str] = None,
                enable_kerberos: Optional[bool] = None,
                enable_private_only_bastion: Optional[bool] = None,
                enable_session_recording: Optional[bool] = None,
                enable_shareable_link: Optional[bool] = None,
                dns_name: Optional[str] = None,
                enable_tunneling: Optional[bool] = None,
                enable_ip_connect: Optional[bool] = None,
                location: Optional[str] = None,
                network_acls: Optional[BastionHostPropertiesFormatNetworkAclsArgs] = None,
                disable_copy_paste: Optional[bool] = None,
                scale_units: Optional[int] = None,
                sku: Optional[SkuArgs] = None,
                tags: Optional[Mapping[str, str]] = None,
                virtual_network: Optional[SubResourceArgs] = None,
                zones: Optional[Sequence[str]] = None)
func NewBastionHost(ctx *Context, name string, args BastionHostArgs, opts ...ResourceOption) (*BastionHost, error)
public BastionHost(string name, BastionHostArgs args, CustomResourceOptions? opts = null)
public BastionHost(String name, BastionHostArgs args)
public BastionHost(String name, BastionHostArgs args, CustomResourceOptions options)
type: azure-native:network:BastionHost
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. BastionHostArgs
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. BastionHostArgs
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. BastionHostArgs
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. BastionHostArgs
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. BastionHostArgs
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 bastionHostResource = new AzureNative.Network.BastionHost("bastionHostResource", new()
{
    ResourceGroupName = "string",
    Id = "string",
    IpConfigurations = new[]
    {
        new AzureNative.Network.Inputs.BastionHostIPConfigurationArgs
        {
            Subnet = new AzureNative.Network.Inputs.SubResourceArgs
            {
                Id = "string",
            },
            Id = "string",
            Name = "string",
            PrivateIPAllocationMethod = "string",
            PublicIPAddress = new AzureNative.Network.Inputs.SubResourceArgs
            {
                Id = "string",
            },
        },
    },
    EnableFileCopy = false,
    BastionHostName = "string",
    EnableKerberos = false,
    EnablePrivateOnlyBastion = false,
    EnableSessionRecording = false,
    EnableShareableLink = false,
    DnsName = "string",
    EnableTunneling = false,
    EnableIpConnect = false,
    Location = "string",
    NetworkAcls = new AzureNative.Network.Inputs.BastionHostPropertiesFormatNetworkAclsArgs
    {
        IpRules = new[]
        {
            new AzureNative.Network.Inputs.IPRuleArgs
            {
                AddressPrefix = "string",
            },
        },
    },
    DisableCopyPaste = false,
    ScaleUnits = 0,
    Sku = new AzureNative.Network.Inputs.SkuArgs
    {
        Name = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
    VirtualNetwork = new AzureNative.Network.Inputs.SubResourceArgs
    {
        Id = "string",
    },
    Zones = new[]
    {
        "string",
    },
});
Copy
example, err := network.NewBastionHost(ctx, "bastionHostResource", &network.BastionHostArgs{
	ResourceGroupName: pulumi.String("string"),
	Id:                pulumi.String("string"),
	IpConfigurations: network.BastionHostIPConfigurationArray{
		&network.BastionHostIPConfigurationArgs{
			Subnet: &network.SubResourceArgs{
				Id: pulumi.String("string"),
			},
			Id:                        pulumi.String("string"),
			Name:                      pulumi.String("string"),
			PrivateIPAllocationMethod: pulumi.String("string"),
			PublicIPAddress: &network.SubResourceArgs{
				Id: pulumi.String("string"),
			},
		},
	},
	EnableFileCopy:           pulumi.Bool(false),
	BastionHostName:          pulumi.String("string"),
	EnableKerberos:           pulumi.Bool(false),
	EnablePrivateOnlyBastion: pulumi.Bool(false),
	EnableSessionRecording:   pulumi.Bool(false),
	EnableShareableLink:      pulumi.Bool(false),
	DnsName:                  pulumi.String("string"),
	EnableTunneling:          pulumi.Bool(false),
	EnableIpConnect:          pulumi.Bool(false),
	Location:                 pulumi.String("string"),
	NetworkAcls: &network.BastionHostPropertiesFormatNetworkAclsArgs{
		IpRules: network.IPRuleArray{
			&network.IPRuleArgs{
				AddressPrefix: pulumi.String("string"),
			},
		},
	},
	DisableCopyPaste: pulumi.Bool(false),
	ScaleUnits:       pulumi.Int(0),
	Sku: &network.SkuArgs{
		Name: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	VirtualNetwork: &network.SubResourceArgs{
		Id: pulumi.String("string"),
	},
	Zones: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var bastionHostResource = new BastionHost("bastionHostResource", BastionHostArgs.builder()
    .resourceGroupName("string")
    .id("string")
    .ipConfigurations(BastionHostIPConfigurationArgs.builder()
        .subnet(SubResourceArgs.builder()
            .id("string")
            .build())
        .id("string")
        .name("string")
        .privateIPAllocationMethod("string")
        .publicIPAddress(SubResourceArgs.builder()
            .id("string")
            .build())
        .build())
    .enableFileCopy(false)
    .bastionHostName("string")
    .enableKerberos(false)
    .enablePrivateOnlyBastion(false)
    .enableSessionRecording(false)
    .enableShareableLink(false)
    .dnsName("string")
    .enableTunneling(false)
    .enableIpConnect(false)
    .location("string")
    .networkAcls(BastionHostPropertiesFormatNetworkAclsArgs.builder()
        .ipRules(IPRuleArgs.builder()
            .addressPrefix("string")
            .build())
        .build())
    .disableCopyPaste(false)
    .scaleUnits(0)
    .sku(SkuArgs.builder()
        .name("string")
        .build())
    .tags(Map.of("string", "string"))
    .virtualNetwork(SubResourceArgs.builder()
        .id("string")
        .build())
    .zones("string")
    .build());
Copy
bastion_host_resource = azure_native.network.BastionHost("bastionHostResource",
    resource_group_name="string",
    id="string",
    ip_configurations=[{
        "subnet": {
            "id": "string",
        },
        "id": "string",
        "name": "string",
        "private_ip_allocation_method": "string",
        "public_ip_address": {
            "id": "string",
        },
    }],
    enable_file_copy=False,
    bastion_host_name="string",
    enable_kerberos=False,
    enable_private_only_bastion=False,
    enable_session_recording=False,
    enable_shareable_link=False,
    dns_name="string",
    enable_tunneling=False,
    enable_ip_connect=False,
    location="string",
    network_acls={
        "ip_rules": [{
            "address_prefix": "string",
        }],
    },
    disable_copy_paste=False,
    scale_units=0,
    sku={
        "name": "string",
    },
    tags={
        "string": "string",
    },
    virtual_network={
        "id": "string",
    },
    zones=["string"])
Copy
const bastionHostResource = new azure_native.network.BastionHost("bastionHostResource", {
    resourceGroupName: "string",
    id: "string",
    ipConfigurations: [{
        subnet: {
            id: "string",
        },
        id: "string",
        name: "string",
        privateIPAllocationMethod: "string",
        publicIPAddress: {
            id: "string",
        },
    }],
    enableFileCopy: false,
    bastionHostName: "string",
    enableKerberos: false,
    enablePrivateOnlyBastion: false,
    enableSessionRecording: false,
    enableShareableLink: false,
    dnsName: "string",
    enableTunneling: false,
    enableIpConnect: false,
    location: "string",
    networkAcls: {
        ipRules: [{
            addressPrefix: "string",
        }],
    },
    disableCopyPaste: false,
    scaleUnits: 0,
    sku: {
        name: "string",
    },
    tags: {
        string: "string",
    },
    virtualNetwork: {
        id: "string",
    },
    zones: ["string"],
});
Copy
type: azure-native:network:BastionHost
properties:
    bastionHostName: string
    disableCopyPaste: false
    dnsName: string
    enableFileCopy: false
    enableIpConnect: false
    enableKerberos: false
    enablePrivateOnlyBastion: false
    enableSessionRecording: false
    enableShareableLink: false
    enableTunneling: false
    id: string
    ipConfigurations:
        - id: string
          name: string
          privateIPAllocationMethod: string
          publicIPAddress:
            id: string
          subnet:
            id: string
    location: string
    networkAcls:
        ipRules:
            - addressPrefix: string
    resourceGroupName: string
    scaleUnits: 0
    sku:
        name: string
    tags:
        string: string
    virtualNetwork:
        id: string
    zones:
        - string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
BastionHostName Changes to this property will trigger replacement. string
The name of the Bastion Host.
DisableCopyPaste bool
Enable/Disable Copy/Paste feature of the Bastion Host resource.
DnsName string
FQDN for the endpoint on which bastion host is accessible.
EnableFileCopy bool
Enable/Disable File Copy feature of the Bastion Host resource.
EnableIpConnect bool
Enable/Disable IP Connect feature of the Bastion Host resource.
EnableKerberos bool
Enable/Disable Kerberos feature of the Bastion Host resource.
EnablePrivateOnlyBastion bool
Enable/Disable Private Only feature of the Bastion Host resource.
EnableSessionRecording bool
Enable/Disable Session Recording feature of the Bastion Host resource.
EnableShareableLink bool
Enable/Disable Shareable Link of the Bastion Host resource.
EnableTunneling bool
Enable/Disable Tunneling feature of the Bastion Host resource.
Id string
Resource ID.
IpConfigurations List<Pulumi.AzureNative.Network.Inputs.BastionHostIPConfiguration>
IP configuration of the Bastion Host resource.
Location string
Resource location.
NetworkAcls Pulumi.AzureNative.Network.Inputs.BastionHostPropertiesFormatNetworkAcls
ScaleUnits int
The scale units for the Bastion Host resource.
Sku Pulumi.AzureNative.Network.Inputs.Sku
The sku of this Bastion Host.
Tags Dictionary<string, string>
Resource tags.
VirtualNetwork Pulumi.AzureNative.Network.Inputs.SubResource
Reference to an existing virtual network required for Developer Bastion Host only.
Zones List<string>
A list of availability zones denoting where the resource needs to come from.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
BastionHostName Changes to this property will trigger replacement. string
The name of the Bastion Host.
DisableCopyPaste bool
Enable/Disable Copy/Paste feature of the Bastion Host resource.
DnsName string
FQDN for the endpoint on which bastion host is accessible.
EnableFileCopy bool
Enable/Disable File Copy feature of the Bastion Host resource.
EnableIpConnect bool
Enable/Disable IP Connect feature of the Bastion Host resource.
EnableKerberos bool
Enable/Disable Kerberos feature of the Bastion Host resource.
EnablePrivateOnlyBastion bool
Enable/Disable Private Only feature of the Bastion Host resource.
EnableSessionRecording bool
Enable/Disable Session Recording feature of the Bastion Host resource.
EnableShareableLink bool
Enable/Disable Shareable Link of the Bastion Host resource.
EnableTunneling bool
Enable/Disable Tunneling feature of the Bastion Host resource.
Id string
Resource ID.
IpConfigurations []BastionHostIPConfigurationArgs
IP configuration of the Bastion Host resource.
Location string
Resource location.
NetworkAcls BastionHostPropertiesFormatNetworkAclsArgs
ScaleUnits int
The scale units for the Bastion Host resource.
Sku SkuArgs
The sku of this Bastion Host.
Tags map[string]string
Resource tags.
VirtualNetwork SubResourceArgs
Reference to an existing virtual network required for Developer Bastion Host only.
Zones []string
A list of availability zones denoting where the resource needs to come from.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
bastionHostName Changes to this property will trigger replacement. String
The name of the Bastion Host.
disableCopyPaste Boolean
Enable/Disable Copy/Paste feature of the Bastion Host resource.
dnsName String
FQDN for the endpoint on which bastion host is accessible.
enableFileCopy Boolean
Enable/Disable File Copy feature of the Bastion Host resource.
enableIpConnect Boolean
Enable/Disable IP Connect feature of the Bastion Host resource.
enableKerberos Boolean
Enable/Disable Kerberos feature of the Bastion Host resource.
enablePrivateOnlyBastion Boolean
Enable/Disable Private Only feature of the Bastion Host resource.
enableSessionRecording Boolean
Enable/Disable Session Recording feature of the Bastion Host resource.
enableShareableLink Boolean
Enable/Disable Shareable Link of the Bastion Host resource.
enableTunneling Boolean
Enable/Disable Tunneling feature of the Bastion Host resource.
id String
Resource ID.
ipConfigurations List<BastionHostIPConfiguration>
IP configuration of the Bastion Host resource.
location String
Resource location.
networkAcls BastionHostPropertiesFormatNetworkAcls
scaleUnits Integer
The scale units for the Bastion Host resource.
sku Sku
The sku of this Bastion Host.
tags Map<String,String>
Resource tags.
virtualNetwork SubResource
Reference to an existing virtual network required for Developer Bastion Host only.
zones List<String>
A list of availability zones denoting where the resource needs to come from.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
bastionHostName Changes to this property will trigger replacement. string
The name of the Bastion Host.
disableCopyPaste boolean
Enable/Disable Copy/Paste feature of the Bastion Host resource.
dnsName string
FQDN for the endpoint on which bastion host is accessible.
enableFileCopy boolean
Enable/Disable File Copy feature of the Bastion Host resource.
enableIpConnect boolean
Enable/Disable IP Connect feature of the Bastion Host resource.
enableKerberos boolean
Enable/Disable Kerberos feature of the Bastion Host resource.
enablePrivateOnlyBastion boolean
Enable/Disable Private Only feature of the Bastion Host resource.
enableSessionRecording boolean
Enable/Disable Session Recording feature of the Bastion Host resource.
enableShareableLink boolean
Enable/Disable Shareable Link of the Bastion Host resource.
enableTunneling boolean
Enable/Disable Tunneling feature of the Bastion Host resource.
id string
Resource ID.
ipConfigurations BastionHostIPConfiguration[]
IP configuration of the Bastion Host resource.
location string
Resource location.
networkAcls BastionHostPropertiesFormatNetworkAcls
scaleUnits number
The scale units for the Bastion Host resource.
sku Sku
The sku of this Bastion Host.
tags {[key: string]: string}
Resource tags.
virtualNetwork SubResource
Reference to an existing virtual network required for Developer Bastion Host only.
zones string[]
A list of availability zones denoting where the resource needs to come from.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
bastion_host_name Changes to this property will trigger replacement. str
The name of the Bastion Host.
disable_copy_paste bool
Enable/Disable Copy/Paste feature of the Bastion Host resource.
dns_name str
FQDN for the endpoint on which bastion host is accessible.
enable_file_copy bool
Enable/Disable File Copy feature of the Bastion Host resource.
enable_ip_connect bool
Enable/Disable IP Connect feature of the Bastion Host resource.
enable_kerberos bool
Enable/Disable Kerberos feature of the Bastion Host resource.
enable_private_only_bastion bool
Enable/Disable Private Only feature of the Bastion Host resource.
enable_session_recording bool
Enable/Disable Session Recording feature of the Bastion Host resource.
enable_shareable_link bool
Enable/Disable Shareable Link of the Bastion Host resource.
enable_tunneling bool
Enable/Disable Tunneling feature of the Bastion Host resource.
id str
Resource ID.
ip_configurations Sequence[BastionHostIPConfigurationArgs]
IP configuration of the Bastion Host resource.
location str
Resource location.
network_acls BastionHostPropertiesFormatNetworkAclsArgs
scale_units int
The scale units for the Bastion Host resource.
sku SkuArgs
The sku of this Bastion Host.
tags Mapping[str, str]
Resource tags.
virtual_network SubResourceArgs
Reference to an existing virtual network required for Developer Bastion Host only.
zones Sequence[str]
A list of availability zones denoting where the resource needs to come from.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
bastionHostName Changes to this property will trigger replacement. String
The name of the Bastion Host.
disableCopyPaste Boolean
Enable/Disable Copy/Paste feature of the Bastion Host resource.
dnsName String
FQDN for the endpoint on which bastion host is accessible.
enableFileCopy Boolean
Enable/Disable File Copy feature of the Bastion Host resource.
enableIpConnect Boolean
Enable/Disable IP Connect feature of the Bastion Host resource.
enableKerberos Boolean
Enable/Disable Kerberos feature of the Bastion Host resource.
enablePrivateOnlyBastion Boolean
Enable/Disable Private Only feature of the Bastion Host resource.
enableSessionRecording Boolean
Enable/Disable Session Recording feature of the Bastion Host resource.
enableShareableLink Boolean
Enable/Disable Shareable Link of the Bastion Host resource.
enableTunneling Boolean
Enable/Disable Tunneling feature of the Bastion Host resource.
id String
Resource ID.
ipConfigurations List<Property Map>
IP configuration of the Bastion Host resource.
location String
Resource location.
networkAcls Property Map
scaleUnits Number
The scale units for the Bastion Host resource.
sku Property Map
The sku of this Bastion Host.
tags Map<String>
Resource tags.
virtualNetwork Property Map
Reference to an existing virtual network required for Developer Bastion Host only.
zones List<String>
A list of availability zones denoting where the resource needs to come from.

Outputs

All input properties are implicitly available as output properties. Additionally, the BastionHost 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.
ProvisioningState string
The provisioning state of the bastion host resource.
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.
ProvisioningState string
The provisioning state of the bastion host resource.
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.
provisioningState String
The provisioning state of the bastion host resource.
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.
provisioningState string
The provisioning state of the bastion host resource.
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.
provisioning_state str
The provisioning state of the bastion host resource.
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.
provisioningState String
The provisioning state of the bastion host resource.
type String
Resource type.

Supporting Types

BastionHostIPConfiguration
, BastionHostIPConfigurationArgs

Subnet This property is required. Pulumi.AzureNative.Network.Inputs.SubResource
Reference of the subnet resource.
Id string
Resource ID.
Name string
Name of the resource that is unique within a resource group. This name can be used to access the resource.
PrivateIPAllocationMethod string | Pulumi.AzureNative.Network.IPAllocationMethod
Private IP allocation method.
PublicIPAddress Pulumi.AzureNative.Network.Inputs.SubResource
Reference of the PublicIP resource. Null for private only bastion
Subnet This property is required. SubResource
Reference of the subnet resource.
Id string
Resource ID.
Name string
Name of the resource that is unique within a resource group. This name can be used to access the resource.
PrivateIPAllocationMethod string | IPAllocationMethod
Private IP allocation method.
PublicIPAddress SubResource
Reference of the PublicIP resource. Null for private only bastion
subnet This property is required. SubResource
Reference of the subnet resource.
id String
Resource ID.
name String
Name of the resource that is unique within a resource group. This name can be used to access the resource.
privateIPAllocationMethod String | IPAllocationMethod
Private IP allocation method.
publicIPAddress SubResource
Reference of the PublicIP resource. Null for private only bastion
subnet This property is required. SubResource
Reference of the subnet resource.
id string
Resource ID.
name string
Name of the resource that is unique within a resource group. This name can be used to access the resource.
privateIPAllocationMethod string | IPAllocationMethod
Private IP allocation method.
publicIPAddress SubResource
Reference of the PublicIP resource. Null for private only bastion
subnet This property is required. SubResource
Reference of the subnet resource.
id str
Resource ID.
name str
Name of the resource that is unique within a resource group. This name can be used to access the resource.
private_ip_allocation_method str | IPAllocationMethod
Private IP allocation method.
public_ip_address SubResource
Reference of the PublicIP resource. Null for private only bastion
subnet This property is required. Property Map
Reference of the subnet resource.
id String
Resource ID.
name String
Name of the resource that is unique within a resource group. This name can be used to access the resource.
privateIPAllocationMethod String | "Static" | "Dynamic"
Private IP allocation method.
publicIPAddress Property Map
Reference of the PublicIP resource. Null for private only bastion

BastionHostIPConfigurationResponse
, BastionHostIPConfigurationResponseArgs

Etag This property is required. string
A unique read-only string that changes whenever the resource is updated.
ProvisioningState This property is required. string
The provisioning state of the bastion host IP configuration resource.
Subnet This property is required. Pulumi.AzureNative.Network.Inputs.SubResourceResponse
Reference of the subnet resource.
Type This property is required. string
Ip configuration type.
Id string
Resource ID.
Name string
Name of the resource that is unique within a resource group. This name can be used to access the resource.
PrivateIPAllocationMethod string
Private IP allocation method.
PublicIPAddress Pulumi.AzureNative.Network.Inputs.SubResourceResponse
Reference of the PublicIP resource. Null for private only bastion
Etag This property is required. string
A unique read-only string that changes whenever the resource is updated.
ProvisioningState This property is required. string
The provisioning state of the bastion host IP configuration resource.
Subnet This property is required. SubResourceResponse
Reference of the subnet resource.
Type This property is required. string
Ip configuration type.
Id string
Resource ID.
Name string
Name of the resource that is unique within a resource group. This name can be used to access the resource.
PrivateIPAllocationMethod string
Private IP allocation method.
PublicIPAddress SubResourceResponse
Reference of the PublicIP resource. Null for private only bastion
etag This property is required. String
A unique read-only string that changes whenever the resource is updated.
provisioningState This property is required. String
The provisioning state of the bastion host IP configuration resource.
subnet This property is required. SubResourceResponse
Reference of the subnet resource.
type This property is required. String
Ip configuration type.
id String
Resource ID.
name String
Name of the resource that is unique within a resource group. This name can be used to access the resource.
privateIPAllocationMethod String
Private IP allocation method.
publicIPAddress SubResourceResponse
Reference of the PublicIP resource. Null for private only bastion
etag This property is required. string
A unique read-only string that changes whenever the resource is updated.
provisioningState This property is required. string
The provisioning state of the bastion host IP configuration resource.
subnet This property is required. SubResourceResponse
Reference of the subnet resource.
type This property is required. string
Ip configuration type.
id string
Resource ID.
name string
Name of the resource that is unique within a resource group. This name can be used to access the resource.
privateIPAllocationMethod string
Private IP allocation method.
publicIPAddress SubResourceResponse
Reference of the PublicIP resource. Null for private only bastion
etag This property is required. str
A unique read-only string that changes whenever the resource is updated.
provisioning_state This property is required. str
The provisioning state of the bastion host IP configuration resource.
subnet This property is required. SubResourceResponse
Reference of the subnet resource.
type This property is required. str
Ip configuration type.
id str
Resource ID.
name str
Name of the resource that is unique within a resource group. This name can be used to access the resource.
private_ip_allocation_method str
Private IP allocation method.
public_ip_address SubResourceResponse
Reference of the PublicIP resource. Null for private only bastion
etag This property is required. String
A unique read-only string that changes whenever the resource is updated.
provisioningState This property is required. String
The provisioning state of the bastion host IP configuration resource.
subnet This property is required. Property Map
Reference of the subnet resource.
type This property is required. String
Ip configuration type.
id String
Resource ID.
name String
Name of the resource that is unique within a resource group. This name can be used to access the resource.
privateIPAllocationMethod String
Private IP allocation method.
publicIPAddress Property Map
Reference of the PublicIP resource. Null for private only bastion

BastionHostPropertiesFormatNetworkAcls
, BastionHostPropertiesFormatNetworkAclsArgs

IpRules List<Pulumi.AzureNative.Network.Inputs.IPRule>
Sets the IP ACL rules for Developer Bastion Host.
IpRules []IPRule
Sets the IP ACL rules for Developer Bastion Host.
ipRules List<IPRule>
Sets the IP ACL rules for Developer Bastion Host.
ipRules IPRule[]
Sets the IP ACL rules for Developer Bastion Host.
ip_rules Sequence[IPRule]
Sets the IP ACL rules for Developer Bastion Host.
ipRules List<Property Map>
Sets the IP ACL rules for Developer Bastion Host.

BastionHostPropertiesFormatResponseNetworkAcls
, BastionHostPropertiesFormatResponseNetworkAclsArgs

IpRules List<Pulumi.AzureNative.Network.Inputs.IPRuleResponse>
Sets the IP ACL rules for Developer Bastion Host.
IpRules []IPRuleResponse
Sets the IP ACL rules for Developer Bastion Host.
ipRules List<IPRuleResponse>
Sets the IP ACL rules for Developer Bastion Host.
ipRules IPRuleResponse[]
Sets the IP ACL rules for Developer Bastion Host.
ip_rules Sequence[IPRuleResponse]
Sets the IP ACL rules for Developer Bastion Host.
ipRules List<Property Map>
Sets the IP ACL rules for Developer Bastion Host.

BastionHostSkuName
, BastionHostSkuNameArgs

Basic
Basic
Standard
Standard
Developer
Developer
Premium
Premium
BastionHostSkuNameBasic
Basic
BastionHostSkuNameStandard
Standard
BastionHostSkuNameDeveloper
Developer
BastionHostSkuNamePremium
Premium
Basic
Basic
Standard
Standard
Developer
Developer
Premium
Premium
Basic
Basic
Standard
Standard
Developer
Developer
Premium
Premium
BASIC
Basic
STANDARD
Standard
DEVELOPER
Developer
PREMIUM
Premium
"Basic"
Basic
"Standard"
Standard
"Developer"
Developer
"Premium"
Premium

IPAllocationMethod
, IPAllocationMethodArgs

Static
Static
Dynamic
Dynamic
IPAllocationMethodStatic
Static
IPAllocationMethodDynamic
Dynamic
Static
Static
Dynamic
Dynamic
Static
Static
Dynamic
Dynamic
STATIC
Static
DYNAMIC
Dynamic
"Static"
Static
"Dynamic"
Dynamic

IPRule
, IPRuleArgs

AddressPrefix string
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
AddressPrefix string
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
addressPrefix String
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
addressPrefix string
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
address_prefix str
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
addressPrefix String
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.

IPRuleResponse
, IPRuleResponseArgs

AddressPrefix string
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
AddressPrefix string
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
addressPrefix String
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
addressPrefix string
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
address_prefix str
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
addressPrefix String
Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.

Sku
, SkuArgs

Name string | Pulumi.AzureNative.Network.BastionHostSkuName
The name of the sku of this Bastion Host.
Name string | BastionHostSkuName
The name of the sku of this Bastion Host.
name String | BastionHostSkuName
The name of the sku of this Bastion Host.
name string | BastionHostSkuName
The name of the sku of this Bastion Host.
name str | BastionHostSkuName
The name of the sku of this Bastion Host.
name String | "Basic" | "Standard" | "Developer" | "Premium"
The name of the sku of this Bastion Host.

SkuResponse
, SkuResponseArgs

Name string
The name of the sku of this Bastion Host.
Name string
The name of the sku of this Bastion Host.
name String
The name of the sku of this Bastion Host.
name string
The name of the sku of this Bastion Host.
name str
The name of the sku of this Bastion Host.
name String
The name of the sku of this Bastion Host.

SubResource
, SubResourceArgs

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

Id string
Resource ID.
Id string
Resource ID.
id String
Resource ID.
id string
Resource ID.
id str
Resource ID.
id String
Resource ID.

Import

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

$ pulumi import azure-native:network:BastionHost bastionhostdeveloper /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName} 
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