HybridConnection

class HybridConnection : KotlinCustomResource

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

Properties

Link copied to clipboard
val appServiceName: Output<String>

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

Link copied to clipboard
val hostname: Output<String>

The hostname of the endpoint.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val namespaceName: Output<String>

The name of the Relay Namespace.

Link copied to clipboard
val port: Output<Int>

The port of the endpoint.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val relayId: Output<String>

The ID of the Service Bus Relay. Changing this forces a new resource to be created.

Link copied to clipboard
val relayName: Output<String>
Link copied to clipboard

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>?

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

Link copied to clipboard
val sendKeyValue: Output<String>

The value of the Service Bus Primary Access key.

Link copied to clipboard

The name of the Service Bus namespace.

Link copied to clipboard

The suffix for the service bus endpoint.

Link copied to clipboard
val urn: Output<String>