1. Registry
  2. Packages
  3. Power Platform
  4. API Docs
  5. EnterprisePolicyLink
Viewing docs for Power Platform v0.4.9
published on Tuesday, Sep 8, 2026 by rpothin
powerplatform logo Power Platform
Viewing docs for Power Platform v0.4.9
published on Tuesday, Sep 8, 2026 by rpothin

    Links an Azure enterprise policy to a Power Platform environment using an async POST/poll lifecycle. All properties are immutable — any change triggers a full replacement (delete-then-create). Supported policy types: NetworkInjection, Encryption, Identity.

    Create EnterprisePolicyLink Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnterprisePolicyLink(name: string, args: EnterprisePolicyLinkArgs, opts?: CustomResourceOptions);
    @overload
    def EnterprisePolicyLink(resource_name: str,
                             args: EnterprisePolicyLinkArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnterprisePolicyLink(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             environment_id: Optional[str] = None,
                             policy_type: Optional[str] = None,
                             system_id: Optional[str] = None)
    func NewEnterprisePolicyLink(ctx *Context, name string, args EnterprisePolicyLinkArgs, opts ...ResourceOption) (*EnterprisePolicyLink, error)
    public EnterprisePolicyLink(string name, EnterprisePolicyLinkArgs args, CustomResourceOptions? opts = null)
    public EnterprisePolicyLink(String name, EnterprisePolicyLinkArgs args)
    public EnterprisePolicyLink(String name, EnterprisePolicyLinkArgs args, CustomResourceOptions options)
    
    type: powerplatform:EnterprisePolicyLink
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "powerplatform_enterprise_policy_link" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnterprisePolicyLinkArgs
    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 EnterprisePolicyLinkArgs
    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 EnterprisePolicyLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnterprisePolicyLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnterprisePolicyLinkArgs
    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 enterprisePolicyLinkResource = new Powerplatform.EnterprisePolicyLink("enterprisePolicyLinkResource", new()
    {
        EnvironmentId = "string",
        PolicyType = "string",
        SystemId = "string",
    });
    
    example, err := powerplatform.NewEnterprisePolicyLink(ctx, "enterprisePolicyLinkResource", &powerplatform.EnterprisePolicyLinkArgs{
    	EnvironmentId: pulumi.String("string"),
    	PolicyType:    pulumi.String("string"),
    	SystemId:      pulumi.String("string"),
    })
    
    resource "powerplatform_enterprise_policy_link" "enterprisePolicyLinkResource" {
      lifecycle {
        create_before_destroy = true
      }
      environment_id = "string"
      policy_type    = "string"
      system_id      = "string"
    }
    
    var enterprisePolicyLinkResource = new EnterprisePolicyLink("enterprisePolicyLinkResource", EnterprisePolicyLinkArgs.builder()
        .environmentId("string")
        .policyType("string")
        .systemId("string")
        .build());
    
    enterprise_policy_link_resource = powerplatform.EnterprisePolicyLink("enterprisePolicyLinkResource",
        environment_id="string",
        policy_type="string",
        system_id="string")
    
    const enterprisePolicyLinkResource = new powerplatform.EnterprisePolicyLink("enterprisePolicyLinkResource", {
        environmentId: "string",
        policyType: "string",
        systemId: "string",
    });
    
    type: powerplatform:EnterprisePolicyLink
    properties:
        environmentId: string
        policyType: string
        systemId: string
    

    EnterprisePolicyLink Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EnterprisePolicyLink resource accepts the following input properties:

    EnvironmentId string
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    PolicyType string
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    SystemId string
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.
    EnvironmentId string
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    PolicyType string
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    SystemId string
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.
    environment_id string
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    policy_type string
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    system_id string
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.
    environmentId String
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    policyType String
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    systemId String
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.
    environmentId string
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    policyType string
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    systemId string
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.
    environment_id str
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    policy_type str
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    system_id str
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.
    environmentId String
    The GUID of the Power Platform environment to link the enterprise policy to. Immutable after creation.
    policyType String
    The type of enterprise policy to link. Must be one of: NetworkInjection, Encryption, Identity. Immutable after creation.
    systemId String
    The ARM resource ID of the enterprise policy. Expected format: /regions/{location}/providers/Microsoft.PowerPlatform/enterprisePolicies/{guid}. Immutable after creation.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnterprisePolicyLink resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EnterprisePolicyLink Resource

    Get an existing EnterprisePolicyLink 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>, opts?: CustomResourceOptions): EnterprisePolicyLink
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> EnterprisePolicyLink
    func GetEnterprisePolicyLink(ctx *Context, name string, id IDInput, state *EnterprisePolicyLinkState, opts ...ResourceOption) (*EnterprisePolicyLink, error)
    public static EnterprisePolicyLink Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static EnterprisePolicyLink get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingEnterprisePolicyLink:    type: powerplatform:EnterprisePolicyLink    get:      id: ${id}
    import {
      to = powerplatform_enterprise_policy_link.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state EnterprisePolicyLinkState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

    Repository
    powerplatform rpothin/pulumi-powerplatform
    License
    MIT
    powerplatform logo Power Platform
    Viewing docs for Power Platform v0.4.9
    published on Tuesday, Sep 8, 2026 by rpothin

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial