Skip to content

Commit 17aceb9

Browse files
feat: add support for Aria Products
Created functions to retrieve all Aria Products installed in SDDC environment, functions rely on PVS functions Get-vRSLCMProductPassword, Get-vRSLCMLockerPassword, and Get-vRSLCMProductDetails Signed-off-by: Jared Burns <[email protected]>
1 parent c9eda43 commit 17aceb9

11 files changed

+2870
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ Breaking Change:
1111
Enhancement:
1212

1313
- Added 5.1.1.0 to `Get-PasswordPolicyDefault` and `Get-PasswordPolicyConfig` to support VMware Cloud Foundation 5.1.1. [GH-164](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/164)
14+
- Added new functions for getting aria products passwords.
1415

1516
Bugfix:
1617

1718
- Fix for missing account lockout policy data for SDDC Manager and vCenter Server. [GH-160](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/160)
1819

20+
Enchancements:
21+
22+
- Created functions to retrieve all Aria Products installed in SDDC environment, functions rely on PVS functions Get-vRSLCMProductPassword, Get-vRSLCMLockerPassword, and Get-vRSLCMProductDetails
23+
[GH-166] (https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/166)
24+
1925
## v1.7.1
2026

2127
> Release Date: 2024-01-30

VMware.CloudFoundation.PasswordManagement.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = '.\VMware.CloudFoundation.PasswordManagement.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.7.2.1002'
14+
ModuleVersion = '1.7.2.1003'
1515

1616
# Supported PSEditions
1717
# CompatiblePSEditions = @()

VMware.CloudFoundation.PasswordManagement.psm1

+1,451
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
# Get-ariaLocalUserAccountLockout
2+
3+
## Synopsis
4+
5+
Retrieves the password account lockout for local users.
6+
7+
## Syntax
8+
9+
```powershell
10+
Get-ariaLocalUserAccountLockout -vmName <String> -guestUser <String> -guestPassword <String> [-vrni]
11+
[-product <String>] [-drift] [-version <String>] [-reportPath <String>] [-policyFile <String>]
12+
[<CommonParameters>]
13+
```
14+
15+
## Description
16+
17+
The `Get-ariaLocalUserAccountLockout` cmdlets retrieves the password account lockout for local users
18+
19+
## Examples
20+
21+
### Example 1
22+
23+
```powershell
24+
Get-ariaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -product vra
25+
```
26+
27+
This example retrieves the VMware Aria Automation password account lockout
28+
29+
### Example 2
30+
31+
32+
### Example 3
33+
34+
```powershell
35+
Get-ariaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -drift -product vra -reportPath "F:\Reporting" -policyFile "passwordPolicyConfig.json"
36+
```
37+
38+
This example retrieves the VMware Aria Automation password account lockout and checks the configuration drift using the provided configuration JSON
39+
40+
### Example 4
41+
42+
```powershell
43+
Get-ariaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -drift -product vra
44+
```
45+
46+
This example retrieves the VMware Aria Automation password account lockout and compares the configuration against the product defaults.
47+
48+
49+
## Parameters
50+
51+
### -vmName
52+
53+
The virtual machine name.
54+
55+
```yaml
56+
Type: String
57+
Parameter Sets: (All)
58+
Aliases:
59+
60+
Required: True
61+
Position: Named
62+
Default value: None
63+
Accept pipeline input: False
64+
Accept wildcard characters: False
65+
```
66+
67+
### -guestUser
68+
69+
The guest user name.
70+
71+
```yaml
72+
Type: String
73+
Parameter Sets: (All)
74+
Aliases:
75+
76+
Required: True
77+
Position: Named
78+
Default value: None
79+
Accept pipeline input: False
80+
Accept wildcard characters: False
81+
```
82+
83+
### -guestPassword
84+
85+
The guest user password.
86+
87+
```yaml
88+
Type: String
89+
Parameter Sets: (All)
90+
Aliases:
91+
92+
Required: True
93+
Position: Named
94+
Default value: None
95+
Accept pipeline input: False
96+
Accept wildcard characters: False
97+
```
98+
99+
### -vrni
100+
101+
The Aria Operations for Networks flag.
102+
103+
```yaml
104+
Type: SwitchParameter
105+
Parameter Sets: (All)
106+
Aliases:
107+
108+
Required: False
109+
Position: Named
110+
Default value: False
111+
Accept pipeline input: False
112+
Accept wildcard characters: False
113+
```
114+
115+
### -product
116+
117+
The product to retrieve the password account lockout policy
118+
119+
```yaml
120+
Type: String
121+
Parameter Sets: (All)
122+
Aliases:
123+
124+
Required: False
125+
Position: Named
126+
Default value: None
127+
Accept pipeline input: False
128+
Accept wildcard characters: False
129+
```
130+
131+
### -drift
132+
133+
The configuration drift flag.
134+
135+
```yaml
136+
Type: SwitchParameter
137+
Parameter Sets: (All)
138+
Aliases:
139+
140+
Required: False
141+
Position: Named
142+
Default value: False
143+
Accept pipeline input: False
144+
Accept wildcard characters: False
145+
```
146+
147+
### -version
148+
149+
The product version.
150+
151+
```yaml
152+
Type: String
153+
Parameter Sets: (All)
154+
Aliases:
155+
156+
Required: False
157+
Position: Named
158+
Default value: None
159+
Accept pipeline input: False
160+
Accept wildcard characters: False
161+
```
162+
163+
### -reportPath
164+
165+
The report path.
166+
167+
```yaml
168+
Type: String
169+
Parameter Sets: (All)
170+
Aliases:
171+
172+
Required: False
173+
Position: Named
174+
Default value: None
175+
Accept pipeline input: False
176+
Accept wildcard characters: False
177+
```
178+
179+
### -policyFile
180+
181+
The policy file.
182+
183+
```yaml
184+
Type: String
185+
Parameter Sets: (All)
186+
Aliases:
187+
188+
Required: False
189+
Position: Named
190+
Default value: None
191+
Accept pipeline input: False
192+
Accept wildcard characters: False
193+
```
194+
195+
### Common Parameters
196+
197+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

0 commit comments

Comments
 (0)