Skip to content

Commit

Permalink
feat: add support for aria
Browse files Browse the repository at this point in the history
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 <jared.burns@broadcom.com>
  • Loading branch information
burnsjared0415 authored and tenthirtyam committed Mar 19, 2024
1 parent dc29486 commit 7a06fe2
Show file tree
Hide file tree
Showing 89 changed files with 8,242 additions and 145 deletions.
23 changes: 16 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,26 @@
Breaking Change:

- 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)
- 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)

Enhancement:
Bugfix:

- 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)
- 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)

Bugfix:
Enhancement:

- 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)
- 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)
- 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)
- 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)
- 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)
- `Get-AriaLocalUserAccountLockout` cmdlet to retrieve the password account lockout for Aria product appliances local users.
- `Get-AriaLocalUserPasswordComplexity` cmdlet to retrieve the password complexity for Aria product appliances local users.
- `Get-AriaLocalUserPasswordExpiration` cmdlet to retrieve the password expiration policy for the specified Aria product appliances local user.
- `Update-AriaLocalUserAccountLockout` cmdlet to update all password account lockout for Aria product appliances local users.
- `Update-AriaLocalUserPasswordExpiration` cmdlet to update all password expiration for Aria product appliances local users.
- `Update-AriaLocalUserPasswordComplexity` cmdlet to update all password complexity for Aria product appliances local users.
- `Publish-AriaLocalUserPasswordPolicy` cmdlet to publish the password policies for Aria product appliances local users.
- `Request-AriaLocalUserAccountLockout` cmdlet to retrieve the Aria product appliances password account lockout.
- `Request-AriaLocalUserPasswordComplexity` cmdlet to retrieve the Aria product appliances password complexity.
- `Request-AriaLocalUserPasswordExpiration` cmdlet to retrieve the Aria product appliances password expiration.

## v1.7.1

Expand Down
4 changes: 2 additions & 2 deletions VMware.CloudFoundation.PasswordManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

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

@{

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

# Version number of this module.
ModuleVersion = '1.7.2.1004'
ModuleVersion = '1.7.2.1005'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
6,034 changes: 5,984 additions & 50 deletions VMware.CloudFoundation.PasswordManagement.psm1

Large diffs are not rendered by default.

197 changes: 197 additions & 0 deletions docs/documentation/functions/Get-AriaLocalUserAccountLockout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
# Get-AriaLocalUserAccountLockout

## Synopsis

Retrieves the password account lockout for local users.

## Syntax

```powershell
Get-AriaLocalUserAccountLockout -vmName <String> -guestUser <String> -guestPassword <String> [-vrni]
[-product <String>] [-drift] [-version <String>] [-reportPath <String>] [-policyFile <String>]
[<CommonParameters>]
```

## Description

The `Get-AriaLocalUserAccountLockout` cmdlets retrieves the password account lockout for local users

## Examples

### Example 1

```powershell
Get-AriaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -product vra
```

This example retrieves the VMware Aria Automation password account lockout.

### Example 2


### Example 3

```powershell
Get-AriaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -drift -product vra -reportPath "F:\Reporting" -policyFile "passwordPolicyConfig.json"
```

This example retrieves the VMware Aria Automation password account lockout and checks the configuration drift using the provided configuration JSON.

### Example 4

```powershell
Get-AriaLocalUserAccountLockout -vmName sfo-vra01 -guestUser root -guestPassword VMw@re1! -drift -product vra
```

This example retrieves the VMware Aria Automation password account lockout and compares the configuration against the product defaults.


## Parameters

### -vmName

The virtual machine name.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -guestUser
The guest user name.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -guestPassword
The guest user password.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -vrni
The Aria Operations for Networks flag.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -product
The product to retrieve the password account lockout policy
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -drift
The configuration drift flag.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -version
The product version.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -reportPath
The report path.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -policyFile
The policy file.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### Common Parameters
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).
Loading

0 comments on commit 7a06fe2

Please sign in to comment.