Private Endpoint Connection Args
The Private Endpoint Connection resource. Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. Other available API versions: 2023-05-01, 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cognitiveservices [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
PutPrivateEndpointConnection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.CognitiveServices.PrivateEndpointConnection("privateEndpointConnection", new()
{
AccountName = "sto9699",
PrivateEndpointConnectionName = "{privateEndpointConnectionName}",
Properties = new AzureNative.CognitiveServices.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.CognitiveServices.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Auto-Approved",
Status = AzureNative.CognitiveServices.PrivateEndpointServiceConnectionStatus.Approved,
},
},
ResourceGroupName = "res7687",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &cognitiveservices.PrivateEndpointConnectionArgs{
AccountName: pulumi.String("sto9699"),
PrivateEndpointConnectionName: pulumi.String("{privateEndpointConnectionName}"),
Properties: &cognitiveservices.PrivateEndpointConnectionPropertiesArgs{
PrivateLinkServiceConnectionState: &cognitiveservices.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Auto-Approved"),
Status: pulumi.String(cognitiveservices.PrivateEndpointServiceConnectionStatusApproved),
},
},
ResourceGroupName: pulumi.String("res7687"),
})
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.cognitiveservices.PrivateEndpointConnection;
import com.pulumi.azurenative.cognitiveservices.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.PrivateEndpointConnectionPropertiesArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.PrivateLinkServiceConnectionStateArgs;
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 privateEndpointConnection = new PrivateEndpointConnection("privateEndpointConnection", PrivateEndpointConnectionArgs.builder()
.accountName("sto9699")
.privateEndpointConnectionName("{privateEndpointConnectionName}")
.properties(PrivateEndpointConnectionPropertiesArgs.builder()
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("Auto-Approved")
.status("Approved")
.build())
.build())
.resourceGroupName("res7687")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cognitiveservices:PrivateEndpointConnection {privateEndpointConnectionName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}
Constructors
Properties
The name of Cognitive Services account.
The name of the private endpoint connection associated with the Cognitive Services Account
Resource properties.
The name of the resource group. The name is case insensitive.