Get-NMMAccount¶
Lists or retrieves NMM accounts.
Syntax¶
Description¶
The Get-NMMAccount cmdlet retrieves NMM accounts. Without parameters, it returns all accounts. Use -AccountId to get a specific account or -Name to filter by name pattern.
Parameters¶
-AccountId¶
The ID of a specific account to retrieve.
| Type | Int32 |
| Required | False |
| Aliases | id |
-Name¶
Filter accounts by name (supports wildcards).
| Type | String |
| Required | False |
Examples¶
Example 1: Get all accounts¶
Returns all NMM accounts.
Example 2: Get specific account by ID¶
Example 3: Filter by name¶
Returns accounts with names starting with "Contoso".
Outputs¶
PSCustomObject[]
| Property | Type | Description |
|---|---|---|
| id | Int32 | Account ID |
| name | String | Account name |
| tenantId | String | Azure AD tenant ID |
| subscriptionId | String | Azure subscription ID |
Notes¶
- This cmdlet is typically the starting point for pipeline operations
- Account IDs are required for most other cmdlets