BastionHostArgs

data class BastionHostArgs(val copyPasteEnabled: Output<Boolean>? = null, val fileCopyEnabled: Output<Boolean>? = null, val ipConfiguration: Output<BastionHostIpConfigurationArgs>? = null, val ipConnectEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scaleUnits: Output<Int>? = null, val shareableLinkEnabled: Output<Boolean>? = null, val sku: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tunnelingEnabled: Output<Boolean>? = null) : ConvertibleToJava<BastionHostArgs>

Manages a Bastion Host.

Example Usage

This example deploys an Azure Bastion Host Instance to a target virtual network.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.compute.BastionHost;
import com.pulumi.azure.compute.BastionHostArgs;
import com.pulumi.azure.compute.inputs.BastionHostIpConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("192.168.1.0/24")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("192.168.1.224/27")
.build());
var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.allocationMethod("Static")
.sku("Standard")
.build());
var exampleBastionHost = new BastionHost("exampleBastionHost", BastionHostArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.ipConfiguration(BastionHostIpConfigurationArgs.builder()
.name("configuration")
.subnetId(exampleSubnet.id())
.publicIpAddressId(examplePublicIp.id())
.build())
.build());
}
}

Import

Bastion Hosts can be imported using the resource id, e.g.

$ pulumi import azure:compute/bastionHost:BastionHost example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/bastionHosts/instance1

Constructors

Link copied to clipboard
fun BastionHostArgs(copyPasteEnabled: Output<Boolean>? = null, fileCopyEnabled: Output<Boolean>? = null, ipConfiguration: Output<BastionHostIpConfigurationArgs>? = null, ipConnectEnabled: Output<Boolean>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, scaleUnits: Output<Int>? = null, shareableLinkEnabled: Output<Boolean>? = null, sku: Output<String>? = null, tags: Output<Map<String, String>>? = null, tunnelingEnabled: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BastionHostArgs

Properties

Link copied to clipboard
val copyPasteEnabled: Output<Boolean>? = null

Is Copy/Paste feature enabled for the Bastion Host. Defaults to true.

Link copied to clipboard
val fileCopyEnabled: Output<Boolean>? = null

Is File Copy feature enabled for the Bastion Host. Defaults to false.

Link copied to clipboard

A ip_configuration block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val ipConnectEnabled: Output<Boolean>? = null

Is IP Connect feature enabled for the Bastion Host. Defaults to false.

Link copied to clipboard
val location: Output<String>? = null

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review Azure Bastion Host FAQ for supported locations.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Bastion Host. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which to create the Bastion Host. Changing this forces a new resource to be created.

Link copied to clipboard
val scaleUnits: Output<Int>? = null

The number of scale units with which to provision the Bastion Host. Possible values are between 2 and 50. Defaults to 2.

Link copied to clipboard
val shareableLinkEnabled: Output<Boolean>? = null

Is Shareable Link feature enabled for the Bastion Host. Defaults to false.

Link copied to clipboard
val sku: Output<String>? = null

The SKU of the Bastion Host. Accepted values are Basic and Standard. Defaults to Basic.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val tunnelingEnabled: Output<Boolean>? = null

Is Tunneling feature enabled for the Bastion Host. Defaults to false.