Skip to content

Commit e9e30da

Browse files
authored
Merge pull request #209637 from SnehaSudhirG/30Aug-HRWExtension
Manage Hybrid Worker Extension using Azure CLI and New article
2 parents d87a7d9 + 3e065ea commit e9e30da

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

articles/automation/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
href: troubleshoot/runbooks.md
169169
- name: Data to collect when opening a case for Microsoft Azure Automation
170170
href: troubleshoot/collect-data-microsoft-azure-automation-case.md
171-
- name: Work with a Hybrid Runbook Worker
171+
- name: Work with Hybrid Runbook Worker
172172
items:
173173
- name: Deploy extension-based worker
174174
href: extension-based-hybrid-runbook-worker-install.md

articles/automation/extension-based-hybrid-runbook-worker-install.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,13 @@ You can delete an empty Hybrid Runbook Worker group from the portal.
257257

258258
The hybrid worker group will be deleted.
259259

260-
## Use Azure Resource Manager template
260+
## Manage Hybrid Worker extension using ARM template, REST API, and Azure CLI
261+
262+
#### [ARM template](#tab/arm-template)
261263

262264
You can use an Azure Resource Manager (ARM) template to create a new Azure Windows VM and connect it to an existing Automation account and Hybrid Worker Group. To learn more about ARM templates, see [What are ARM templates?](../azure-resource-manager/templates/overview.md)
263265

264-
### Review the template
266+
**Review the template**
265267

266268
```json
267269
{
@@ -546,7 +548,7 @@ The following Azure resources are defined in the template:
546548
- [hybridRunbookWorkerGroups/hybridRunbookWorkers](/azure/templates/microsoft.automation/automationaccounts/hybridrunbookworkergroups/hybridrunbookworkers)
547549
- [Microsoft.Compute/virtualMachines/extensions](/azure/templates/microsoft.compute/virtualmachines/extensions)
548550

549-
### Review parameters
551+
**Review parameters**
550552

551553
Review the parameters used in this template.
552554

@@ -563,14 +565,14 @@ Review the parameters used in this template.
563565
| osVersion | The OS for the new Windows VM. The default value is `2019-Datacenter`. |
564566
| dnsNameForPublicIP | The DNS name for the public IP. |
565567

568+
569+
#### [REST API](#tab/rest-api)
566570

567-
## Install Hybrid worker extension using REST API
568-
569-
### Prerequisites
571+
**Prerequisites**
570572

571573
You would require an Azure VM or Arc-enabled server. You can follow the steps [here](../azure-arc/servers/onboard-portal.md) to create an Arc connected machine.
572574

573-
### Install and use Hybrid Worker extension using REST API
575+
**Install and use Hybrid Worker extension**
574576

575577
To install and use Hybrid Worker extension using REST API, follow these steps. The West Central US region is considered in this example.
576578

@@ -676,6 +678,14 @@ To install and use Hybrid Worker extension using REST API, follow these steps. T
676678
```
677679
Response of the *PUT* call will confirm if the extension is successfully installed or not on the targeted VM. You can also go to the VM in the Azure portal, and check status of extensions installed on the target VM under **Extensions** tab.
678680
681+
#### [Azure CLI](#tab/cli)
682+
683+
**Manage Hybrid Worker Extension**
684+
685+
- To create, delete, and manage extension-based Hybrid Runbook Worker groups, see [az automation hrwg | Microsoft Docs](/cli/azure/automation/hrwg?view=azure-cli-latest)
686+
- To create, delete, and manage extension-based Hybrid Runbook Worker, see [az automation hrwg hrw | Microsoft Docs](/cli/azure/automation/hrwg/hrw?view=azure-cli-latest)
687+
688+
---
679689
680690
## Manage Role permissions for Hybrid Worker Groups and Hybrid Workers
681691

0 commit comments

Comments
 (0)