Create an environment
cs_admin_create_environmentCreate a Dataverse environment in your tenant as Production, Sandbox, Trial, Developer, or Teams. Requires confirmation to run; without confirm it performs a dry run.
Instructions
Create a Dataverse environment in the tenant. Consumes tenant capacity: requires confirm: true. Runs 'pac admin create' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| name | No | Environment name | |
| type | Yes | Production, Sandbox, Trial, Developer or Teams | |
| user | No | User to assign to the environment (object id or UPN) | |
| async | No | Run the operation asynchronously | |
| domain | No | Domain part of the environment URL | |
| region | No | Region (default unitedstates) | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| profile | No | pac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles. | |
| currency | No | Currency (default USD) | |
| language | No | Language (default English) | |
| inputFile | No | JSON file with the arguments | |
| templates | No | Dynamics 365 templates to deploy | |
| background | No | Run in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status. | |
| timeoutSeconds | No | Default 7200 | |
| securityGroupId | No | Entra security group id (required for a Teams environment) | |
| maxAsyncWaitTime | No | Max asynchronous wait time in minutes (default 60) |