Private Link Scope
An Azure Arc PrivateLinkScope definition. Uses Azure REST API version 2022-04-02-preview. In version 1.x of the Azure Native provider, it used API version 2022-04-02-preview. Other available API versions: 2024-11-01-preview.
Example Usage
PrivateLinkScopeCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateLinkScope = new AzureNative.KubernetesConfiguration.PrivateLinkScope("privateLinkScope", new()
{
Location = "westus",
ResourceGroupName = "my-resource-group",
ScopeName = "my-privatelinkscope",
});
});
Content copied to clipboard
package main
import (
kubernetesconfiguration "github.com/pulumi/pulumi-azure-native-sdk/kubernetesconfiguration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kubernetesconfiguration.NewPrivateLinkScope(ctx, "privateLinkScope", &kubernetesconfiguration.PrivateLinkScopeArgs{
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("my-resource-group"),
ScopeName: pulumi.String("my-privatelinkscope"),
})
if err != nil {
return err
}
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.azurenative.kubernetesconfiguration.PrivateLinkScope;
import com.pulumi.azurenative.kubernetesconfiguration.PrivateLinkScopeArgs;
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 privateLinkScope = new PrivateLinkScope("privateLinkScope", PrivateLinkScopeArgs.builder()
.location("westus")
.resourceGroupName("my-resource-group")
.scopeName("my-privatelinkscope")
.build());
}
}
Content copied to clipboard
PrivateLinkScopeUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateLinkScope = new AzureNative.KubernetesConfiguration.PrivateLinkScope("privateLinkScope", new()
{
Location = "westus",
ResourceGroupName = "my-resource-group",
ScopeName = "my-privatelinkscope",
Tags =
{
{ "Tag1", "Value1" },
},
});
});
Content copied to clipboard
package main
import (
kubernetesconfiguration "github.com/pulumi/pulumi-azure-native-sdk/kubernetesconfiguration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kubernetesconfiguration.NewPrivateLinkScope(ctx, "privateLinkScope", &kubernetesconfiguration.PrivateLinkScopeArgs{
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("my-resource-group"),
ScopeName: pulumi.String("my-privatelinkscope"),
Tags: pulumi.StringMap{
"Tag1": pulumi.String("Value1"),
},
})
if err != nil {
return err
}
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.azurenative.kubernetesconfiguration.PrivateLinkScope;
import com.pulumi.azurenative.kubernetesconfiguration.PrivateLinkScopeArgs;
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 privateLinkScope = new PrivateLinkScope("privateLinkScope", PrivateLinkScopeArgs.builder()
.location("westus")
.resourceGroupName("my-resource-group")
.scopeName("my-privatelinkscope")
.tags(Map.of("Tag1", "Value1"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kubernetesconfiguration:PrivateLinkScope my-privatelinkscope /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}
Content copied to clipboard