Skip to content

Commit db5a6ad

Browse files
Merge pull request #226275 from Padmalathas/Padmalathas-patch-3
Replace EOL'd linux version distros
2 parents ef4c5f4 + 3c4bbe4 commit db5a6ad

File tree

1 file changed

+27
-32
lines changed

1 file changed

+27
-32
lines changed

articles/virtual-machines/extensions/update-linux-agent.md

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.subservice: extensions
77
ms.author: gabsta
88
author: MsGabsta
99
ms.collection: linux
10-
ms.date: 08/02/2017
10+
ms.date: 02/03/2023
1111

1212
---
1313
# How to update the Azure Linux Agent on a VM
@@ -20,7 +20,7 @@ To update your [Azure Linux Agent](https://github.com/Azure/WALinuxAgent) on a L
2020
You should always check for a package in the Linux distro repository first. It is possible the package available may not be the latest version, however, enabling autoupdate will ensure the Linux Agent will always get the latest update. Should you have issues installing from the package managers, you should seek support from the distro vendor.
2121

2222
> [!NOTE]
23-
> For more information see [Endorsed Linux distributions on Azure](../linux/endorsed-distros.md)
23+
> For more information, see [Endorsed Linux distributions on Azure](../linux/endorsed-distros.md)
2424
2525
Verify the [Minimum version support for virtual machine agents in Azure](https://support.microsoft.com/help/4049215/extensions-and-virtual-machine-agent-minimum-version-support) before proceeding.
2626

@@ -45,13 +45,13 @@ Install the latest package version
4545
sudo apt-get install walinuxagent
4646
```
4747

48-
Ensure auto update is enabled. First, check to see if it is enabled:
48+
Ensure auto update is enabled. First, check to see if it's enabled:
4949

5050
```bash
5151
cat /etc/waagent.conf
5252
```
5353

54-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
54+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
5555

5656
```bash
5757
# AutoUpdate.Enabled=y
@@ -64,21 +64,16 @@ To enable run:
6464
sudo sed -i 's/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g' /etc/waagent.conf
6565
```
6666

67-
Restart waagengt service for 14.04
67+
Restart waagent service for 22.04
6868

6969
```bash
70-
initctl restart walinuxagent
70+
sudo service walinuxagent restart
7171
```
7272

73-
Restart waagent service for 16.04 / 17.04
74-
75-
```bash
76-
systemctl restart walinuxagent.service
77-
```
7873

7974
## Red Hat / CentOS
8075

81-
### RHEL/CentOS 6
76+
### RHEL/CentOS 7.9
8277

8378
Check your current package version
8479

@@ -100,13 +95,13 @@ sudo yum install WALinuxAgent
10095

10196
Ensure auto update is enabled
10297

103-
First, check to see if it is enabled:
98+
First, check to see if it's enabled:
10499

105100
```bash
106101
cat /etc/waagent.conf
107102
```
108103

109-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
104+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
110105

111106
```bash
112107
# AutoUpdate.Enabled=y
@@ -145,13 +140,13 @@ Install the latest package version
145140
sudo yum install WALinuxAgent
146141
```
147142

148-
Ensure auto update is enabled. First, check to see if it is enabled:
143+
Ensure auto update is enabled. First, check to see if it's enabled:
149144

150145
```bash
151146
cat /etc/waagent.conf
152147
```
153148

154-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
149+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
155150

156151
```bash
157152
# AutoUpdate.Enabled=y
@@ -172,7 +167,7 @@ sudo systemctl restart waagent.service
172167

173168
## SUSE SLES
174169

175-
### SUSE SLES 11 SP4
170+
### SUSE SLES 15 SP4
176171

177172
Check your current package version
178173

@@ -190,13 +185,13 @@ sudo zypper install python-azure-agent
190185

191186
Ensure auto update is enabled
192187

193-
First, check to see if it is enabled:
188+
First, check to see if it's enabled:
194189

195190
```bash
196191
cat /etc/waagent.conf
197192
```
198193

199-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
194+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
200195

201196
```bash
202197
# AutoUpdate.Enabled=y
@@ -215,7 +210,7 @@ Restart the waagent service
215210
sudo /etc/init.d/waagent restart
216211
```
217212

218-
### SUSE SLES 12 SP2
213+
### SUSE SLES 12 SP5
219214

220215
Check your current package version
221216

@@ -235,13 +230,13 @@ sudo zypper install python-azure-agent
235230

236231
Ensure auto update is enabled
237232

238-
First, check to see if it is enabled:
233+
First, check to see if it's enabled:
239234

240235
```bash
241236
cat /etc/waagent.conf
242237
```
243238

244-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
239+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
245240

246241
```bash
247242
# AutoUpdate.Enabled=y
@@ -262,7 +257,7 @@ sudo systemctl restart waagent.service
262257

263258
## Debian
264259

265-
### Debian 7 “Jesse”/ Debian 7 "Stretch"
260+
### Debian 11 "Bullseye"
266261

267262
Check your current package version
268263

@@ -282,10 +277,10 @@ Install the latest package version
282277
sudo apt-get install waagent
283278
```
284279

285-
Enable agent auto update
286-
This version of Debian does not have a version >= 2.0.16, therefore AutoUpdate is not available for it. The output from the above command will show you if the package is up-to-date.
280+
Enable agent auto update.
281+
This version of Debian doesn't have a version >= 2.0.16, therefore AutoUpdate isn't available for it. The output from the above command will show you if the package is up-to-date.
287282

288-
### Debian 8 “Jessie” / Debian 9 “Stretch
283+
### Debian 9 “Stretch” / Debian 10 “Buster
289284

290285
Check your current package version
291286

@@ -306,13 +301,13 @@ sudo apt-get install waagent
306301
```
307302

308303
Ensure auto update is enabled
309-
First, check to see if it is enabled:
304+
First, check to see if it's enabled:
310305

311306
```bash
312307
cat /etc/waagent.conf
313308
```
314309

315-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
310+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
316311

317312
```bash
318313
AutoUpdate.Enabled=y
@@ -337,7 +332,7 @@ Then, to install the latest version of the Azure Linux Agent, type:
337332
sudo yum install WALinuxAgent
338333
```
339334

340-
If you don't find the add-on repository you can simply add these lines at the end of your .repo file according to your Oracle Linux release:
335+
If you don't find the add-on repository, you can simply add these lines at the end of your `.repo` file according to your Oracle Linux release:
341336

342337
For Oracle Linux 6 virtual machines:
343338

@@ -401,13 +396,13 @@ You may need to install the package `setuptools` first--see [setuptools](https:/
401396
sudo python setup.py install
402397
```
403398

404-
Ensure auto update is enabled. First, check to see if it is enabled:
399+
Ensure auto update is enabled. First, check to see if it's enabled:
405400

406401
```bash
407402
cat /etc/waagent.conf
408403
```
409404

410-
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
405+
Find 'AutoUpdate.Enabled'. If you see this output, it's enabled:
411406

412407
```bash
413408
# AutoUpdate.Enabled=y
@@ -447,6 +442,6 @@ waagent -version
447442

448443
For CoreOS, the above command may not work.
449444

450-
You will see that the Azure Linux Agent version has been updated to the new version.
445+
You'll see that the Azure Linux Agent version has been updated to the new version.
451446

452447
For more information regarding the Azure Linux Agent, see [Azure Linux Agent README](https://github.com/Azure/WALinuxAgent).

0 commit comments

Comments
 (0)