Skip to content

Update Unregister-AzAutomationDscNode.md #23986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/Automation/Automation/help/Unregister-AzAutomationDscNode.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ Unregister-AzAutomationDscNode -AutomationAccountName "Contoso17" -ResourceGroup

This command removes the DSC node that has the specified GUID from management by the Automation account named Contoso17.

### Example 2: Remove an Azure DSC node from management by an Automation account by specifying the DSC node name

```powershell
$dscNodeNameToRemove = "MyMachine1"
$automationAccountName = "Contoso17"
$resourceGroupName = "ResourceGroup01"
$nodeToRemove = Get-AzAutomationDscNode -Name $dscNodeNameToRemove -AutomationAccountName $automationAccountName -ResourceGroupName $resourceGroupName
$nodeToRemove | Unregister-AzAutomationDscNode -AutomationAccountName $automationAccountName -ResourceGroupName $resourceGroupName
```

This command removes the DSC node that has the name "MyMachine1" from management by the Automation account named Contoso17.

## PARAMETERS

### -AutomationAccountName
Expand Down Expand Up @@ -161,5 +173,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
[Register-AzAutomationDscNode](./Register-AzAutomationDscNode.md)

[Set-AzAutomationDscNode](./Set-AzAutomationDscNode.md)