Get-NMMScriptedAction¶
Lists scripted actions.
Syntax¶
Description¶
The Get-NMMScriptedAction cmdlet retrieves scripted actions (PowerShell scripts) that can be executed on host pools or session hosts.
Parameters¶
-AccountId¶
The NMM account ID (required for Account scope).
| Type | Int32 |
| Required | False |
| Pipeline Input | True (ByPropertyName) |
-Scope¶
The scope of scripted actions to retrieve.
| Type | String |
| Required | True |
| Valid Values | Account, Global |
Examples¶
Example 1: Get account-scoped actions¶
Example 2: Get global actions¶
Outputs¶
PSCustomObject[]
| Property | Type | Description |
|---|---|---|
| id | Int32 | Action ID |
| name | String | Action name |
| description | String | Action description |
| scriptType | String | PowerShell, AzureCLI |
| scope | String | Account or Global |
| enabled | Boolean | Action enabled |