Skip to content

Commit 292bb33

Browse files
burnsjared0415tenthirtyam
authored andcommitted
feat: add support for aria
Adds functions to retrieve password policies for each available VMware Aria product deployed in a VMware Cloud Foundation instance. Thes functions are dependent on enhancements in `PowerValidatedSolutions` v2.9.0 (March 2024) milestone: `Get-vRSLCMProductPassword`, `Get-vRSLCMLockerPassword`, and `Get-vRSLCMProductDetails`. Signed-off-by: Jared Burns <[email protected]>
1 parent dc29486 commit 292bb33

File tree

89 files changed

+8242
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+8242
-145
lines changed

CHANGELOG.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,26 @@
66
77
Breaking Change:
88

9-
- Removes support for Microsoft Windows PowerShell 5.1. Please use Microsoft PowerShell 7.2.0 or later. [GH-159](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/159)
9+
- Removed support for Microsoft Windows PowerShell 5.1. Please use Microsoft PowerShell 7.2.0 or later. [GH-159](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/159)
1010

11-
Enhancement:
11+
Bugfix:
1212

13-
- 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)
13+
- Fixed 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)
1414

15-
Bugfix:
15+
Enhancement:
1616

17-
- 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)
18-
- Fix for `VMware.PowerCLI` module name not being mentioned in the required modules list of the manifest file. [GH-170](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/170)
19-
- Fix for `Test-VcfPasswordManagementPrereq` not working while multiple module versions were present. [GH-174](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/174)
17+
- 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)
18+
- Added functions to retrieve password policies for each available VMware Aria product deployed in a VMware Cloud Foundation instance. [GH-166](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/166)
19+
- `Get-AriaLocalUserAccountLockout` cmdlet to retrieve the password account lockout for Aria product appliances local users.
20+
- `Get-AriaLocalUserPasswordComplexity` cmdlet to retrieve the password complexity for Aria product appliances local users.
21+
- `Get-AriaLocalUserPasswordExpiration` cmdlet to retrieve the password expiration policy for the specified Aria product appliances local user.
22+
- `Update-AriaLocalUserAccountLockout` cmdlet to update all password account lockout for Aria product appliances local users.
23+
- `Update-AriaLocalUserPasswordExpiration` cmdlet to update all password expiration for Aria product appliances local users.
24+
- `Update-AriaLocalUserPasswordComplexity` cmdlet to update all password complexity for Aria product appliances local users.
25+
- `Publish-AriaLocalUserPasswordPolicy` cmdlet to publish the password policies for Aria product appliances local users.
26+
- `Request-AriaLocalUserAccountLockout` cmdlet to retrieve the Aria product appliances password account lockout.
27+
- `Request-AriaLocalUserPasswordComplexity` cmdlet to retrieve the Aria product appliances password complexity.
28+
- `Request-AriaLocalUserPasswordExpiration` cmdlet to retrieve the Aria product appliances password expiration.
2029

2130
## v1.7.1
2231

VMware.CloudFoundation.PasswordManagement.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
# Module manifest for module 'VMware.CloudFoundation.PasswordManagement
55
# Generated by: Broadcom
6-
# Generated on: 2024-02-26
6+
# Generated on: 2024-03-18
77

88
@{
99

1010
# Script module or binary module file associated with this manifest.
1111
RootModule = '.\VMware.CloudFoundation.PasswordManagement.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '1.7.2.1004'
14+
ModuleVersion = '1.7.2.1005'
1515

1616
# Supported PSEditions
1717
# CompatiblePSEditions = @()

VMware.CloudFoundation.PasswordManagement.psm1

+5,984-50
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)