published on Monday, May 18, 2026 by rpothin
published on Monday, May 18, 2026 by rpothin
Adds a service principal as System Administrator in a Dataverse-enabled Power Platform environment. Creates a systemuser record via the Dataverse Web API. Both environmentId and applicationId are immutable — any change triggers resource replacement.
Create EnvironmentApplicationAdmin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnvironmentApplicationAdmin(name: string, args: EnvironmentApplicationAdminArgs, opts?: CustomResourceOptions);@overload
def EnvironmentApplicationAdmin(resource_name: str,
args: EnvironmentApplicationAdminArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnvironmentApplicationAdmin(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
environment_id: Optional[str] = None)func NewEnvironmentApplicationAdmin(ctx *Context, name string, args EnvironmentApplicationAdminArgs, opts ...ResourceOption) (*EnvironmentApplicationAdmin, error)public EnvironmentApplicationAdmin(string name, EnvironmentApplicationAdminArgs args, CustomResourceOptions? opts = null)
public EnvironmentApplicationAdmin(String name, EnvironmentApplicationAdminArgs args)
public EnvironmentApplicationAdmin(String name, EnvironmentApplicationAdminArgs args, CustomResourceOptions options)
type: powerplatform:EnvironmentApplicationAdmin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "powerplatform_environmentapplicationadmin" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args EnvironmentApplicationAdminArgs
- 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 EnvironmentApplicationAdminArgs
- 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 EnvironmentApplicationAdminArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentApplicationAdminArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentApplicationAdminArgs
- 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 environmentApplicationAdminResource = new Powerplatform.EnvironmentApplicationAdmin("environmentApplicationAdminResource", new()
{
ApplicationId = "string",
EnvironmentId = "string",
});
example, err := powerplatform.NewEnvironmentApplicationAdmin(ctx, "environmentApplicationAdminResource", &powerplatform.EnvironmentApplicationAdminArgs{
ApplicationId: pulumi.String("string"),
EnvironmentId: pulumi.String("string"),
})
resource "powerplatform_environmentapplicationadmin" "environmentApplicationAdminResource" {
application_id = "string"
environment_id = "string"
}
var environmentApplicationAdminResource = new EnvironmentApplicationAdmin("environmentApplicationAdminResource", EnvironmentApplicationAdminArgs.builder()
.applicationId("string")
.environmentId("string")
.build());
environment_application_admin_resource = powerplatform.EnvironmentApplicationAdmin("environmentApplicationAdminResource",
application_id="string",
environment_id="string")
const environmentApplicationAdminResource = new powerplatform.EnvironmentApplicationAdmin("environmentApplicationAdminResource", {
applicationId: "string",
environmentId: "string",
});
type: powerplatform:EnvironmentApplicationAdmin
properties:
applicationId: string
environmentId: string
EnvironmentApplicationAdmin 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 EnvironmentApplicationAdmin resource accepts the following input properties:
- Application
Id string - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- Environment
Id string - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
- Application
Id string - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- Environment
Id string - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
- application_
id string - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- environment_
id string - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
- application
Id String - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- environment
Id String - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
- application
Id string - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- environment
Id string - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
- application_
id str - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- environment_
id str - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
- application
Id String - The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
- environment
Id String - The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnvironmentApplicationAdmin resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- System
User stringId - The Dataverse systemuser record GUID for the registered application user.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
User stringId - The Dataverse systemuser record GUID for the registered application user.
- id string
- The provider-assigned unique ID for this managed resource.
- system_
user_ stringid - The Dataverse systemuser record GUID for the registered application user.
- id String
- The provider-assigned unique ID for this managed resource.
- system
User StringId - The Dataverse systemuser record GUID for the registered application user.
- id string
- The provider-assigned unique ID for this managed resource.
- system
User stringId - The Dataverse systemuser record GUID for the registered application user.
- id str
- The provider-assigned unique ID for this managed resource.
- system_
user_ strid - The Dataverse systemuser record GUID for the registered application user.
- id String
- The provider-assigned unique ID for this managed resource.
- system
User StringId - The Dataverse systemuser record GUID for the registered application user.
Package Details
- Repository
- powerplatform rpothin/pulumi-powerplatform
- License
- MIT
published on Monday, May 18, 2026 by rpothin