Skip to content

Commit b8af66d

Browse files
committed
add example for specialized windows image
1 parent 425eab9 commit b8af66d

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

docs/custom-images/cloud-custom-images.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ runners:
187187

188188
## Azure Custom Images
189189

190-
For making custom images in Azure user needs to just capture an existing VM and create the image in a resource group.
190+
For making custom images in Azure you need to just capture an existing VM and create the image in a resource group.
191191

192192
### Nginx Ubuntu custom image
193193

@@ -208,13 +208,13 @@ Let's take an example of how to create a custom image on Azure. We will make a u
208208
```
209209
8. The above command shows all the custom images available on your Azure. It also shows "id" for all custom images. This is the parameter we use to make VM with a custom image.
210210
211-
### Azure custom image vm `.cirun.yml`
211+
### Azure custom image VM `.cirun.yml`
212212
213213
The .cirun.yml for above custom image will look like
214214
215215
```yml
216216
# Self-Hosted Github Action Runners on Azure via Cirun.io
217-
# Reference: https://docs.cirun.io/Reference/yml.html
217+
# Reference: https://docs.cirun.io/reference/yaml
218218
runners:
219219
- name: "azure-runner"
220220
# Cloud Provider: Azure
@@ -226,6 +226,24 @@ runners:
226226
- "cirun-gpu-runner"
227227
```
228228

229+
### Azure custom specialized image VM `.cirun.yml`
230+
231+
We also support specialized custom image on Azure, here is an example for runner configuration
232+
for a specialized image Windows runner:
233+
234+
```yml
235+
# Self-Hosted Github Action Runners on Azure via Cirun.io
236+
# Reference: https://docs.cirun.io/reference/yaml
237+
runners:
238+
- name: azure-windows-runner
239+
cloud: azure
240+
region: uksouth
241+
instance_type: Standard_D2s_v3
242+
machine_image: "/subscriptions/7b9d1535-2655-4887-a82c-accb37d605a8/resourceGroups/specialized-vm_group/providers/Microsoft.Compute/galleries/base_images/images/win11-23h2-pro-x64/versions/2024.02.27"
243+
labels:
244+
- cirun-runner
245+
```
246+
229247
## Openstack Custom Images
230248
231249
In OpenStack only cirros image is provided by default, this image is not suitable for the runners to run the jobs. To build a custom image we need to download a cloud image and create an Openstack image from it. Here we will create a `ubuntu-20.04` cloud image.

0 commit comments

Comments
 (0)