We recommend using Azure Native.
azure.management.PrivateLinkAssociation
Explore with Pulumi AI
Manages a Resource Management Private Link Association.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as random from "@pulumi/random";
const example = azure.core.getClientConfig({});
const exampleGetGroup = example.then(example => azure.management.getGroup({
name: example.tenantId,
}));
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
name: "example",
location: "West Europe",
});
const examplePrivateLink = new azure.management.PrivateLink("example", {
name: "example",
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleRandomUuid = new random.RandomUuid("example", {});
const examplePrivateLinkAssociation = new azure.management.PrivateLinkAssociation("example", {
name: exampleRandomUuid.result,
managementGroupId: exampleAzurermManagementGroup.id,
resourceManagementPrivateLinkId: examplePrivateLink.id,
publicNetworkAccessEnabled: true,
});
import pulumi
import pulumi_azure as azure
import pulumi_random as random
example = azure.core.get_client_config()
example_get_group = azure.management.get_group(name=example.tenant_id)
example_resource_group = azure.core.ResourceGroup("example",
name="example",
location="West Europe")
example_private_link = azure.management.PrivateLink("example",
name="example",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_random_uuid = random.RandomUuid("example")
example_private_link_association = azure.management.PrivateLinkAssociation("example",
name=example_random_uuid.result,
management_group_id=example_azurerm_management_group["id"],
resource_management_private_link_id=example_private_link.id,
public_network_access_enabled=True)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.GetClientConfig(ctx, nil, nil)
if err != nil {
return err
}
_, err = management.LookupGroup(ctx, &management.LookupGroupArgs{
Name: pulumi.StringRef(example.TenantId),
}, nil)
if err != nil {
return err
}
exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePrivateLink, err := management.NewPrivateLink(ctx, "example", &management.PrivateLinkArgs{
Name: pulumi.String("example"),
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
exampleRandomUuid, err := random.NewRandomUuid(ctx, "example", nil)
if err != nil {
return err
}
_, err = management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{
Name: exampleRandomUuid.Result,
ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id),
ResourceManagementPrivateLinkId: examplePrivateLink.ID(),
PublicNetworkAccessEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var example = Azure.Core.GetClientConfig.Invoke();
var exampleGetGroup = Azure.Management.GetGroup.Invoke(new()
{
Name = example.Apply(getClientConfigResult => getClientConfigResult.TenantId),
});
var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
{
Name = "example",
Location = "West Europe",
});
var examplePrivateLink = new Azure.Management.PrivateLink("example", new()
{
Name = "example",
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleRandomUuid = new Random.RandomUuid("example");
var examplePrivateLinkAssociation = new Azure.Management.PrivateLinkAssociation("example", new()
{
Name = exampleRandomUuid.Result,
ManagementGroupId = exampleAzurermManagementGroup.Id,
ResourceManagementPrivateLinkId = examplePrivateLink.Id,
PublicNetworkAccessEnabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.management.ManagementFunctions;
import com.pulumi.azure.management.inputs.GetGroupArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.management.PrivateLink;
import com.pulumi.azure.management.PrivateLinkArgs;
import com.pulumi.random.RandomUuid;
import com.pulumi.azure.management.PrivateLinkAssociation;
import com.pulumi.azure.management.PrivateLinkAssociationArgs;
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 = CoreFunctions.getClientConfig();
final var exampleGetGroup = ManagementFunctions.getGroup(GetGroupArgs.builder()
.name(example.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.build());
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var examplePrivateLink = new PrivateLink("examplePrivateLink", PrivateLinkArgs.builder()
.name("example")
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleRandomUuid = new RandomUuid("exampleRandomUuid");
var examplePrivateLinkAssociation = new PrivateLinkAssociation("examplePrivateLinkAssociation", PrivateLinkAssociationArgs.builder()
.name(exampleRandomUuid.result())
.managementGroupId(exampleAzurermManagementGroup.id())
.resourceManagementPrivateLinkId(examplePrivateLink.id())
.publicNetworkAccessEnabled(true)
.build());
}
}
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
name: example
properties:
name: example
location: West Europe
examplePrivateLink:
type: azure:management:PrivateLink
name: example
properties:
name: example
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
exampleRandomUuid:
type: random:RandomUuid
name: example
examplePrivateLinkAssociation:
type: azure:management:PrivateLinkAssociation
name: example
properties:
name: ${exampleRandomUuid.result}
managementGroupId: ${exampleAzurermManagementGroup.id}
resourceManagementPrivateLinkId: ${examplePrivateLink.id}
publicNetworkAccessEnabled: true
variables:
example:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
exampleGetGroup:
fn::invoke:
Function: azure:management:getGroup
Arguments:
name: ${example.tenantId}
Create PrivateLinkAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateLinkAssociation(name: string, args: PrivateLinkAssociationArgs, opts?: CustomResourceOptions);
@overload
def PrivateLinkAssociation(resource_name: str,
args: PrivateLinkAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateLinkAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
management_group_id: Optional[str] = None,
public_network_access_enabled: Optional[bool] = None,
resource_management_private_link_id: Optional[str] = None,
name: Optional[str] = None)
func NewPrivateLinkAssociation(ctx *Context, name string, args PrivateLinkAssociationArgs, opts ...ResourceOption) (*PrivateLinkAssociation, error)
public PrivateLinkAssociation(string name, PrivateLinkAssociationArgs args, CustomResourceOptions? opts = null)
public PrivateLinkAssociation(String name, PrivateLinkAssociationArgs args)
public PrivateLinkAssociation(String name, PrivateLinkAssociationArgs args, CustomResourceOptions options)
type: azure:management:PrivateLinkAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PrivateLinkAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PrivateLinkAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PrivateLinkAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateLinkAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateLinkAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var privateLinkAssociationResource = new Azure.Management.PrivateLinkAssociation("privateLinkAssociationResource", new()
{
ManagementGroupId = "string",
PublicNetworkAccessEnabled = false,
ResourceManagementPrivateLinkId = "string",
Name = "string",
});
example, err := management.NewPrivateLinkAssociation(ctx, "privateLinkAssociationResource", &management.PrivateLinkAssociationArgs{
ManagementGroupId: pulumi.String("string"),
PublicNetworkAccessEnabled: pulumi.Bool(false),
ResourceManagementPrivateLinkId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var privateLinkAssociationResource = new PrivateLinkAssociation("privateLinkAssociationResource", PrivateLinkAssociationArgs.builder()
.managementGroupId("string")
.publicNetworkAccessEnabled(false)
.resourceManagementPrivateLinkId("string")
.name("string")
.build());
private_link_association_resource = azure.management.PrivateLinkAssociation("privateLinkAssociationResource",
management_group_id="string",
public_network_access_enabled=False,
resource_management_private_link_id="string",
name="string")
const privateLinkAssociationResource = new azure.management.PrivateLinkAssociation("privateLinkAssociationResource", {
managementGroupId: "string",
publicNetworkAccessEnabled: false,
resourceManagementPrivateLinkId: "string",
name: "string",
});
type: azure:management:PrivateLinkAssociation
properties:
managementGroupId: string
name: string
publicNetworkAccessEnabled: false
resourceManagementPrivateLinkId: string
PrivateLinkAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PrivateLinkAssociation resource accepts the following input properties:
- Management
Group stringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- Public
Network boolAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- Resource
Management stringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- Name string
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
- Management
Group stringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- Public
Network boolAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- Resource
Management stringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- Name string
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
- management
Group StringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- public
Network BooleanAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource
Management StringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- name String
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
- management
Group stringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- public
Network booleanAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource
Management stringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- name string
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
- management_
group_ strid Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- public_
network_ boolaccess_ enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource_
management_ strprivate_ link_ id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- name str
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
- management
Group StringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- public
Network BooleanAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource
Management StringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- name String
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateLinkAssociation resource produces the following output properties:
Look up Existing PrivateLinkAssociation Resource
Get an existing PrivateLinkAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PrivateLinkAssociationState, opts?: CustomResourceOptions): PrivateLinkAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
management_group_id: Optional[str] = None,
name: Optional[str] = None,
public_network_access_enabled: Optional[bool] = None,
resource_management_private_link_id: Optional[str] = None,
tenant_id: Optional[str] = None) -> PrivateLinkAssociation
func GetPrivateLinkAssociation(ctx *Context, name string, id IDInput, state *PrivateLinkAssociationState, opts ...ResourceOption) (*PrivateLinkAssociation, error)
public static PrivateLinkAssociation Get(string name, Input<string> id, PrivateLinkAssociationState? state, CustomResourceOptions? opts = null)
public static PrivateLinkAssociation get(String name, Output<String> id, PrivateLinkAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Management
Group stringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- Name string
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
title="Optional"> <span id="state_publicnetworkaccessenabled_csharp">
- Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- Resource
Management stringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- Tenant
Id string - The Tenant ID.
- Management
Group stringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- Name string
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
title="Optional"> <span id="state_publicnetworkaccessenabled_go">
- Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- Resource
Management stringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- Tenant
Id string - The Tenant ID.
- management
Group StringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- name String
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
title="Optional"> <span id="state_publicnetworkaccessenabled_java">
public
Network BooleanAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource
Management StringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- tenant
Id String - The Tenant ID.
- management
Group stringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- name string
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
title="Optional"> <span id="state_publicnetworkaccessenabled_nodejs">
public
Network booleanAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource
Management stringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- tenant
Id string - The Tenant ID.
- management_
group_ strid Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- name str
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
title="Optional"> <span id="state_public_network_access_enabled_python">
- Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource_
management_ strprivate_ link_ id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- tenant_
id str - The Tenant ID.
- management
Group StringId Specifies the Management Group ID within which this Private Link Association should exist. Changing this forces a new Private Link Association to be created.
Note: For now,
management_group_id
must be the ID of Root Management Group.- name String
- Specifies the name of this Private Link Association, which should be a UUID. If
name
is not provided, a UUID will be generated, you should use theignore_changes
attribute to ignore changes to this field. Changing this forces a new Private Link Association to be created.import * as pulumi from "@pulumi/pulumi"; import * as azure from "@pulumi/azure";
const example = new azure.management.PrivateLinkAssociation("example", { managementGroupId: exampleAzurermManagementGroup.id, resourceManagementPrivateLinkId: exampleAzurermResourceManagementPrivateLink.id, publicNetworkAccessEnabled: true, });
import pulumi import pulumi_azure as azure example = azure.management.PrivateLinkAssociation("example", management_group_id=example_azurerm_management_group["id"], resource_management_private_link_id=example_azurerm_resource_management_private_link["id"], public_network_access_enabled=True)
using System.Collections.Generic; using System.Linq; using Pulumi; using Azure = Pulumi.Azure; return await Deployment.RunAsync(() => { var example = new Azure.Management.PrivateLinkAssociation("example", new() { ManagementGroupId = exampleAzurermManagementGroup.Id, ResourceManagementPrivateLinkId = exampleAzurermResourceManagementPrivateLink.Id, PublicNetworkAccessEnabled = true, }); });
package main import ( "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := management.NewPrivateLinkAssociation(ctx, "example", &management.PrivateLinkAssociationArgs{ ManagementGroupId: pulumi.Any(exampleAzurermManagementGroup.Id), ResourceManagementPrivateLinkId: pulumi.Any(exampleAzurermResourceManagementPrivateLink.Id), PublicNetworkAccessEnabled: pulumi.Bool(true), }) 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.azure.management.PrivateLinkAssociation; import com.pulumi.azure.management.PrivateLinkAssociationArgs; 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 example = new PrivateLinkAssociation("example", PrivateLinkAssociationArgs.builder() .managementGroupId(exampleAzurermManagementGroup.id()) .resourceManagementPrivateLinkId(exampleAzurermResourceManagementPrivateLink.id()) .publicNetworkAccessEnabled(true) .build()); } }
resources: example: type: azure:management:PrivateLinkAssociation properties: managementGroupId: ${exampleAzurermManagementGroup.id} resourceManagementPrivateLinkId: ${exampleAzurermResourceManagementPrivateLink.id} publicNetworkAccessEnabled: true
title="Optional"> <span id="state_publicnetworkaccessenabled_yaml">
public
Network BooleanAccess Enabled - Whether public network access is allowed. Changing this forces a new Private Link Association to be created.
- resource
Management StringPrivate Link Id - The Resource ID of Resource Management Private Link. Changing this forces a new Private Link Association to be created.
- tenant
Id String - The Tenant ID.
Import
An existing Private Link Association can be imported into Pulumi using the resource id
, e.g.
$ pulumi import azure:management/privateLinkAssociation:PrivateLinkAssociation example /providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/privateLinkAssociations/00000000-0000-0000-0000-000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.