VMware.VCDA.AVS.psm1
using module @{ ModuleName = 'Microsoft.AVS.Management'; RequiredVersion = '7.0.175' } <# Copyright 2023 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause #> $ErrorActionPreference = 'Stop' #script variables with default values, if required change names only here: $Script:vcda_avs_params = [ordered]@{ 'vsphere' = @{ 'sa_username' = 'vcda-avs-admin' #service account username 'sa_current_password' = 'sa-current-password' #name of the persistent secret key with the current password 'sa_old_password' = 'sa-old-password' #name of the persistent secret key with the current password 'vsphere_role' = 'VCDA_AVS_ADMIN' #name of vsphere role 'folder' = 'vmware-avs-vcda' #name of vsphere folder to be create/used as secure folder 'tag_name' = 'vmware-avs-vcda-tag' #name of vsphere tag to be created used by VCDA VMs } #vcda vms and related persistent secrets names 'vcda' = [ordered]@{ 'vm_name' = @( 'VCDA-AVS-Manager-01', 'VCDA-AVS-Tunnel-01', 'VCDA-AVS-Replicator-01', 'VCDA-AVS-Replicator-02', 'VCDA-AVS-Replicator-03', 'VCDA-AVS-Replicator-04', 'VCDA-AVS-Replicator-05', 'VCDA-AVS-Replicator-06' ) 'current_password' = '-current-pass' 'old_password' = '-old-pass' } 'ova' = @{ 'vcda_ova_sha256' = @{ #list of the supported VCDA version, sha256 of the provided OVA should match or deployment will fail. '4.7.3' = '1d83df80761b15d7e47e7c1e1f670b13436bbddfdc9a28e6966364e61a05ec0c' #build 24280288 '4.7.3.1' = '81bedf64d80857ea83896b4f865aad8676f223cf70649d0661b3c309a5b49c98' #build 24563708 } } } $Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue ) $Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue ) #Dot source the files Foreach ($import in @($Public + $Private)) { Try { . $import.fullname } Catch { Write-Error -Message "Failed to import function $($import.fullname): $_" } } |