docs: add Migrate to Coder section and Microsoft Dev Box migration guide (#31979)
> [!NOTE] > Coder Agents generated this PR. Adds a "Migrate to Coder" group to the docs sidebar with a short index page, and a guide for teams moving from Microsoft Dev Box to Coder. - `docs/install/plan/migrate.md` (new): says who the guides are for and lists them. - `docs/install/plan/migrate/dev-box.md` (new): who it's for, what carries over, a concept-mapping table, 11 numbered migration steps, and **Learn more**. The steps cover the inventory, the control plane, Entra ID (OIDC), templates on Azure (image, network, persistence, access, quotas), customizations and dotfiles, Git auth and secrets, RDP, editors, schedules and hibernation, Intune, and the pilot and cut-over. Each step links to existing Coder docs instead of repeating them. - `docs/install/plan/migrate/ona.md` (moved from `migrate-from-ona.md`): relative links only, plus a redirect from `install/plan/migrate-from-ona` in `docs/redirects.json`. - `docs/manifest/install/plan/migrate.yml` (new) and `docs/manifest/install/plan.yml`: the new group, with the Ona guide under it. This follows the existing `upgrade.md` plus `upgrade/` layout. `docs/manifest.json` is regenerated. Microsoft retirement dates come from Microsoft's own [Dev Box retirement guide](https://learn.microsoft.com/azure/dev-box/dev-box-retirement-guide): the closing-down period started September 14, 2026, and the service retires September 18, 2028. ### Follow-ups outside this PR - **Starter template is broken today.** The registry `azure-windows` template pins `windows-rdp` at `~> 1.0`, which now resolves to 1.4.0. That version requires `agent_name`, so `terraform plan` fails with `agent_name must be set when enable_native_rdp is true.` The copy in `examples/templates/azure-windows/main.tf` also passes `resource_id = null`, which 1.4.0 rejects at `terraform init`. The guide tells readers to set `agent_name = "main"` until both templates are fixed. - **Activity detection docs.** `docs/workspaces/workspace-scheduling.md` and `docs/templates/managing-templates/schedule.md` say only some session types count as activity, but the code counts any connection through the agent (`agent/agent.go` `Collect`, `coderd/workspacestats/reporter.go`). The guide follows the code. Those pages need a separate fix, and an SME should confirm RDP end to end. - **Comparison page.** The coder.com comparison page compares Coder with Windows 365 and VDI, not Dev Box, and still says Dev Box is in "maintenance mode". The guide no longer links to it, so DOCS-1414's comparison-link item waits until the page is corrected. <details> <summary>Reusable outline for future migration guides (DOCS-1414)</summary> The repo has no place for page templates, so the outline lives here. ```md --- title: Migrate from <Platform> to Coder --- <1 to 2 sentences: who it's for (persona and current setup) and the outcome.> <Optional: dated facts about the platform, citing the vendor's own announcement.> ## Before you begin <Access, licenses (mark Premium), cloud permissions.> ## What carries over <Architecture difference in 2 to 3 sentences. "You can keep" list, then "You rebuild" list.> ## Concept mapping | <Platform> (link to the vendor's docs for each concept) | Coder (link to Coder docs) | ## Step 1: Inventory your <Platform> resources ## Step 2: Deploy the Coder control plane ## Step 3: Connect your identity provider ## Step 4: Replace <environment definition> with templates ## Step N: Bring your devcontainer.json (Codespaces, Ona, DevPod) ## Step N: Configure Git authentication and secrets ## Step N: Set up editors (and remote desktops, if relevant) ## Step N: Speed up workspace startup (prebuilt workspaces) ## Step N: Replace schedules and cost controls ## Step N: Move agent workloads ## Step N: Pilot and cut over <One neutral link to the coder.com comparison page, if one exists and is current.> ## Learn more ``` Rules: facts only, with no scoring or positioning language. Check every mapping row against the vendor's current public docs and record the date checked in the PR. Link to Coder docs rather than repeating them. Mark Premium features inline. </details> ### Verified against Microsoft docs checked November 5 and November 10, 2026, in the MicrosoftDocs/azure-docs source (`articles/dev-box/`) and on learn.microsoft.com: - `dev-box-retirement-guide.md` (dates, workload deletion) - `overview-what-is-microsoft-dev-box.md`, `concept-dev-box-architecture.md` (dev centers, projects, pools, definitions, network connections, Microsoft-hosted network, Intune enrollment, Entra join, Windows 10 and 11 client editions) - `how-to-manage-dev-box-pools.md` (local admin or standard user setting) - `concept-what-are-dev-box-customizations.md`, `how-to-configure-team-customizations.md`, `how-to-configure-user-customizations.md` (WinGet, PowerShell, Git-Clone tasks, Key Vault secrets) - `how-to-configure-azure-compute-gallery.md` - `how-to-configure-stop-schedule.md` (one stop time per pool), `how-to-configure-stop-on-disconnect.md`, `how-to-configure-dev-box-hibernation.md`, `how-to-auto-delete-dev-box.md`, `tutorial-dev-box-limits.md` (maximum dev boxes per developer) - `concept-dev-box-role-based-access-control.md`, `how-to-install-dev-box-cli.md`, `how-to-set-up-dev-tunnels.md`, `quickstart-create-dev-box.md`, `how-to-enable-single-sign-on.md` - Intune [supported operating systems](https://learn.microsoft.com/intune/fundamentals/ref-supported-platforms) (Windows client editions, no Windows Server) Coder side: - Registry `azure-windows` template (`main.tf`, `README.md`) and `examples/templates/azure-windows/`: azurerm resources, Windows Server 2022 image, one resource group, virtual network, and storage account per workspace, VM deleted on stop, persistent `F:` disk, `windows-rdp` module, generated admin password shown in metadata, no Entra join, no `daily_cost` - Registry `windows-rdp` module at `release/coder/windows-rdp/v1.4.0`: **Web RDP** (subdomain app) and **RDP Desktop** (Coder Desktop) apps, `agent_name` validation, Devolutions Gateway install from PowerShell Gallery on every start. Reproduced the plan failure with Terraform 1.17.1. - Registry `dotfiles` module: Bash script only - `cli/dotfiles.go`, `cli/dotfiles_windows.go` (`install.ps1`, `bootstrap.ps1`, `setup.ps1`, run with PowerShell, cloned with Git) - `enterprise/coderd/workspacequota.go` (build denied when consumed plus cost exceeds budget), `docs/admin/users/quotas.md` - `coderd/schedule/autostop.go` (autostop requirement stops at the start of quiet hours), `docs/reference/cli/server/index.md` (`CODER_QUIET_HOURS_DEFAULT_SCHEDULE`, `CODER_ALLOW_CUSTOM_QUIET_HOURS`) - `docs/workspaces/workspace-access/remote-desktops.md`, `docs/admin/networking/index.md` (agents must reach the access URL) - `docs/admin/users/oidc-auth/microsoft.md`, `docs/admin/users/idp-sync.md`, `docs/admin/users/organizations.md`, `docs/admin/users/groups-roles.md`, `docs/templates/template-permissions.md` (Premium markers, organization roles) - `coderd/workspacestats/reporter.go`, `coderd/agentapi/stats.go`, `agent/agent.go` (any connection through the agent extends the autostop deadline) - `docs/admin/external-auth.md` (Azure DevOps via Entra ID), `docs/admin/security/secrets.md` - `agent/usershell/usershell_windows.go` (scripts run with PowerShell on Windows) - No hibernation feature exists in the Coder codebase. Checks run: `make gen/docs-manifest`, `make pre-commit-light` (markdownlint, `lint/emdash`, `lint/docs-redirects`, typos), Vale (0 alerts on the new pages), `lint/docs-html`, `lint/docs-manifest`, `docsredirectscheck -base origin/main -branch main`, a check that all 159 relative links and anchors in the three pages resolve, and a `doc-check` self-review. ### Open questions for the reviewer - **Intune and Entra join:** the guide says Coder doesn't enroll workspaces in Intune, that Intune needs a Windows client image, and links Microsoft's Entra VM sign-in docs. Should a separate guide cover setting up Intune with Coder? - **Windows client editions:** the guide tells readers to check Microsoft licensing before using Windows 10 or 11 images on Azure VMs. It makes no licensing claim itself. - **Windows support in registry modules:** the guide now says the `dotfiles` module is Bash only. Whether `git-clone` and other modules work on Windows is unverified. Closes DOCS-1414, Closes DOCS-1416 Supersedes #31807, reopened under a human author for attribution. --------- Co-authored-by: Coder Prototypes <294797144+coder-prototypes@users.noreply.github.com> Co-authored-by: Ian Evans <5760366+ianjevans@users.noreply.github.com>
This commit is contained in:
7 files changed
+427
-100
No files matched your search
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: Migrate to Coder
|
||||
---
|
||||
|
||||
These guides are for platform engineers who run developer environments on another platform and plan to move them to a self-hosted Coder deployment.
|
||||
Each guide maps the other platform's concepts to Coder in a table and lists the migration steps in order, with links to the Coder docs for each step.
|
||||
|
||||
Each guide links to the other platform's public documentation for its own concepts.
|
||||
Confirm details there, because other platforms change on their own schedule.
|
||||
|
||||
## Guides
|
||||
|
||||
- [Migrate from Ona (formerly Gitpod)](./migrate/ona.md): move an Ona Enterprise organization, including runners, projects, policies, and agents.
|
||||
- [Migrate from Microsoft Dev Box](./migrate/dev-box.md): move dev centers, projects, and pools to Coder templates, with Windows workspaces on Azure.
|
||||
@@ -0,0 +1,289 @@
|
||||
---
|
||||
title: Migrate from Microsoft Dev Box to Coder
|
||||
---
|
||||
|
||||
This guide is for platform engineers who run Microsoft Dev Box and want to move their developer environments to a self-hosted Coder deployment.
|
||||
It maps each Dev Box concept to its Coder equivalent, then walks through the migration, with Windows workspaces on Azure as the main example.
|
||||
|
||||
Microsoft's [Dev Box retirement guide](https://learn.microsoft.com/azure/dev-box/dev-box-retirement-guide) states that the Dev Box closing-down period began on September 14, 2026, and that the service retires on September 18, 2028.
|
||||
The guide also states that Microsoft expects to delete remaining customer workloads after retirement.
|
||||
Plan to move developer data before the retirement date.
|
||||
|
||||
## Before you begin
|
||||
|
||||
You need:
|
||||
|
||||
- Read access to your dev centers, projects, and pools in the Azure portal, or the Azure CLI with the `devcenter` extension.
|
||||
- An Azure subscription where Coder can create resource groups, virtual machines, disks, virtual networks, network interfaces, and storage accounts.
|
||||
The starter template creates all of these for each workspace.
|
||||
- Permission to create an app registration in Microsoft Entra ID.
|
||||
- A Coder [Premium license](../../prepare/licensing.md) if you plan to use the features marked Premium in this guide.
|
||||
|
||||
## What carries over
|
||||
|
||||
Dev Box runs dev boxes in a Microsoft-owned subscription environment and connects them to your network through a network connection.
|
||||
Coder has no vendor-hosted control plane.
|
||||
You run the [control plane](../architecture.md), and each [template](../../../templates/index.md) provisions workspaces in your own Azure subscription with Terraform.
|
||||
|
||||
You can keep:
|
||||
|
||||
- Your Microsoft Entra ID tenant and its users and groups, which Coder uses through OpenID Connect (OIDC).
|
||||
- Your Azure virtual networks and subnets, which templates attach workspaces to.
|
||||
- Your images in Azure Marketplace or Azure Compute Gallery, which templates reference directly.
|
||||
- The scripts behind your customization tasks, which templates or images can run.
|
||||
- Your Git hosts, including Azure Repos, GitHub, and GitLab.
|
||||
|
||||
You rebuild:
|
||||
|
||||
- Pools, definitions, and image definitions, as Terraform templates.
|
||||
- Autostop schedules and cost controls, as template and workspace schedule settings.
|
||||
- Remote Desktop access, through Coder instead of the Dev Box developer portal.
|
||||
- Device management, such as Microsoft Intune enrollment, if your policies require it.
|
||||
Refer to [Step 10: Plan for Intune and device policies](#step-10-plan-for-intune-and-device-policies).
|
||||
|
||||
## Concept mapping
|
||||
|
||||
Use this table to find where each Dev Box concept lives in Coder.
|
||||
The sections that follow cover each area in detail.
|
||||
|
||||
| Dev Box | Coder |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [Dev center](https://learn.microsoft.com/azure/dev-box/concept-dev-box-architecture#dev-center) | Your Coder deployment, or an [organization](../../../admin/users/organizations.md) (Premium) for each dev center |
|
||||
| [Project](https://learn.microsoft.com/azure/dev-box/concept-dev-box-architecture#project) | An [organization](../../../admin/users/organizations.md) (Premium), or a [group](../../../admin/users/groups-roles.md) (Premium) with [template permissions](../../../templates/template-permissions.md) (Premium) |
|
||||
| [Dev box pool](https://learn.microsoft.com/azure/dev-box/how-to-manage-dev-box-pools) | A [template](../../../templates/index.md), with [parameters](../../../templates/extending-templates/parameters/index.md) or [workspace presets](../../../templates/extending-templates/parameters/workspace-presets.md) |
|
||||
| [Dev box definition or image definition](https://learn.microsoft.com/azure/dev-box/concept-dev-box-architecture#image-definitions) | The image, VM size, and disks in a template |
|
||||
| [Marketplace image or Azure Compute Gallery image](https://learn.microsoft.com/azure/dev-box/how-to-configure-azure-compute-gallery) | The same image, referenced in the template's virtual machine resource |
|
||||
| [Team customizations](https://learn.microsoft.com/azure/dev-box/concept-what-are-dev-box-customizations) | [Startup scripts and modules](../../../templates/extending-templates/index.md) in the template, or a prebuilt image |
|
||||
| [User customizations](https://learn.microsoft.com/azure/dev-box/how-to-configure-user-customizations) | [Dotfiles](../../../workspaces/workspace-dotfiles.md) |
|
||||
| [Network connection](https://learn.microsoft.com/azure/dev-box/how-to-configure-network-connections) | The virtual network and subnet that the template attaches workspaces to |
|
||||
| [Dev box](https://learn.microsoft.com/azure/dev-box/concept-dev-box-architecture#dev-box) | [Workspace](../../../workspaces/workspace-management.md) |
|
||||
| Developer portal | Coder dashboard |
|
||||
| [Azure CLI `devcenter` extension](https://learn.microsoft.com/azure/dev-box/how-to-install-dev-box-cli) | [Coder CLI](../../../reference/cli/index.md) |
|
||||
| [DevCenter Project Admin and Dev Box User roles](https://learn.microsoft.com/azure/dev-box/concept-dev-box-role-based-access-control) | [Organization roles](../../../admin/users/groups-roles.md#organization-roles), such as Organization Template Admin, for Project Admin, and [template permissions](../../../templates/template-permissions.md) (Premium) for Dev Box User |
|
||||
| [Dev box limits](https://learn.microsoft.com/azure/dev-box/tutorial-dev-box-limits) | [Quotas](../../../admin/users/quotas.md) (Premium) |
|
||||
| [Autostop schedule](https://learn.microsoft.com/azure/dev-box/how-to-configure-stop-schedule) | [Autostop requirement](../../../templates/managing-templates/schedule.md#autostop-requirement) and [quiet hours](../../../templates/managing-templates/schedule.md#user-quiet-hours) (Premium) |
|
||||
| [Stop on disconnect](https://learn.microsoft.com/azure/dev-box/how-to-configure-stop-on-disconnect) | [Activity detection](../../../workspaces/workspace-scheduling.md#activity-detection) |
|
||||
| [Hibernation](https://learn.microsoft.com/azure/dev-box/how-to-configure-dev-box-hibernation) | No equivalent; a workspace stop keeps only the resources the template persists |
|
||||
| [Auto-delete (preview)](https://learn.microsoft.com/azure/dev-box/how-to-auto-delete-dev-box) | [Dormancy threshold and dormancy auto-deletion](../../../templates/managing-templates/schedule.md#dormancy-threshold) (Premium) |
|
||||
| Remote Desktop through Windows App or a browser ([connect to a dev box](https://learn.microsoft.com/azure/dev-box/quickstart-create-dev-box#connect-to-a-dev-box)) | [Remote desktops](../../../workspaces/workspace-access/remote-desktops.md) over Remote Desktop Protocol (RDP), from a desktop client or a browser |
|
||||
| [Dev tunnels for VS Code](https://learn.microsoft.com/azure/dev-box/how-to-set-up-dev-tunnels) | [VS Code](../../../workspaces/workspace-access/vscode.md) and other editors over SSH |
|
||||
| Microsoft Entra ID sign-in to the developer portal | [OIDC with Microsoft Entra ID](../../../admin/users/oidc-auth/microsoft.md) |
|
||||
| [Intune enrollment](https://learn.microsoft.com/azure/dev-box/concept-dev-box-architecture#microsoft-intune-integration) | No built-in equivalent; refer to [Step 10: Plan for Intune and device policies](#step-10-plan-for-intune-and-device-policies) |
|
||||
|
||||
## Step 1: Inventory your Dev Box resources
|
||||
|
||||
Record the current configuration before you change anything.
|
||||
You use this inventory to build templates and to confirm that nothing was left behind.
|
||||
|
||||
Collect the following from the Azure portal or the Azure CLI:
|
||||
|
||||
- **Dev centers and projects**: which teams each project serves, and who holds each role on it.
|
||||
- **Pools**: the image, compute size, storage size, network connection, region, local administrator setting, and autostop schedule of each pool.
|
||||
- **Images**: each image definition, dev box definition, Marketplace image, and Azure Compute Gallery image that pools use.
|
||||
- **Customizations**: the catalogs attached to each dev center and project, and the tasks in each image definition file.
|
||||
- **Network connections**: the virtual network, subnet, and join type (Microsoft Entra join or Microsoft Entra hybrid join) of each one.
|
||||
- **Secrets**: each Azure Key Vault secret that customization files reference.
|
||||
- **Cost controls**: hibernation, stop on disconnect, auto-delete, and dev box limits for each project and pool.
|
||||
|
||||
## Step 2: Deploy the Coder control plane
|
||||
|
||||
Deploy Coder in Azure, close to the virtual networks that your network connections use.
|
||||
|
||||
1. Size the deployment with the [Coder validated architectures](../sizing/index.md).
|
||||
1. Install the control plane on [Kubernetes](../../server/kubernetes/index.md), such as Azure Kubernetes Service (AKS), or on an [Azure VM](../../server/cloud/azure-vm.md).
|
||||
1. Connect an [external PostgreSQL database](../../server/external-database.md), such as Azure Database for PostgreSQL.
|
||||
1. Set the [access URL and wildcard access URL](../../../admin/setup/index.md).
|
||||
1. Give the provisioners Azure credentials, as described in [Provider authentication](../../../templates/extending-templates/provider-authentication.md).
|
||||
|
||||
If your pools span several regions, deploy [workspace proxies](../../../admin/networking/workspace-proxies.md) (Premium) near each group of developers.
|
||||
|
||||
## Step 3: Connect Microsoft Entra ID
|
||||
|
||||
Connect the same Entra ID tenant that Dev Box uses, so developers sign in with their existing accounts.
|
||||
|
||||
1. Configure [OIDC with Microsoft Entra ID](../../../admin/users/oidc-auth/microsoft.md).
|
||||
1. To map Entra ID groups to Coder groups, configure [group sync](../../../admin/users/idp-sync.md) (Premium).
|
||||
1. If you map each project to its own organization, configure [organization sync](../../../admin/users/idp-sync.md#organization-sync) (Premium).
|
||||
|
||||
Coder OIDC controls sign-in to Coder.
|
||||
It doesn't sign developers in to Windows inside the workspace.
|
||||
Refer to [Step 7: Connect over Remote Desktop](#step-7-connect-over-remote-desktop) for Windows sign-in.
|
||||
|
||||
## Step 4: Replace pools with templates
|
||||
|
||||
A Dev Box pool combines an image, a compute size, storage, a network connection, and schedule settings.
|
||||
In Coder, a template's Terraform defines the first 4, and the template's schedule settings define the rest.
|
||||
|
||||
### Start from the Azure VM (Windows) template
|
||||
|
||||
The [Azure VM (Windows)](https://registry.coder.com/templates/coder/azure-windows) template in the Coder Registry is a starting point for Windows workspaces.
|
||||
It uses the `azurerm` Terraform provider to create a Windows Server virtual machine, a network interface, and a data disk in a resource group for each workspace.
|
||||
For Linux workspaces, start from the [Azure VM (Linux)](https://registry.coder.com/templates/coder/azure-linux) template instead.
|
||||
|
||||
If the template's `windows_rdp` module block doesn't set `agent_name`, add `agent_name = "main"`, the name of the template's `coder_agent` resource.
|
||||
Without it, the template fails to build and reports that `agent_name must be set when enable_native_rdp is true`.
|
||||
|
||||
Create one template for each group of pools that share an image and network.
|
||||
To offer several compute sizes in one template, add a [parameter](../../../templates/extending-templates/parameters/index.md) for the VM size.
|
||||
To give each team a preconfigured starting point, add a [workspace preset](../../../templates/extending-templates/parameters/workspace-presets.md) for each pool.
|
||||
|
||||
### Choose the image
|
||||
|
||||
Set the image in the template's `azurerm_windows_virtual_machine` resource:
|
||||
|
||||
- For a Marketplace image, set the `publisher`, `offer`, `sku`, and `version` values in `source_image_reference`.
|
||||
- For an Azure Compute Gallery image, set `source_image_id` to the gallery image ID.
|
||||
|
||||
The starter template uses a Windows Server image, and Dev Box supports Windows 10 and Windows 11 client editions.
|
||||
If you switch the template to a client edition, confirm with Microsoft licensing guidance that you can run it on Azure virtual machines.
|
||||
|
||||
### Attach workspaces to your network
|
||||
|
||||
The starter template creates a virtual network for each workspace.
|
||||
To keep the network access that a Dev Box network connection provides, change the template to use your existing subnet.
|
||||
For example, read the subnet with an `azurerm_subnet` data source and pass its ID to the network interface.
|
||||
The Azure credentials that the provisioners use also need permission to join that subnet.
|
||||
|
||||
Workspaces on the subnet need outbound access to your Coder access URL, which the Coder agent uses to connect.
|
||||
The [Windows RDP](https://registry.coder.com/modules/coder/windows-rdp) module also downloads Devolutions Gateway from the internet each time the workspace starts.
|
||||
Refer to [Networking](../../../admin/networking/index.md) for the connections that the agent makes.
|
||||
|
||||
Pools that use a Microsoft-hosted network have no subnet to reuse, so keep the starter template's virtual network for those pools.
|
||||
|
||||
### Keep data across restarts
|
||||
|
||||
By default, the starter template deletes the virtual machine when the workspace stops and keeps the data disk mounted as `F:`.
|
||||
Files outside the data disk don't persist.
|
||||
The [template README](https://registry.coder.com/templates/coder/azure-windows) describes how to keep the whole virtual machine and deallocate it on stop instead.
|
||||
That approach needs the Azure CLI (`az`) on the provisioner's `PATH`, and the official Coder images don't include it.
|
||||
Refer to [Resource persistence](../../../templates/extending-templates/resource-persistence.md) to choose what to keep.
|
||||
|
||||
### Control who uses each template
|
||||
|
||||
Dev Box grants access with the Dev Box User role on a project.
|
||||
In Coder, use [template permissions](../../../templates/template-permissions.md) (Premium) to limit each template to the groups that need it.
|
||||
To limit how many workspaces each developer runs, as Dev Box limits do, configure [quotas](../../../admin/users/quotas.md) (Premium).
|
||||
Quotas give each developer a credit budget from the allowances of their groups.
|
||||
Coder calculates each developer's budget separately in each organization.
|
||||
A workspace spends credits only for resources that have a `daily_cost`, and the starter template sets none, so quotas don't limit its workspaces until you add one.
|
||||
|
||||
To allow each developer a set number of workspaces, give the data disk a cost of 1 credit, and give each developer's groups allowances that add up to the limit:
|
||||
|
||||
```tf
|
||||
resource "coder_metadata" "data_disk" {
|
||||
resource_id = azurerm_managed_disk.data.id
|
||||
daily_cost = 1
|
||||
}
|
||||
```
|
||||
|
||||
The data disk persists while the workspace is stopped, so stopped workspaces also count toward the limit.
|
||||
|
||||
## Step 5: Translate customizations
|
||||
|
||||
Dev Box team customizations run WinGet, PowerShell, and Git clone tasks from an image definition file.
|
||||
Coder has no equivalent file, so move each task to the image or to the template:
|
||||
|
||||
- **Tasks that rarely change**: bake them into a custom image in your Azure Compute Gallery.
|
||||
This keeps workspace startup fast.
|
||||
- **Tasks that run on every start**: add a [`coder_script`](../../../templates/extending-templates/index.md#run-scripts-on-workspace-lifecycle-events) to the template.
|
||||
On Windows, the Coder agent runs scripts with PowerShell.
|
||||
- **Developer-specific tasks**: ask developers to move their user customizations to a [dotfiles](../../../workspaces/workspace-dotfiles.md) repository.
|
||||
The [Dotfiles module](https://registry.coder.com/modules/coder/dotfiles) runs a Bash script, so it doesn't run on Windows workspaces.
|
||||
On Windows, `coder dotfiles` runs the first of `install.ps1`, `bootstrap.ps1`, or `setup.ps1` that it finds in the repository root or its `script` folder, with PowerShell.
|
||||
It clones the repository with Git, so install Git in the image.
|
||||
|
||||
Refer to [Speed up your workspaces](../../../workspaces/speed-up-templates.md) for more ways to reduce startup time.
|
||||
|
||||
## Step 6: Configure Git authentication and secrets
|
||||
|
||||
Dev Box customization files can read secrets from Azure Key Vault to clone private repositories.
|
||||
In Coder, developers authorize their own Git accounts through [external authentication](../../../admin/external-auth.md):
|
||||
|
||||
1. Create an OAuth application on each Git host, or an Entra ID app registration for Azure DevOps.
|
||||
1. Add each provider to Coder with the `CODER_EXTERNAL_AUTH_<n>_*` environment variables.
|
||||
1. For Azure Repos, use the [Azure DevOps (via Entra ID)](../../../admin/external-auth.md#azure-devops-via-entra-id) provider type.
|
||||
1. Add the external authentication provider to each template.
|
||||
|
||||
Move other secrets as follows:
|
||||
|
||||
- **Shared secrets**: give the workspace VM a managed identity and read values from Azure Key Vault at startup.
|
||||
Do not put secret values in template code or parameters.
|
||||
Coder shows parameter values in cleartext to anyone who can view the workspace.
|
||||
- **Personal secrets**: ask developers to recreate them as [user secrets](../../../workspaces/user-secrets.md).
|
||||
|
||||
Refer to [Secrets](../../../admin/security/secrets.md) for more options.
|
||||
|
||||
## Step 7: Connect over Remote Desktop
|
||||
|
||||
Dev Box connects developers through Windows App or a browser.
|
||||
Coder connects to Windows workspaces over RDP through the Coder agent, so workspaces need no public IP address.
|
||||
|
||||
The starter template includes the [Windows RDP](https://registry.coder.com/modules/coder/windows-rdp) module, which adds these buttons to the workspace page:
|
||||
|
||||
- **Web RDP**: opens an RDP session in the browser.
|
||||
It needs the wildcard access URL from [Step 2](#step-2-deploy-the-coder-control-plane).
|
||||
- **RDP Desktop**: opens the session in a desktop RDP client through [Coder Desktop](../../../workspaces/desktop/index.md).
|
||||
|
||||
Developers without Coder Desktop can forward the RDP port with `coder port-forward` and connect with any RDP client.
|
||||
Refer to [Remote desktops](../../../workspaces/workspace-access/remote-desktops.md) for each method.
|
||||
|
||||
The starter template creates a local administrator account with a generated password, and shows both on the workspace page while the workspace runs.
|
||||
It doesn't join the VM to Entra ID, so developers don't sign in to Windows with their Entra ID account.
|
||||
If your Dev Box pools gave developers standard user accounts, change the template to match.
|
||||
|
||||
## Step 8: Set up editors
|
||||
|
||||
Developers who used Dev Box dev tunnels with VS Code can connect to Coder workspaces over SSH instead:
|
||||
|
||||
- [VS Code](../../../workspaces/workspace-access/vscode.md), through the Coder extension.
|
||||
- [JetBrains IDEs](../../../workspaces/workspace-access/jetbrains/toolbox.md), through JetBrains Toolbox.
|
||||
- [Other editors](../../../workspaces/workspace-access/index.md), after developers run `coder config-ssh`.
|
||||
|
||||
Developers who run Visual Studio or other desktop tools inside Windows keep using them over RDP.
|
||||
|
||||
## Step 9: Replace schedules and hibernation
|
||||
|
||||
Recreate each cost control in your inventory with the matching Coder setting:
|
||||
|
||||
- **Autostop schedule**: Dev Box stops every dev box in a pool at one time of day.
|
||||
To stop workspaces at a set time in Coder, configure a daily [autostop requirement](../../../templates/managing-templates/schedule.md#autostop-requirement) (Premium) on the template.
|
||||
Workspaces then stop at the start of each developer's [quiet hours](../../../templates/managing-templates/schedule.md#user-quiet-hours) (Premium), even if they're in use.
|
||||
Set the default quiet hours with `CODER_QUIET_HOURS_DEFAULT_SCHEDULE`, and set `CODER_ALLOW_CUSTOM_QUIET_HOURS=false` so that developers can't change them.
|
||||
Unlike a Dev Box schedule, the default quiet hours apply to the whole deployment, not to one template.
|
||||
To stop idle workspaces instead, set a [default autostop](../../../templates/managing-templates/schedule.md#schedule) on the template, and let developers set [autostart and autostop](../../../workspaces/workspace-scheduling.md).
|
||||
- **Stop on disconnect**: Coder extends the autostop deadline by the template's activity bump duration when it detects activity.
|
||||
It stops the workspace after the deadline passes with no activity.
|
||||
Traffic through the Coder agent counts as activity, including RDP sessions that connect through Coder.
|
||||
Refer to [activity detection](../../../workspaces/workspace-scheduling.md#activity-detection).
|
||||
- **Hibernation**: Coder has no equivalent.
|
||||
Open applications don't survive a workspace stop, and the template decides which disks persist.
|
||||
- **Auto-delete**: configure the [dormancy threshold](../../../templates/managing-templates/schedule.md#dormancy-threshold) and [dormancy auto-deletion](../../../templates/managing-templates/schedule.md#dormancy-auto-deletion) (Premium).
|
||||
- **Required restarts**: to apply image and template updates on a schedule, configure an [autostop requirement](../../../templates/managing-templates/schedule.md#autostop-requirement) (Premium).
|
||||
|
||||
## Step 10: Plan for Intune and device policies
|
||||
|
||||
Dev Box enrolls each dev box in Microsoft Intune and joins it to Entra ID or Active Directory through the network connection.
|
||||
Coder doesn't enroll workspaces in Intune or join them to a directory.
|
||||
|
||||
If your security policies require managed devices, configure the device join and Intune enrollment in the image or the template.
|
||||
Intune's list of [supported operating systems](https://learn.microsoft.com/intune/fundamentals/ref-supported-platforms) includes Windows client editions, such as Windows 11 Enterprise, but not Windows Server, which the starter template uses.
|
||||
To enroll workspaces, first switch the template to a client edition image, as described in [Choose the image](#choose-the-image).
|
||||
For Entra ID join and Entra ID sign-in on Azure virtual machines, follow Microsoft's guide to [sign in to a Windows VM with Microsoft Entra ID](https://learn.microsoft.com/entra/identity/devices/howto-vm-sign-in-azure-ad-windows).
|
||||
If you use conditional access policies that require a compliant device, test them from a pilot workspace before you move developers.
|
||||
|
||||
## Step 11: Pilot and cut over
|
||||
|
||||
1. Run Coder and Dev Box side by side.
|
||||
1. Move one team and one pool to Coder first.
|
||||
1. Compare workspace startup time and developer feedback with the same pool on Dev Box.
|
||||
1. Ask developers to commit their work to Git.
|
||||
1. Ask developers to copy the local files they need from each dev box.
|
||||
1. Move the remaining pools one at a time.
|
||||
1. After all developers move, delete your Dev Box resources by following the [Dev Box retirement guide](https://learn.microsoft.com/azure/dev-box/dev-box-retirement-guide).
|
||||
|
||||
## Learn more
|
||||
|
||||
- [Creating templates](../../../templates/creating-templates.md)
|
||||
- [Remote desktops](../../../workspaces/workspace-access/remote-desktops.md)
|
||||
- [OIDC with Microsoft Entra ID](../../../admin/users/oidc-auth/microsoft.md)
|
||||
- [Workspace scheduling](../../../templates/managing-templates/schedule.md)
|
||||
@@ -13,7 +13,7 @@ This guide uses "Ona" throughout.
|
||||
You need:
|
||||
|
||||
- Organization admin access to Ona, so you can read runner, project, policy, and integration settings.
|
||||
- A Coder [Premium license](../prepare/licensing.md) if you plan to use the features marked Premium in this guide.
|
||||
- A Coder [Premium license](../../prepare/licensing.md) if you plan to use the features marked Premium in this guide.
|
||||
Most organization-wide policy, identity, and governance features that Ona Enterprise includes require Premium.
|
||||
- A Kubernetes cluster or VM and a PostgreSQL database in the cloud account where you want the Coder control plane to run.
|
||||
- Permission to create an OAuth application on each Git host your developers use.
|
||||
@@ -25,8 +25,8 @@ Ona hosts the [management plane](https://ona.com/docs/ona/understanding/architec
|
||||
Runners in your AWS or Google Cloud account provision environments, clone code, inject secrets, and run agents.
|
||||
|
||||
Coder has no vendor-hosted component.
|
||||
You run the [control plane](./architecture.md) and its PostgreSQL database, and Coder provisions workspaces from [templates](../../templates/index.md) that you write in Terraform.
|
||||
The [Coder Agents](../../coder-agents/index.md) agent loop also runs in your control plane.
|
||||
You run the [control plane](../architecture.md) and its PostgreSQL database, and Coder provisions workspaces from [templates](../../../templates/index.md) that you write in Terraform.
|
||||
The [Coder Agents](../../../coder-agents/index.md) agent loop also runs in your control plane.
|
||||
|
||||
In practice, migrating means 2 things:
|
||||
|
||||
@@ -38,23 +38,23 @@ In practice, migrating means 2 things:
|
||||
Use this table to find where each Ona concept lives in Coder.
|
||||
The sections that follow cover each area in detail.
|
||||
|
||||
| Ona | Coder |
|
||||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| Management plane | [Coder control plane](./architecture.md) and PostgreSQL, which you host |
|
||||
| [Runner](https://ona.com/docs/ona/runners/overview) (AWS or GCP) | The infrastructure a template provisions, plus [provisioners](../operate/provisioners/index.md) that run Terraform |
|
||||
| Environment class | A template [parameter](../../templates/extending-templates/parameters/index.md) for instance size |
|
||||
| [Project](https://ona.com/docs/ona/projects/overview) | A [template](../../templates/index.md), with one [workspace preset](../../templates/extending-templates/parameters/workspace-presets.md) per repository |
|
||||
| Environment | [Workspace](../../workspaces/workspace-management.md) |
|
||||
| `devcontainer.json` | [Dev Containers integration](../../admin/integrations/devcontainers/integration.md) or [Envbuilder](../../admin/integrations/devcontainers/envbuilder/index.md) |
|
||||
| Tasks and services in `.ona/config.yaml` | Dev container lifecycle commands, [`coder_script`, and `coder_app`](../../templates/extending-templates/index.md) |
|
||||
| [Prebuilds](https://ona.com/docs/ona/projects/prebuilds) and warm pools | [Envbuilder caching](../../admin/integrations/devcontainers/envbuilder/envbuilder-security-caching.md) and [prebuilt workspaces](../../templates/extending-templates/prebuilt-workspaces.md) |
|
||||
| Organization and project secrets | Values that templates inject from your secret manager (refer to [Secrets](../../admin/security/secrets.md)) |
|
||||
| User secrets | [User secrets](../../workspaces/user-secrets.md) |
|
||||
| Git providers configured on each runner | [External authentication](../../admin/external-auth.md), configured once for the deployment |
|
||||
| Codex Agent | [Coder Agents](../../coder-agents/index.md), or Codex CLI running in a workspace |
|
||||
| [Automations](https://ona.com/docs/ona/automations/overview) | The [Chats API](../../reference/api/chats.md), called from CI, schedulers, or webhooks |
|
||||
| Custom domain | [Access URL and wildcard access URL](../../admin/setup/index.md) |
|
||||
| [Ona Terraform provider](https://ona.com/docs/ona/integrations/terraform-provider) | [`coderd` Terraform provider](https://registry.terraform.io/providers/coder/coderd/latest/docs) |
|
||||
| Ona | Coder |
|
||||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| Management plane | [Coder control plane](../architecture.md) and PostgreSQL, which you host |
|
||||
| [Runner](https://ona.com/docs/ona/runners/overview) (AWS or GCP) | The infrastructure a template provisions, plus [provisioners](../../operate/provisioners/index.md) that run Terraform |
|
||||
| Environment class | A template [parameter](../../../templates/extending-templates/parameters/index.md) for instance size |
|
||||
| [Project](https://ona.com/docs/ona/projects/overview) | A [template](../../../templates/index.md), with one [workspace preset](../../../templates/extending-templates/parameters/workspace-presets.md) per repository |
|
||||
| Environment | [Workspace](../../../workspaces/workspace-management.md) |
|
||||
| `devcontainer.json` | [Dev Containers integration](../../../admin/integrations/devcontainers/integration.md) or [Envbuilder](../../../admin/integrations/devcontainers/envbuilder/index.md) |
|
||||
| Tasks and services in `.ona/config.yaml` | Dev container lifecycle commands, [`coder_script`, and `coder_app`](../../../templates/extending-templates/index.md) |
|
||||
| [Prebuilds](https://ona.com/docs/ona/projects/prebuilds) and warm pools | [Envbuilder caching](../../../admin/integrations/devcontainers/envbuilder/envbuilder-security-caching.md) and [prebuilt workspaces](../../../templates/extending-templates/prebuilt-workspaces.md) |
|
||||
| Organization and project secrets | Values that templates inject from your secret manager (refer to [Secrets](../../../admin/security/secrets.md)) |
|
||||
| User secrets | [User secrets](../../../workspaces/user-secrets.md) |
|
||||
| Git providers configured on each runner | [External authentication](../../../admin/external-auth.md), configured once for the deployment |
|
||||
| Codex Agent | [Coder Agents](../../../coder-agents/index.md), or Codex CLI running in a workspace |
|
||||
| [Automations](https://ona.com/docs/ona/automations/overview) | The [Chats API](../../../reference/api/chats.md), called from CI, schedulers, or webhooks |
|
||||
| Custom domain | [Access URL and wildcard access URL](../../../admin/setup/index.md) |
|
||||
| [Ona Terraform provider](https://ona.com/docs/ona/integrations/terraform-provider) | [`coderd` Terraform provider](https://registry.terraform.io/providers/coder/coderd/latest/docs) |
|
||||
|
||||
## Inventory your Ona organization
|
||||
|
||||
@@ -80,27 +80,27 @@ Collect the following from the Ona dashboard, the [Ona CLI](https://ona.com/docs
|
||||
Deploy Coder in the same cloud account and network as your Ona runners.
|
||||
Workspaces then reach the same internal services, package registries, and databases that your Ona environments use today.
|
||||
|
||||
1. Size the deployment with the [Coder validated architectures](./sizing/index.md).
|
||||
1. Install the control plane on [Kubernetes](../server/kubernetes/index.md) or on a [cloud VM](../server/cloud/index.md).
|
||||
1. Connect an [external PostgreSQL database](../server/external-database.md), such as [Amazon RDS](https://aws.amazon.com/rds/) or Cloud SQL.
|
||||
1. Set the [access URL and wildcard access URL](../../admin/setup/index.md) to replace the Ona custom domain.
|
||||
1. If developers depend on the deployment for daily work, run multiple replicas for [high availability](../../admin/networking/high-availability.md).
|
||||
1. Size the deployment with the [Coder validated architectures](../sizing/index.md).
|
||||
1. Install the control plane on [Kubernetes](../../server/kubernetes/index.md) or on a [cloud VM](../../server/cloud/index.md).
|
||||
1. Connect an [external PostgreSQL database](../../server/external-database.md), such as [Amazon RDS](https://aws.amazon.com/rds/) or Cloud SQL.
|
||||
1. Set the [access URL and wildcard access URL](../../../admin/setup/index.md) to replace the Ona custom domain.
|
||||
1. If developers depend on the deployment for daily work, run multiple replicas for [high availability](../../../admin/networking/high-availability.md).
|
||||
|
||||
If your Ona runners span several regions, deploy [workspace proxies](../../admin/networking/workspace-proxies.md) (Premium) near each group of developers.
|
||||
If your network has no outbound internet access, follow the [air-gapped deployment](../prepare/airgap.md) guide.
|
||||
If your Ona runners span several regions, deploy [workspace proxies](../../../admin/networking/workspace-proxies.md) (Premium) near each group of developers.
|
||||
If your network has no outbound internet access, follow the [air-gapped deployment](../../prepare/airgap.md) guide.
|
||||
|
||||
## Connect your identity provider
|
||||
|
||||
Connect the same identity provider that Ona uses so that developers sign in with their existing accounts.
|
||||
|
||||
| Ona | Coder |
|
||||
|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [SSO](https://ona.com/docs/ona/sso/overview) through an OIDC provider | [OpenID Connect](../../admin/users/oidc-auth/index.md) |
|
||||
| SCIM provisioning | [SCIM](../../admin/users/oidc-auth/index.md#scim) (Premium) |
|
||||
| Groups and teams | [Groups](../../admin/users/groups-roles.md) (Premium), synced from your identity provider with [IdP sync](../../admin/users/idp-sync.md) (Premium) |
|
||||
| Organization roles | [Roles and custom roles](../../admin/users/groups-roles.md) (Premium) |
|
||||
| Multiple Ona organizations | [Organizations](../../admin/users/organizations.md) (Premium) |
|
||||
| Service accounts | [Service accounts](../../admin/users/headless-auth.md) (Premium) |
|
||||
| Ona | Coder |
|
||||
|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [SSO](https://ona.com/docs/ona/sso/overview) through an OIDC provider | [OpenID Connect](../../../admin/users/oidc-auth/index.md) |
|
||||
| SCIM provisioning | [SCIM](../../../admin/users/oidc-auth/index.md#scim) (Premium) |
|
||||
| Groups and teams | [Groups](../../../admin/users/groups-roles.md) (Premium), synced from your identity provider with [IdP sync](../../../admin/users/idp-sync.md) (Premium) |
|
||||
| Organization roles | [Roles and custom roles](../../../admin/users/groups-roles.md) (Premium) |
|
||||
| Multiple Ona organizations | [Organizations](../../../admin/users/organizations.md) (Premium) |
|
||||
| Service accounts | [Service accounts](../../../admin/users/headless-auth.md) (Premium) |
|
||||
|
||||
Create a Coder service account for each Ona service account that runs Automations or prebuilds.
|
||||
You use their API tokens later, when you move Automations to the Chats API.
|
||||
@@ -108,11 +108,11 @@ You use their API tokens later, when you move Automations to the Chats API.
|
||||
## Configure Git providers
|
||||
|
||||
Ona configures Git providers on each runner, and each developer authorizes their own account.
|
||||
Coder configures Git providers once for the deployment through [external authentication](../../admin/external-auth.md), and each developer still authorizes their own account.
|
||||
Coder configures Git providers once for the deployment through [external authentication](../../../admin/external-auth.md), and each developer still authorizes their own account.
|
||||
|
||||
1. Create an OAuth application on each Git host in your inventory.
|
||||
1. Add each one to Coder with the `CODER_EXTERNAL_AUTH_<n>_*` environment variables.
|
||||
1. For self-hosted GitHub Enterprise, set `API_BASE_URL` as described in [Git providers for Coder Agents](../../coder-agents/platform-controls/git-providers.md).
|
||||
1. For self-hosted GitHub Enterprise, set `API_BASE_URL` as described in [Git providers for Coder Agents](../../../coder-agents/platform-controls/git-providers.md).
|
||||
1. Add the external authentication provider to each template so that workspaces can clone and push.
|
||||
|
||||
Coder supports GitHub, GitLab, Bitbucket, and Azure DevOps, which covers the Git providers that Ona supports.
|
||||
@@ -129,8 +129,8 @@ To keep the same isolation model, start from a VM-based template for the same cl
|
||||
The Coder Registry has starting points for [AWS](https://registry.coder.com/templates/coder/aws-envbuilder), [Google Cloud](https://registry.coder.com/templates/coder/gcp-envbuilder), and [Kubernetes](https://registry.coder.com/templates/coder/kubernetes-envbuilder).
|
||||
|
||||
The control plane runs Terraform with its built-in provisioners by default.
|
||||
If different regions or accounts need separate credentials or network access, run [external provisioners](../operate/provisioners/index.md) in each one and route templates to them with provisioner tags.
|
||||
Give provisioners cloud credentials through the environment they run in, as described in [Provider authentication](../../templates/extending-templates/provider-authentication.md).
|
||||
If different regions or accounts need separate credentials or network access, run [external provisioners](../../operate/provisioners/index.md) in each one and route templates to them with provisioner tags.
|
||||
Give provisioners cloud credentials through the environment they run in, as described in [Provider authentication](../../../templates/extending-templates/provider-authentication.md).
|
||||
|
||||
### Recreate environment classes
|
||||
|
||||
@@ -165,7 +165,7 @@ Pass the value to the instance resource in your template, such as `instance_type
|
||||
### Recreate projects
|
||||
|
||||
An Ona project combines a repository, a Dev Container path, and a set of allowed environment classes.
|
||||
In Coder, you can represent each project as a [workspace preset](../../templates/extending-templates/parameters/workspace-presets.md) on a shared template:
|
||||
In Coder, you can represent each project as a [workspace preset](../../../templates/extending-templates/parameters/workspace-presets.md) on a shared template:
|
||||
|
||||
```tf
|
||||
data "coder_workspace_preset" "payments_api" {
|
||||
@@ -178,24 +178,24 @@ data "coder_workspace_preset" "payments_api" {
|
||||
```
|
||||
|
||||
If a project needs different infrastructure, such as GPUs or a separate network, create a separate template for it.
|
||||
Use [template permissions](../../templates/template-permissions.md) (Premium) to limit who can use each template, as Ona project sharing does.
|
||||
Use [template permissions](../../../templates/template-permissions.md) (Premium) to limit who can use each template, as Ona project sharing does.
|
||||
|
||||
### Keep data across restarts
|
||||
|
||||
Ona environments keep their disk across stops and starts.
|
||||
In Coder, what persists depends on the template.
|
||||
Many templates keep the home directory on a persistent volume and recreate compute on each start.
|
||||
Refer to [Resource persistence](../../templates/extending-templates/resource-persistence.md) to choose what to keep.
|
||||
Refer to [Resource persistence](../../../templates/extending-templates/resource-persistence.md) to choose what to keep.
|
||||
|
||||
## Bring your Dev Container configuration
|
||||
|
||||
Ona builds every environment from a `devcontainer.json` file, so most repositories already have one.
|
||||
Keep it in place and choose how Coder runs it:
|
||||
|
||||
- **[Dev Containers integration](../../admin/integrations/devcontainers/integration.md)**: runs the `@devcontainers/cli` and Docker inside the workspace.
|
||||
- **[Dev Containers integration](../../../admin/integrations/devcontainers/integration.md)**: runs the `@devcontainers/cli` and Docker inside the workspace.
|
||||
Use it with VM-based templates, where Docker is available.
|
||||
Coder shows each dev container in the dashboard and supports multiple dev containers per workspace.
|
||||
- **[Envbuilder](../../admin/integrations/devcontainers/envbuilder/index.md)**: builds the workspace image itself from `devcontainer.json`, without a Docker daemon.
|
||||
- **[Envbuilder](../../../admin/integrations/devcontainers/envbuilder/index.md)**: builds the workspace image itself from `devcontainer.json`, without a Docker daemon.
|
||||
Use it on Kubernetes, or wherever privileged containers aren't allowed.
|
||||
|
||||
This example clones the project repository and starts its dev container with the Dev Containers integration:
|
||||
@@ -228,19 +228,19 @@ Before you test, check each `devcontainer.json` and its scripts for these Ona-sp
|
||||
- `network_mode: host` on Docker Compose services, which Ona requires.
|
||||
Keep it only if your services still need it.
|
||||
- `forwardPorts` entries with `host:port` syntax for Docker Compose sidecar containers, which the Dev Containers integration doesn't support yet.
|
||||
Refer to the [Dev Containers limitations](../../workspaces/devcontainers/index.md#limitations).
|
||||
Refer to the [Dev Containers limitations](../../../workspaces/devcontainers/index.md#limitations).
|
||||
|
||||
## Translate tasks and services
|
||||
|
||||
Ona runs tasks and services from `.ona/config.yaml`.
|
||||
Coder has no equivalent file, so move each entry to the dev container lifecycle commands or to the template.
|
||||
|
||||
| Ona trigger | When Ona runs it | Coder equivalent |
|
||||
|-------------------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `prebuild` | During prebuilds only | `onCreateCommand` or `updateContentCommand` in `devcontainer.json` |
|
||||
| `postDevcontainerStart` | After the dev container first starts or rebuilds | `postCreateCommand` in `devcontainer.json` |
|
||||
| `postEnvironmentStart` | Every time the environment starts | `postStartCommand` in `devcontainer.json`, or a `coder_script` with `run_on_start = true` |
|
||||
| `manual` | On demand from the UI or CLI | A `coder_app` with a `command`, or a [custom app](../../workspaces/devcontainers/customizing-dev-containers.md#custom-apps) in `devcontainer.json` |
|
||||
| Ona trigger | When Ona runs it | Coder equivalent |
|
||||
|-------------------------|--------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `prebuild` | During prebuilds only | `onCreateCommand` or `updateContentCommand` in `devcontainer.json` |
|
||||
| `postDevcontainerStart` | After the dev container first starts or rebuilds | `postCreateCommand` in `devcontainer.json` |
|
||||
| `postEnvironmentStart` | Every time the environment starts | `postStartCommand` in `devcontainer.json`, or a `coder_script` with `run_on_start = true` |
|
||||
| `manual` | On demand from the UI or CLI | A `coder_app` with a `command`, or a [custom app](../../../workspaces/devcontainers/customizing-dev-containers.md#custom-apps) in `devcontainer.json` |
|
||||
|
||||
Ona services are long-running processes, such as databases and development servers.
|
||||
In Coder, start them with a `coder_script` and expose their ports with a `coder_app`:
|
||||
@@ -254,22 +254,22 @@ resource "coder_script" "postgres" {
|
||||
}
|
||||
```
|
||||
|
||||
If the service runs inside a dev container, define it as a [custom app](../../workspaces/devcontainers/customizing-dev-containers.md#custom-apps) with a health check in `devcontainer.json` instead.
|
||||
If the service runs inside a dev container, define it as a [custom app](../../../workspaces/devcontainers/customizing-dev-containers.md#custom-apps) with a health check in `devcontainer.json` instead.
|
||||
|
||||
## Speed up workspace startup
|
||||
|
||||
Ona [prebuilds](https://ona.com/docs/ona/projects/prebuilds) snapshot the Dev Container filesystem on a schedule, and [warm pools](https://ona.com/docs/ona/projects/warm-pools) keep instances running so environments start faster.
|
||||
Coder offers 2 features for the same goal:
|
||||
|
||||
- **[Envbuilder caching](../../admin/integrations/devcontainers/envbuilder/envbuilder-security-caching.md)**: pushes built image layers to a registry, so later builds of the same `devcontainer.json` skip unchanged steps.
|
||||
- **[Prebuilt workspaces](../../templates/extending-templates/prebuilt-workspaces.md)** (Premium): keeps a pool of running workspaces for each preset.
|
||||
- **[Envbuilder caching](../../../admin/integrations/devcontainers/envbuilder/envbuilder-security-caching.md)**: pushes built image layers to a registry, so later builds of the same `devcontainer.json` skip unchanged steps.
|
||||
- **[Prebuilt workspaces](../../../templates/extending-templates/prebuilt-workspaces.md)** (Premium): keeps a pool of running workspaces for each preset.
|
||||
When a developer creates a workspace with that preset, Coder assigns them one from the pool, much like an Ona warm pool.
|
||||
|
||||
Ona runs prebuilds without user secrets.
|
||||
In Coder, a prebuilt workspace belongs to the `prebuilds` system user until a developer claims it.
|
||||
Run steps that need the developer's identity, such as cloning with their Git credentials, after the claim.
|
||||
|
||||
Refer to [Speed up your workspaces](../../workspaces/speed-up-templates.md) for more ways to reduce startup time.
|
||||
Refer to [Speed up your workspaces](../../../workspaces/speed-up-templates.md) for more ways to reduce startup time.
|
||||
|
||||
## Move secrets
|
||||
|
||||
@@ -277,13 +277,13 @@ Ona has secrets at 3 scopes.
|
||||
Move each scope as follows:
|
||||
|
||||
- **Organization and project secrets**: give the workspace compute a cloud identity, such as an Identity and Access Management (IAM) role or service account, and read values from your secret manager at startup.
|
||||
Alternatively, use [dynamic secrets](../../admin/security/secrets.md#dynamic-secrets) that the template creates for each workspace.
|
||||
Alternatively, use [dynamic secrets](../../../admin/security/secrets.md#dynamic-secrets) that the template creates for each workspace.
|
||||
Do not put secret values in template code or template parameters, because users with template or workspace access can read them.
|
||||
- **User secrets**: ask developers to recreate them as Coder [user secrets](../../workspaces/user-secrets.md).
|
||||
- **User secrets**: ask developers to recreate them as Coder [user secrets](../../../workspaces/user-secrets.md).
|
||||
Each user secret can target an environment variable, a file path, or both, like Ona environment variable and file secrets.
|
||||
- **Container registry secrets**: give the provisioner or workspace infrastructure access to the registry.
|
||||
For Kubernetes, use an [image pull secret](../operate/image-pull-secret.md).
|
||||
For Envbuilder, follow its [security and caching](../../admin/integrations/devcontainers/envbuilder/envbuilder-security-caching.md) guidance.
|
||||
For Kubernetes, use an [image pull secret](../../operate/image-pull-secret.md).
|
||||
For Envbuilder, follow its [security and caching](../../../admin/integrations/devcontainers/envbuilder/envbuilder-security-caching.md) guidance.
|
||||
|
||||
If your environments use Ona [OIDC tokens](https://ona.com/docs/ona/configuration/oidc) to reach AWS or other cloud services, attach a cloud identity to the workspace compute in your template instead.
|
||||
|
||||
@@ -291,35 +291,35 @@ If your environments use Ona [OIDC tokens](https://ona.com/docs/ona/configuratio
|
||||
|
||||
Recreate each Ona policy in your inventory with the matching Coder setting.
|
||||
|
||||
| Ona policy | Coder setting |
|
||||
|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [Auto-stop timeout](https://ona.com/docs/ona/organizations/policies/environment-timeout) | [Autostop and activity detection](../../workspaces/workspace-scheduling.md), with defaults set in [template scheduling](../../templates/managing-templates/schedule.md) |
|
||||
| [Maximum environment lifetime](https://ona.com/docs/ona/organizations/policies/environment-lifetime) | [Autostop requirement](../../templates/managing-templates/schedule.md#autostop-requirement) (Premium) |
|
||||
| [Archive timing and auto-delete](https://ona.com/docs/ona/environments/archive-auto-delete) | [Dormancy threshold](../../templates/managing-templates/schedule.md#dormancy-threshold) and [dormancy auto-deletion](../../templates/managing-templates/schedule.md#dormancy-auto-deletion) (Premium) |
|
||||
| Environment limits | [Quotas](../../admin/users/quotas.md) (Premium), which limit workspaces by a per-group budget |
|
||||
| Project creation | [Template permissions](../../templates/template-permissions.md) and [roles](../../admin/users/groups-roles.md) (Premium) |
|
||||
| Editor restrictions | The IDE apps and modules that you include in each template |
|
||||
| Port sharing | [Maximum port sharing level](../../admin/networking/port-forwarding.md#configure-maximum-port-sharing-level) (Premium) |
|
||||
| Default image | The base image or default `devcontainer.json` in each template |
|
||||
| [Security agents](https://ona.com/docs/ona/organizations/policies/security-agents) | The workspace image or template, where you install the security agent |
|
||||
| [Command deny list](https://ona.com/docs/ona/command-deny-list) and executable deny list | [Agent Firewall](../../ai-governance/agent-firewall/index.md) (Premium) for agent network access, and your workspace image for executables |
|
||||
| Ona policy | Coder setting |
|
||||
|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [Auto-stop timeout](https://ona.com/docs/ona/organizations/policies/environment-timeout) | [Autostop and activity detection](../../../workspaces/workspace-scheduling.md), with defaults set in [template scheduling](../../../templates/managing-templates/schedule.md) |
|
||||
| [Maximum environment lifetime](https://ona.com/docs/ona/organizations/policies/environment-lifetime) | [Autostop requirement](../../../templates/managing-templates/schedule.md#autostop-requirement) (Premium) |
|
||||
| [Archive timing and auto-delete](https://ona.com/docs/ona/environments/archive-auto-delete) | [Dormancy threshold](../../../templates/managing-templates/schedule.md#dormancy-threshold) and [dormancy auto-deletion](../../../templates/managing-templates/schedule.md#dormancy-auto-deletion) (Premium) |
|
||||
| Environment limits | [Quotas](../../../admin/users/quotas.md) (Premium), which limit workspaces by a per-group budget |
|
||||
| Project creation | [Template permissions](../../../templates/template-permissions.md) and [roles](../../../admin/users/groups-roles.md) (Premium) |
|
||||
| Editor restrictions | The IDE apps and modules that you include in each template |
|
||||
| Port sharing | [Maximum port sharing level](../../../admin/networking/port-forwarding.md#configure-maximum-port-sharing-level) (Premium) |
|
||||
| Default image | The base image or default `devcontainer.json` in each template |
|
||||
| [Security agents](https://ona.com/docs/ona/organizations/policies/security-agents) | The workspace image or template, where you install the security agent |
|
||||
| [Command deny list](https://ona.com/docs/ona/command-deny-list) and executable deny list | [Agent Firewall](../../../ai-governance/agent-firewall/index.md) (Premium) for agent network access, and your workspace image for executables |
|
||||
|
||||
## Set up editors and dotfiles
|
||||
|
||||
Ona connects editors to environments over SSH.
|
||||
Coder does the same, so developers keep the editors they use today:
|
||||
|
||||
- [Visual Studio Code](../../workspaces/workspace-access/vscode.md), through the Coder extension.
|
||||
- [Cursor](../../workspaces/workspace-access/cursor.md), through the [Cursor module](https://registry.coder.com/modules/coder/cursor).
|
||||
- [JetBrains IDEs](../../workspaces/workspace-access/jetbrains/toolbox.md), through JetBrains Toolbox.
|
||||
- [VS Code in the browser](../../workspaces/workspace-access/web-ides.md), through code-server or VS Code Web.
|
||||
- [Zed](../../workspaces/workspace-access/zed.md) and other SSH editors, after developers run `coder config-ssh`.
|
||||
- [Visual Studio Code](../../../workspaces/workspace-access/vscode.md), through the Coder extension.
|
||||
- [Cursor](../../../workspaces/workspace-access/cursor.md), through the [Cursor module](https://registry.coder.com/modules/coder/cursor).
|
||||
- [JetBrains IDEs](../../../workspaces/workspace-access/jetbrains/toolbox.md), through JetBrains Toolbox.
|
||||
- [VS Code in the browser](../../../workspaces/workspace-access/web-ides.md), through code-server or VS Code Web.
|
||||
- [Zed](../../../workspaces/workspace-access/zed.md) and other SSH editors, after developers run `coder config-ssh`.
|
||||
|
||||
Developers can keep their Ona dotfiles repository.
|
||||
Ona and Coder both clone the repository and run the first install script they find, such as `install.sh`, `bootstrap.sh`, or `setup.sh`.
|
||||
Add the [dotfiles module](https://registry.coder.com/modules/coder/dotfiles) to your templates, then refer developers to [Dotfiles](../../workspaces/workspace-dotfiles.md).
|
||||
Add the [dotfiles module](https://registry.coder.com/modules/coder/dotfiles) to your templates, then refer developers to [Dotfiles](../../../workspaces/workspace-dotfiles.md).
|
||||
|
||||
If your repositories have a "Build with Ona" README button, replace it with an [Open in Coder](../../templates/open-in-coder.md) link.
|
||||
If your repositories have a "Build with Ona" README button, replace it with an [Open in Coder](../../../templates/open-in-coder.md) link.
|
||||
|
||||
## Move agent workloads
|
||||
|
||||
@@ -328,25 +328,25 @@ In Coder, choose one of 2 approaches, or use both:
|
||||
|
||||
- **Coder Agents**: the agent loop runs in the control plane, so workspaces need no agent software or LLM credentials.
|
||||
It works with Anthropic, OpenAI, Google, Azure, AWS Bedrock, and any OpenAI-compatible endpoint.
|
||||
- **Codex CLI in a workspace**: install it with the [Codex module](https://registry.coder.com/modules/coder-labs/codex), and route its traffic through [AI Gateway](../../ai-governance/ai-gateway/clients/codex.md) (Premium) for centralized keys and auditing.
|
||||
- **Codex CLI in a workspace**: install it with the [Codex module](https://registry.coder.com/modules/coder-labs/codex), and route its traffic through [AI Gateway](../../../ai-governance/ai-gateway/clients/codex.md) (Premium) for centralized keys and auditing.
|
||||
|
||||
### Configure Coder Agents
|
||||
|
||||
1. Add your LLM providers and models, as described in [Getting started](../../coder-agents/getting-started.md).
|
||||
1. Add your LLM providers and models, as described in [Getting started](../../../coder-agents/getting-started.md).
|
||||
If your Ona runners used Bedrock or a direct OpenAI integration, you can reuse that account.
|
||||
1. Write clear template descriptions, because Coder Agents uses them to choose a template for each task.
|
||||
1. Set a deployment system prompt and organization instructions in [Platform controls](../../coder-agents/platform-controls/index.md).
|
||||
1. Register the MCP servers from your Ona organization integrations as [MCP servers](../../coder-agents/platform-controls/mcp-servers.md).
|
||||
1. Set a deployment system prompt and organization instructions in [Platform controls](../../../coder-agents/platform-controls/index.md).
|
||||
1. Register the MCP servers from your Ona organization integrations as [MCP servers](../../../coder-agents/platform-controls/mcp-servers.md).
|
||||
1. Keep the `AGENTS.md` files in your repositories.
|
||||
1. Move skills to a location that Coder Agents scans, as listed in [Extending agents](../../coder-agents/extending-agents.md).
|
||||
1. Move skills to a location that Coder Agents scans, as listed in [Extending agents](../../../coder-agents/extending-agents.md).
|
||||
|
||||
Community and Premium licenses allow up to 5 concurrently active agents.
|
||||
If you plan to replace Ona Automations that run many agents at once, review [Licensing and usage](../../coder-agents/licensing-usage.md).
|
||||
If you plan to replace Ona Automations that run many agents at once, review [Licensing and usage](../../../coder-agents/licensing-usage.md).
|
||||
|
||||
### Replace Automations
|
||||
|
||||
Ona Automations start agents from manual, pull request, schedule, and webhook triggers.
|
||||
In Coder, start agents with the [Chats API](../../reference/api/chats.md) from the system that owns the trigger:
|
||||
In Coder, start agents with the [Chats API](../../../reference/api/chats.md) from the system that owns the trigger:
|
||||
|
||||
| Ona trigger | Where to call the Chats API |
|
||||
|--------------|----------------------------------------------|
|
||||
@@ -355,16 +355,16 @@ In Coder, start agents with the [Chats API](../../reference/api/chats.md) from t
|
||||
| Schedule | A scheduled CI job or another scheduler |
|
||||
| Webhook | The service that receives the webhook |
|
||||
|
||||
Authenticate these calls with an API token for a [service account](../../admin/users/headless-auth.md) (Premium).
|
||||
Refer to [Use the API for programmatic automation](../../coder-agents/getting-started.md#use-the-api-for-programmatic-automation) for an example request.
|
||||
Authenticate these calls with an API token for a [service account](../../../admin/users/headless-auth.md) (Premium).
|
||||
Refer to [Use the API for programmatic automation](../../../coder-agents/getting-started.md#use-the-api-for-programmatic-automation) for an example request.
|
||||
|
||||
To start agents from Slack or Linear, call the Chats API from those tools' webhook or automation features.
|
||||
|
||||
## Set up auditing
|
||||
|
||||
Turn on Coder [audit logs](../../admin/security/audit-logs.md) (Premium) to replace Ona audit logs.
|
||||
If you use [AI Gateway](../../ai-governance/ai-gateway/index.md) (Premium), it records prompts, token usage, and tool invocations for each user.
|
||||
[Agent Firewall](../../ai-governance/agent-firewall/index.md) (Premium) also streams agent network activity to the control plane.
|
||||
Turn on Coder [audit logs](../../../admin/security/audit-logs.md) (Premium) to replace Ona audit logs.
|
||||
If you use [AI Gateway](../../../ai-governance/ai-gateway/index.md) (Premium), it records prompts, token usage, and tool invocations for each user.
|
||||
[Agent Firewall](../../../ai-governance/agent-firewall/index.md) (Premium) also streams agent network activity to the control plane.
|
||||
|
||||
Before you close your Ona organization, export any Ona [audit logs](https://ona.com/docs/ona/audit-logs/overview) that you must retain.
|
||||
|
||||
@@ -379,7 +379,7 @@ Before you close your Ona organization, export any Ona [audit logs](https://ona.
|
||||
|
||||
## Learn more
|
||||
|
||||
- [Creating templates](../../templates/creating-templates.md)
|
||||
- [Dev Containers](../../admin/integrations/devcontainers/index.md)
|
||||
- [Coder Agents](../../coder-agents/index.md)
|
||||
- [Security best practices](../../admin/security/security-best-practices.md)
|
||||
- [Creating templates](../../../templates/creating-templates.md)
|
||||
- [Dev Containers](../../../admin/integrations/devcontainers/index.md)
|
||||
- [Coder Agents](../../../coder-agents/index.md)
|
||||
- [Security best practices](../../../admin/security/security-best-practices.md)
|
||||
Generated
+15
-3
@@ -82,9 +82,21 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Migrate from Ona (formerly Gitpod)",
|
||||
"description": "Move an Ona Enterprise deployment, including runners, projects, policies, and agents, to a self-hosted Coder deployment.",
|
||||
"path": "./install/plan/migrate-from-ona.md"
|
||||
"title": "Migrate to Coder",
|
||||
"description": "Move developer environments from another platform to a self-hosted Coder deployment.",
|
||||
"path": "./install/plan/migrate.md",
|
||||
"children": [
|
||||
{
|
||||
"title": "Migrate from Ona (formerly Gitpod)",
|
||||
"description": "Move an Ona Enterprise deployment, including runners, projects, policies, and agents, to a self-hosted Coder deployment.",
|
||||
"path": "./install/plan/migrate/ona.md"
|
||||
},
|
||||
{
|
||||
"title": "Migrate from Microsoft Dev Box",
|
||||
"description": "Move Microsoft Dev Box dev centers, projects, and pools to Coder templates, with Windows workspaces on Azure.",
|
||||
"path": "./install/plan/migrate/dev-box.md"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -7,6 +7,4 @@ children:
|
||||
description: Learn about Coder's architecture and the components that make up a deployment.
|
||||
path: ./install/plan/architecture.md
|
||||
- include: install/plan/sizing.yml
|
||||
- title: Migrate from Ona (formerly Gitpod)
|
||||
description: Move an Ona Enterprise deployment, including runners, projects, policies, and agents, to a self-hosted Coder deployment.
|
||||
path: ./install/plan/migrate-from-ona.md
|
||||
- include: install/plan/migrate.yml
|
||||
@@ -0,0 +1,10 @@
|
||||
title: Migrate to Coder
|
||||
description: Move developer environments from another platform to a self-hosted Coder deployment.
|
||||
path: ./install/plan/migrate.md
|
||||
children:
|
||||
- title: Migrate from Ona (formerly Gitpod)
|
||||
description: Move an Ona Enterprise deployment, including runners, projects, policies, and agents, to a self-hosted Coder deployment.
|
||||
path: ./install/plan/migrate/ona.md
|
||||
- title: Migrate from Microsoft Dev Box
|
||||
description: Move Microsoft Dev Box dev centers, projects, and pools to Coder templates, with Windows workspaces on Azure.
|
||||
path: ./install/plan/migrate/dev-box.md
|
||||
@@ -63,6 +63,10 @@
|
||||
"source": "architecture/3k-users",
|
||||
"destination": "install/plan/sizing/3k-users"
|
||||
},
|
||||
{
|
||||
"source": "install/plan/migrate-from-ona",
|
||||
"destination": "install/plan/migrate/ona"
|
||||
},
|
||||
{
|
||||
"source": "install/database",
|
||||
"destination": "install/server/external-database"
|
||||
|
||||
Reference in new issue
Block a user