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/automanage/tutorial-create-assignment-python.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ In this tutorial, you'll create a resource group and a virtual machine. You'll t
18
18
-[Python](https://www.python.org/downloads/)
19
19
-[Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli-windows?tabs=azure-cli) or [Azure PowerShell](https://docs.microsoft.com/powershell/azure/install-az-ps)
## Assign Best Practices Profile to Virtual Machine
78
+
## Assign best practices profile to virtual machine
79
79
80
80
Now that we've successfully created a resource group and a virtual machine, it's time to set up a Python project and assign an Automanage Best Practices configuration profile to the newly created virtual machine.
81
81
82
-
### Install Python Packages
82
+
### Install Python packages
83
83
84
84
Install the Azure Identity and Azure Automanage packages using `pip`:
Create an `app.py` file and import the installed packages within it:
94
94
@@ -105,7 +105,7 @@ rg = "test-rg"
105
105
vm ="testvm"
106
106
```
107
107
108
-
### Authenticate to Azure & Create an Automanage Client
108
+
### Authenticate to Azure and create an Automanage client
109
109
110
110
Use the **DefaultAzureCredential** within the `azure-identity` package to **authenticate** to Azure. Then, use the credential to create an **Automanage Client**.
For more information on the Automanage Python SDK, please visit the [azure-samples-python-management repo](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/automanage).
0 commit comments