Test-PAMNamingStandard
Validates a safe name (or a set of segments) against the naming standard without creating anything.
Syntax
Section titled “Syntax”Parameter set Name (default):
Test-PAMNamingStandard [-Name] <string> [-ShowBudget] [-ConfigPath <string>] [-ConfigProfile <string>]Parameter set Segments:
Test-PAMNamingStandard -App <string> -Technology <string> -SubType <string> -AccountType <string> -Environment <string> -SafeType <string> [-ShowBudget] [-ConfigPath <string>] [-ConfigProfile <string>]Parameter set Personal:
Test-PAMNamingStandard -SamAccountName <string> -SafeType <string> [-Location <string>] [-ShowBudget] [-ConfigPath <string>] [-ConfigProfile <string>]Description
Section titled “Description”Either pass a full -Name to parse and validate, or pass the input segments plus -SafeType to construct and validate. Returns a result object with the assembled name, length, resolved safe type and any validation errors. Use -ShowBudget to print the per-segment character usage.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Test-PAMNamingStandard -Name 'AB-PAS-SRV-WIN-DA-I-M-P'Example 2
Section titled “Example 2”Test-PAMNamingStandard -App PAS -Technology SRV -SubType WIN -AccountType DA ` -SafeType shared-managed -Environment P -ShowBudgetParameters
Section titled “Parameters”-AccountType
Section titled “-AccountType”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-Environment
Section titled “-Environment”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-Location
Section titled “-Location”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
-SafeType
Section titled “-SafeType”Not described in the module help.
| Parameter set | Type | Required | Position | Pipeline input |
|---|---|---|---|---|
Personal |
String |
Yes | Named | No |
Segments |
String |
Yes | Named | No |
-SamAccountName
Section titled “-SamAccountName”Personal safes: name = I-<CPM location>-<SamAccountName>.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-ShowBudget
Section titled “-ShowBudget”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-SubType
Section titled “-SubType”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-Technology
Section titled “-Technology”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Test-PAMNamingStandard -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
