20 lines
445 B
PowerShell
20 lines
445 B
PowerShell
|
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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|