From bd413f9fe75b3b71c3c95e62c671d1ebf9329296 Mon Sep 17 00:00:00 2001 From: Dani Alvarez <109668843+DaniDatua@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:24:37 +0100 Subject: [PATCH] Update Get-AnalysisServicesDeploymentExePath.ps1 Update your code so it can work with SQL Server 2022 --- .../public/Get-AnalysisServicesDeploymentExePath.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/DeployTabularModel/DeployTabularModelTask/ps_modules/DeployCube/public/Get-AnalysisServicesDeploymentExePath.ps1 b/extensions/DeployTabularModel/DeployTabularModelTask/ps_modules/DeployCube/public/Get-AnalysisServicesDeploymentExePath.ps1 index 78f37ef..35180c5 100644 --- a/extensions/DeployTabularModel/DeployTabularModelTask/ps_modules/DeployCube/public/Get-AnalysisServicesDeploymentExePath.ps1 +++ b/extensions/DeployTabularModel/DeployTabularModelTask/ps_modules/DeployCube/public/Get-AnalysisServicesDeploymentExePath.ps1 @@ -15,8 +15,9 @@ function Get-AnalysisServicesDeploymentExePath { .PARAMETER Version The version of Microsoft.AnalysisServices.Deployment.exe to find. - Valid values for -Version are: ('15', '14', '13', '12', '11') which translate as follows: + Valid values for -Version are: ('16','15', '14', '13', '12', '11') which translate as follows: + * 16: SQL Server 2022 * 15: SQL Server 2019 * 14: SQL Server 2017 * 13: SQL Server 2016 @@ -50,7 +51,7 @@ function Get-AnalysisServicesDeploymentExePath { param( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [ValidateSet('15', '14', '13', '12', '11')] + [ValidateSet('16', '15', '14', '13', '12', '11')] [string]$Version )