Skip to content

Commit dc57fce

Browse files
authored
Remove CLI/SDK for now
1 parent 6970b60 commit dc57fce

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

articles/machine-learning/how-to-create-manage-compute-instance.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -679,36 +679,11 @@ Once a compute instance is deployed, it does not get automatically updated. Micr
679679
680680
To keep track of whether a compute instance's operating system version is current, you could query an instance's version using the Studio UI, CLI and SDK.
681681
682-
# [Python SDK](#tab/python)
683-
684-
[!INCLUDE [sdk v2](../../includes/machine-learning-sdk-v2.md)]
685-
686-
```python
687-
from azure.ai.ml.entities import ComputeInstance, AmlCompute
688-
689-
# Display operating system version
690-
instance = ml_client.compute.get("myci")
691-
print instance.os_image_metadata
692-
```
693-
694-
For more information on the classes, methods, and parameters used in this example, see the following reference documents:
695-
696-
* [`AmlCompute` class](/python/api/azure-ai-ml/azure.ai.ml.entities.amlcompute)
697-
* [`ComputeInstance` class](/python/api/azure-ai-ml/azure.ai.ml.entities.computeinstance)
698-
699-
# [Azure CLI](#tab/azure-cli)
700-
701-
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]
702-
703-
```azurecli
704-
az ml compute show --name "myci"
705-
```
706-
707682
# [Studio](#tab/azure-studio)
708683
709684
In your workspace in Azure Machine Learning studio, select Compute, then select compute instance on the top. Select a compute instance's compute name to see its properties including the current operating system. When a more recent instance OS version is, use the creation wizard to create a new instance. Enable 'audit and observe compute instance os version' under the previews management panel to see these preview properties.
710685
711-
---
686+
# [Azure Policy](#tab-azure-policy)
712687
713688
Administrators can use [Azure Policy](./../governance/policy/overview.md) definitions to audit instances that are running on outdated operating system versions across workspaces and subscriptions. The following is a sample policy:
714689
@@ -739,6 +714,8 @@ Administrators can use [Azure Policy](./../governance/policy/overview.md) defini
739714
}
740715
```
741716

717+
---
718+
742719
## Next steps
743720

744721
* [Access the compute instance terminal](how-to-access-terminal.md)

0 commit comments

Comments
 (0)