You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/no-agent.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,32 +20,32 @@ ms.reviewer: mattmcinnes
20
20
21
21
Microsoft Azure provides provisioning agents for Linux VMs in the form of the [walinuxagent](https://github.com/Azure/WALinuxAgent) or [cloud-init](https://github.com/canonical/cloud-init) (recommended). But there could be a scenario when you don't want to use either of these applications for your provisioning agent, such as:
22
22
23
-
- Your Linux distro/version does not support cloud-init/Linux Agent.
23
+
- Your Linux distro/version doesn't support cloud-init/Linux Agent.
24
24
- You require specific VM properties to be set, such as hostname.
25
25
26
26
> [!NOTE]
27
27
>
28
28
> If you do not require any properties to be set or any form of provisioning to happen you should consider creating a specialized image.
29
29
30
-
This article shows how you can setup your VM image to satisfy the Azure platform requirements and set the hostname, without installing a provisioning agent.
30
+
This article shows how you can set up your VM image to satisfy the Azure platform requirements and set the hostname, without installing a provisioning agent.
31
31
32
32
## Networking and reporting ready
33
33
34
-
In order to have your Linux VM communicating with Azure components, you will require a DHCP client to retrieve a host IP from the virtual network, as well as DNS resolution and route management. Most distros ship with these utilities out-of-the-box. Tools that have been tested on Azure by Linux distro vendors include `dhclient`, `network-manager`, `systemd-networkd` and others.
34
+
In order to have your Linux VM communicate with Azure components, a DHCP client is required. The client is used to retrieve a host IP, DNS resolution, and route management from the virtual network. Most distros ship with these utilities out-of-the-box. Tools that are tested on Azure by Linux distro vendors include `dhclient`, `network-manager`, `systemd-networkd` and others.
35
35
36
36
> [!NOTE]
37
37
>
38
38
> Currently creating generalized images without a provisioning agent only supports DHCP-enabled VMs.
39
39
40
-
After networking has been setup and configured, you must "report ready". This will tell Azure that the VM has been successfully provisioning.
40
+
After networking has been set up and configured, select "report ready". This tells Azure that the VM has been successfully provisioned.
41
41
42
42
> [!IMPORTANT]
43
43
>
44
44
> Failing to report ready to Azure will result in your VM being rebooted!
45
45
46
46
## Demo/sample
47
47
48
-
This demo will show how you can take an existing Marketplace image (in this case, a Debian Buster VM) and remove the Linux Agent (walinuxagent), but also creating the most basic process to report to Azure that the VM is "ready".
48
+
An existing Marketplace image (in this case, a Debian Buster VM) with the Linux Agent (walinuxagent) removed and a custom python script added is the easiest way to tell Azure that the VM is "ready".
49
49
50
50
### Create the resource group and base VM:
51
51
@@ -300,7 +300,7 @@ $ az image create \
300
300
--name demo1img
301
301
```
302
302
303
-
Now we are ready to create a new VM from the image. This can also be used to create multiple VMs:
303
+
Now we're ready to create a new VM from the image. This can also be used to create multiple VMs:
304
304
305
305
```azurecli
306
306
$ IMAGE_ID=$(az image show -g demo1 -n demo1img --query id -o tsv)
@@ -318,7 +318,7 @@ $ az vm create \
318
318
>
319
319
> It is important to set `--enable-agent` to `false` because walinuxagent doesn't exist on this VM that is going to be created from the image.
320
320
321
-
This VM should provisioning successfully. Logging into the newly-provisioning VM, you should be able to see the output of the report ready systemd service:
321
+
The VM should be provisioned successfully. After Logging into the newly-provisioning VM, you should be able to see the output of the report ready systemd service:
322
322
323
323
```bash
324
324
$ sudo journalctl -u azure-provisioning.service
@@ -340,7 +340,7 @@ Jun 11 20:28:56 thstringnopa2 systemd[1]: Started Azure Provisioning.
340
340
341
341
## Support
342
342
343
-
If you implement your own provisioning code/agent, then you own the support of this code, Microsoft support will only investigate issues relating to the provisioning interfaces not being available. We are continually making improvements and changes in this area, so you must monitor for changes in cloud-init and Azure Linux Agent for provisioning API changes.
343
+
If you implement your own provisioning code/agent, then you own the support of this code, Microsoft support will only investigate issues relating to the provisioning interfaces not being available. We're continually making improvements and changes in this area, so you must monitor for changes in cloud-init and Azure Linux Agent for provisioning API changes.
0 commit comments