ps/Modules/Alkami.PowerShell.Choco/Public/Install-ExistingMicroservicesWithMigrations.ps1

20 lines
445 B
PowerShell
Raw Permalink Normal View History

2023-05-30 22:51:22 -07:00
function Install-ExistingMicroservicesWithMigrations {
<#
.SYNOPSIS
Force Re-Installs microservices which may have migrations.
#>
[CmdletBinding()]
Param()
$logLead = (Get-LogLeadName);
$msToInstall = Get-MicroservicesWithMigrations
foreach ($ms in $msToInstall) {
Write-Host ("$logLead : Force Installing {0} v{1}" -f $ms.Name, $ms.Version)
choco install $ms.Name --version $ms.Version -f -y;
}
}