This package is for the 'connectedmachine' extension, i.e. 'az connectedmachine'.
In order to use this extension, first follow the quick start for Hybrid Compute and onboard your machine(s).
Install this extension using the below CLI command
az extension add --name connectedmachine
Examples:
az connectedmachine show \
--subscription subscription_id \
--resource-group my-rg \
--name my-cluster
az connectedmachine list --resource-group my-rg
az connectedmachine delete \
--subscription subscription_id \
--resource-group my-rg \
--name my-machine
Examples:
az connectedmachine extension create \
--machine-name "myMachine" \
--name "customScriptExtension" \
--location "eastus2euap" \
--type "CustomScriptExtension" \
--publisher "Microsoft.Compute" \
--settings "{\"commandToExecute\":\"powershell.exe -c \\\"Get-Process | Where-Object { $_.CPU -gt 10000 }\\\"\"}" \
--type-handler-version "1.10" \
--resource-group "myResourceGroup"
az connectedmachine extension list \
--machine-name "myMachine" \
--resource-group "myResourceGroup"
az connectedmachine extension show \
--machine-name "myMachine" \
--name "CustomScriptExtension" \
--resource-group "myResourceGroup"
az connectedmachine extension update \
--machine-name "myMachine" \
--name "CustomScriptExtension" \
--type "CustomScriptExtension" \
--publisher "Microsoft.Compute" \
--settings "{\"commandToExecute\":\"powershell.exe -c \\\"Get-Process | Where-Object { $_.CPU -lt 100 }\\\"\"}" \ --type-handler-version "1.10" \
--resource-group "myResourceGroup"
az connectedmachine extension delete \
--machine-name "myMachine" \
--name "MMA" \
--resource-group "myResourceGroup"