get Vpn Server Configuration
suspend fun getVpnServerConfiguration(argument: GetVpnServerConfigurationPlainArgs): GetVpnServerConfigurationResult
Use this data source to access information about an existing VPN Server Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.network.getVpnServerConfiguration({
name: "existing-local-vpn-server-configuration",
resourceGroupName: "existing-resource-group",
});
export const azurermVpnServerConfiguration = example.then(example => example.id);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.network.get_vpn_server_configuration(name="existing-local-vpn-server-configuration",
resource_group_name="existing-resource-group")
pulumi.export("azurermVpnServerConfiguration", example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Network.GetVpnServerConfiguration.Invoke(new()
{
Name = "existing-local-vpn-server-configuration",
ResourceGroupName = "existing-resource-group",
});
return new Dictionary<string, object?>
{
["azurermVpnServerConfiguration"] = example.Apply(getVpnServerConfigurationResult => getVpnServerConfigurationResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := network.LookupVpnServerConfiguration(ctx, &network.LookupVpnServerConfigurationArgs{
Name: "existing-local-vpn-server-configuration",
ResourceGroupName: "existing-resource-group",
}, nil)
if err != nil {
return err
}
ctx.Export("azurermVpnServerConfiguration", example.Id)
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetVpnServerConfigurationArgs;
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) {
final var example = NetworkFunctions.getVpnServerConfiguration(GetVpnServerConfigurationArgs.builder()
.name("existing-local-vpn-server-configuration")
.resourceGroupName("existing-resource-group")
.build());
ctx.export("azurermVpnServerConfiguration", example.applyValue(getVpnServerConfigurationResult -> getVpnServerConfigurationResult.id()));
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:network:getVpnServerConfiguration
arguments:
name: existing-local-vpn-server-configuration
resourceGroupName: existing-resource-group
outputs:
azurermVpnServerConfiguration: ${example.id}
Content copied to clipboard
Return
A collection of values returned by getVpnServerConfiguration.
Parameters
argument
A collection of arguments for invoking getVpnServerConfiguration.
suspend fun getVpnServerConfiguration(name: String, resourceGroupName: String): GetVpnServerConfigurationResult
Return
A collection of values returned by getVpnServerConfiguration.
Parameters
name
The Name of the VPN Server Configuration.
resource Group Name
The name of the Resource Group where the VPN Server Configuration exists.
See also
suspend fun getVpnServerConfiguration(argument: suspend GetVpnServerConfigurationPlainArgsBuilder.() -> Unit): GetVpnServerConfigurationResult
Return
A collection of values returned by getVpnServerConfiguration.
Parameters
argument
Builder for com.pulumi.azure.network.kotlin.inputs.GetVpnServerConfigurationPlainArgs.