WCFRelay
Description of the WCF relay resource. Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2021-11-01. Other available API versions: 2021-11-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native relay [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
RelayCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var wcfRelay = new AzureNative.Relay.WCFRelay("wcfRelay", new()
{
NamespaceName = "example-RelayNamespace-9953",
RelayName = "example-Relay-Wcf-1194",
RelayType = AzureNative.Relay.Relaytype.NetTcp,
RequiresClientAuthorization = true,
RequiresTransportSecurity = true,
ResourceGroupName = "resourcegroup",
});
});
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewWCFRelay(ctx, "wcfRelay", &relay.WCFRelayArgs{
NamespaceName: pulumi.String("example-RelayNamespace-9953"),
RelayName: pulumi.String("example-Relay-Wcf-1194"),
RelayType: relay.RelaytypeNetTcp,
RequiresClientAuthorization: pulumi.Bool(true),
RequiresTransportSecurity: pulumi.Bool(true),
ResourceGroupName: pulumi.String("resourcegroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.relay.WCFRelay;
import com.pulumi.azurenative.relay.WCFRelayArgs;
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 wcfRelay = new WCFRelay("wcfRelay", WCFRelayArgs.builder()
.namespaceName("example-RelayNamespace-9953")
.relayName("example-Relay-Wcf-1194")
.relayType("NetTcp")
.requiresClientAuthorization(true)
.requiresTransportSecurity(true)
.resourceGroupName("resourcegroup")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:relay:WCFRelay example-Relay-Wcf-1194 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/wcfRelays/{relayName}
Properties
The Azure API version of the resource.
The number of listeners for this relay. Note that min :1 and max:25 are supported.
Returns true if client authorization is needed for this relay; otherwise, false.
Returns true if transport security is needed for this relay; otherwise, false.
The system meta data relating to this resource.
The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint. For example, it can be used to store descriptive data, such as list of teams and their contact information. Also, user-defined configuration settings can be stored.