1. Packages
  2. Packages
  3. Power Platform
  4. API Docs
  5. ManagedEnvironment
Viewing docs for Power Platform v0.3.3
published on Monday, May 18, 2026 by rpothin
powerplatform logo
Viewing docs for Power Platform v0.3.3
published on Monday, May 18, 2026 by rpothin

    Enables managed environment governance on a Power Platform environment. Managed environments provide enhanced admin controls. Deleting this resource disables the managed environment setting.

    Create ManagedEnvironment Resource

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

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args ManagedEnvironmentArgs
    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 ManagedEnvironmentArgs
    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 ManagedEnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedEnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedEnvironmentArgs
    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 managedEnvironmentResource = new Powerplatform.ManagedEnvironment("managedEnvironmentResource", new()
    {
        EnvironmentId = "string",
    });
    
    example, err := powerplatform.NewManagedEnvironment(ctx, "managedEnvironmentResource", &powerplatform.ManagedEnvironmentArgs{
    	EnvironmentId: pulumi.String("string"),
    })
    
    resource "powerplatform_managedenvironment" "managedEnvironmentResource" {
      environment_id = "string"
    }
    
    var managedEnvironmentResource = new ManagedEnvironment("managedEnvironmentResource", ManagedEnvironmentArgs.builder()
        .environmentId("string")
        .build());
    
    managed_environment_resource = powerplatform.ManagedEnvironment("managedEnvironmentResource", environment_id="string")
    
    const managedEnvironmentResource = new powerplatform.ManagedEnvironment("managedEnvironmentResource", {environmentId: "string"});
    
    type: powerplatform:ManagedEnvironment
    properties:
        environmentId: string
    

    ManagedEnvironment 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 ManagedEnvironment resource accepts the following input properties:

    EnvironmentId string
    The ID of the Power Platform environment to manage.
    EnvironmentId string
    The ID of the Power Platform environment to manage.
    environment_id string
    The ID of the Power Platform environment to manage.
    environmentId String
    The ID of the Power Platform environment to manage.
    environmentId string
    The ID of the Power Platform environment to manage.
    environment_id str
    The ID of the Power Platform environment to manage.
    environmentId String
    The ID of the Power Platform environment to manage.

    Outputs

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

    Enabled bool
    Whether the managed environment is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Enabled bool
    Whether the managed environment is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    enabled bool
    Whether the managed environment is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    enabled Boolean
    Whether the managed environment is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    enabled boolean
    Whether the managed environment is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    enabled bool
    Whether the managed environment is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    enabled Boolean
    Whether the managed environment is enabled.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    powerplatform rpothin/pulumi-powerplatform
    License
    MIT
    powerplatform logo
    Viewing docs for Power Platform v0.3.3
    published on Monday, May 18, 2026 by rpothin

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial