Skip to content

Commit 4342e05

Browse files
committed
add azure
1 parent deabf17 commit 4342e05

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

examples/templates/azure-linux/README.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,35 @@ verified: true
77
tags: [vm, linux, azure]
88
---
99

10-
# azure-linux
10+
# Remote Development on Azure VMs (Windows)
1111

12-
To get started, run `coder templates init`. When prompted, select this template.
13-
Follow the on-screen instructions to proceed.
12+
Provision AWS EC2 VMs as [Coder workspaces](https://coder.com/docs/coder-v2/latest) with this example template.
1413

15-
## Authentication
14+
<!-- TODO: Add screenshot -->
15+
16+
## Prerequisites
17+
18+
### Authentication
1619

1720
This template assumes that coderd is run in an environment that is authenticated
1821
with Azure. For example, run `az login` then `az account set --subscription=<id>`
1922
to import credentials on the system and user running coderd. For other ways to
20-
authenticate [consult the Terraform docs](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#authenticating-to-azure).
23+
authenticate, [consult the Terraform docs](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#authenticating-to-azure).
24+
25+
## Architecture
26+
27+
> **Note**
28+
> This template is designed to be a starting point! Edit the Terraform to extend the template to support your use case.
29+
30+
This template provisions the following resources:
31+
32+
- Azure VM (ephemeral, deleted on stop)
33+
- Managed disk (persistent, mounted to `/home/coder`)
34+
35+
This means, when the workspace restarts, any tools or files outside of the home directory are not persisted. To pre-bake tools into the workspace (e.g. `python3`), modify the VM image, or use a [startup script](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/script). Alternatively, individual developers can [personalize](https://coder.com/docs/v2/latest/dotfiles) their workspaces with dotfiles.
36+
37+
## code-server
38+
39+
`code-server` is installed via the `startup_script` argument in the `coder_agent`
40+
resource block. The `coder_app` resource is defined to access `code-server` through
41+
the dashboard UI over `localhost:13337`.

0 commit comments

Comments
 (0)