Skip to content

Commit 4a6517c

Browse files
[Doc-a-thon] Updating diagnostics-linux-v3
Removing ubuntu specific commands to make the doc Linux Agnostic
1 parent c6a2480 commit 4a6517c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/virtual-machines/extensions/diagnostics-linux-v3.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ Supported distributions and versions:
7070

7171
* **Azure Linux Agent version 2.2.0 or later**. Most Azure VM Linux gallery images include version 2.2.7 or later. Run `/usr/sbin/waagent -version` to confirm the version installed on the VM. If the VM is running an older version, [Update the guest agent](./update-linux-agent.md).
7272
* The **Azure CLI**. If necessary, [set up the Azure CLI](/cli/azure/install-azure-cli) environment on your machine.
73-
* The **wget command**. If you don't already have it, run `sudo apt-get install wget`.
73+
* The **wget command**. If you don't already have it, install it using the corresponding package manager.
7474
* An existing **Azure subscription**.
7575
* An existing **general purpose storage account** to store the data. General purpose storage accounts must support table storage. A blob storage account won't work.
7676
* **Python 2**.
7777

7878
### Python requirement
7979

80-
The Linux diagnostic extension requires Python 2. If your virtual machine uses a distribution that doesn't include Python 2 by default, you must install it. The following sample commands install Python 2 on various distributions:
80+
The Linux diagnostic extension requires Python 2. If your virtual machine uses a distribution that doesn't include Python 2 by default, you must install it. The following sample commands install Python 2 on various distributions:
8181

8282
- Red Hat, CentOS, Oracle: `yum install -y python2`
8383
- Ubuntu, Debian: `apt-get install -y python2`
@@ -87,13 +87,13 @@ The `python2` executable file must be aliased to *python*. Here's one method to
8787

8888
1. Run the following command to remove any existing aliases.
8989

90-
```
90+
```bash
9191
sudo update-alternatives --remove-all python
9292
```
9393

9494
2. Run the following command to create the alias.
9595

96-
```
96+
```bash
9797
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
9898
```
9999

@@ -104,7 +104,7 @@ The sample configuration downloaded in the following examples collects a set of
104104
In most cases, you should download a copy of the portal settings JSON file and customize it for your needs. Then use templates or your own automation to use a customized version of the configuration file rather than downloading from the URL each time.
105105

106106
> [!NOTE]
107-
> For the following samples, fill in the correct values for the variables in the first section before you run the code.
107+
> For the following samples, fill in the correct values for the variables in the first section before you run the code.
108108
#### Azure CLI sample
109109

110110
```azurecli

0 commit comments

Comments
 (0)