Skip to content

Commit d394ef9

Browse files
committed
Updated document
1 parent 4650620 commit d394ef9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/virtual-machines/extensions/issues-using-vm-extensions-python-3.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ ms.assetid: 3cd520fd-eaf7-4ef9-b4d3-4827057e5028
2424
> ![NOTE]
2525
> Microsoft encourages users to adopt **Python 3.x** in their systems unless your workload requires **Python 2.x** support. Examples of this requirement might include legacy administration scripts, or extensions such as **Azure Disk Encryption** and **Azure Monitor**.
2626
>
27-
> Before installing **Python 2.x** in production, consider the question of long-term support of Python 2.x, particularly their ability to receive security updates. As products, including Microsoft products, update with **Python 3.8** support, you should discontinue use of Python 2.x.
27+
> Before installing **Python 2.x** in production, consider the question of long-term support of Python 2.x, particularly their ability to receive security updates. As products, including some of the extension mentioned, update with **Python 3.8** support, you should discontinue use of Python 2.x.
2828
2929
Some Linux distributions have transitioned to Python 3.8 and removed the legacy `/usr/bin/python` entrypoint for Python altogether. This transition impacts the out-of-the-box, automated deployment of certain virtual machine (VM) extensions with the following conditions:
3030

31-
- You are still working on Python 3.x support in their roadmap
32-
- You use the legacy `/usr/bin/python` entrypoint
31+
- Extensions that are still transitioning to Python 3.x support
32+
- Extensions that use the legacy `/usr/bin/python` entrypoint
3333

34-
Linux distribution users who have transitioned to **Python 3.x** must remove the legacy `/usr/bin/python` entrypoint before attempting to deploy those extensions to their VMs. Otherwise, the extension deployment might fail.
34+
Linux distribution users who have transitioned to **Python 3.x** must ensure the legacy `/usr/bin/python` entrypoint exists before attempting to deploy those extensions to their VMs. Otherwise, the extension deployment might fail.
3535

3636
- Endorsed Linux distributions that are affected include **Ubuntu Server 20.04 LTS** and **Ubuntu Pro 20.04 LTS**.
3737

@@ -43,11 +43,11 @@ In-place upgrades, such as upgrading from **Ubuntu 18.04 LTS** to **Ubuntu 20.04
4343

4444
Consider the following general recommendations before deploying extensions in the known-affected scenarios described previously in the Summary:
4545

46-
1. Before deploying the extension, reinstate the `/usr/bin/python` symlink by installing vendor-provided packages.
46+
1. Before deploying the extension, reinstate the `/usr/bin/python` symlink by using the Linux distribution vendor-provided method.
4747

4848
- For example, for **Python 2.7**, use: `sudo apt update && sudo apt install python-is-python2`
4949

50-
2. If you’ve already deployed an instance with this problem, use the **Run command** functionality in the **VM blade** to run the commands mentioned above. The Run command extension itself is not affected by the transition to Python 3.8.
50+
2. If you’ve already deployed an instance that exhibits this problem, use the **Run command** functionality in the **VM blade** to run the commands mentioned above. The Run command extension itself is not affected by the transition to Python 3.8.
5151

5252
3. If you are deploying a new instance, and need to set an extension at provisioning time, use **cloud-init** user data to install the packages mentioned above.
5353

@@ -86,8 +86,6 @@ Consider the following general recommendations before deploying extensions in th
8686
},
8787
```
8888

89-
See [VMs without WALinuxAgent](https://github.com/Azure/WALinuxAgent/wiki/VMs-without-WALinuxAgent#disable-extension-operations) for additional details.
90-
9189
## More Information
9290

9391
[Other base system changes since 18.04 LTS - Python 3 by default](https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Python3_by_default)

0 commit comments

Comments
 (0)