HybridConnectionArgs

data class HybridConnectionArgs(val appServiceName: Output<String>? = null, val hostname: Output<String>? = null, val port: Output<Int>? = null, val relayId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sendKeyName: Output<String>? = null) : ConvertibleToJava<HybridConnectionArgs>

Manages an App Service Hybrid Connection for an existing App Service, Relay and Service Bus. !>NOTE: This resource has been deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use azure.appservice.FunctionAppHybridConnection resources instead.

Example Usage

This example provisions an App Service, a Relay Hybrid Connection, and a Service Bus using their outputs to create the App Service Hybrid Connection.

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.appservice.Plan;
import com.pulumi.azure.appservice.PlanArgs;
import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
import com.pulumi.azure.appservice.AppService;
import com.pulumi.azure.appservice.AppServiceArgs;
import com.pulumi.azure.relay.Namespace;
import com.pulumi.azure.relay.NamespaceArgs;
import com.pulumi.azure.relay.HybridConnection;
import com.pulumi.azure.relay.HybridConnectionArgs;
import com.pulumi.azure.appservice.HybridConnection;
import com.pulumi.azure.appservice.HybridConnectionArgs;
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 examplePlan = new Plan("examplePlan", PlanArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku(PlanSkuArgs.builder()
.tier("Standard")
.size("S1")
.build())
.build());
var exampleAppService = new AppService("exampleAppService", AppServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.appServicePlanId(examplePlan.id())
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Standard")
.build());
var exampleHybridConnection = new HybridConnection("exampleHybridConnection", HybridConnectionArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.relayNamespaceName(exampleNamespace.name())
.userMetadata("examplemetadata")
.build());
var exampleAppservice_hybridConnectionHybridConnection = new HybridConnection("exampleAppservice/hybridConnectionHybridConnection", HybridConnectionArgs.builder()
.appServiceName(exampleAppService.name())
.resourceGroupName(exampleResourceGroup.name())
.relayId(exampleHybridConnection.id())
.hostname("testhostname.example")
.port(8080)
.sendKeyName("exampleSharedAccessKey")
.build());
}
}

Import

App Service Hybrid Connections can be imported using the resource id, e.g.

$ pulumi import azure:appservice/hybridConnection:HybridConnection example /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/exampleResourceGroup1/providers/Microsoft.Web/sites/exampleAppService1/hybridConnectionNamespaces/exampleRN1/relays/exampleRHC1

Constructors

Link copied to clipboard
fun HybridConnectionArgs(appServiceName: Output<String>? = null, hostname: Output<String>? = null, port: Output<Int>? = null, relayId: Output<String>? = null, resourceGroupName: Output<String>? = null, sendKeyName: Output<String>? = null)

Functions

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

Properties

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

Specifies the name of the App Service. Changing this forces a new resource to be created.

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

The hostname of the endpoint.

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

The port of the endpoint.

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

The ID of the Service Bus Relay. 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 App Service. Changing this forces a new resource to be created.

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

The name of the Service Bus key which has Send permissions. Defaults to RootManageSharedAccessKey.