From f700d8d08437351fa40476b955415775dcfaf9f8 Mon Sep 17 00:00:00 2001 From: Yochanan Rachamim Date: Thu, 8 Jun 2017 17:03:53 +0300 Subject: [PATCH] Add prompt to get desired connection policy mode --- ... - Reconfigure Azure SQL Server Connection Policy Type.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AzureRM - Reconfigure Azure SQL Server Connection Policy Type.ps1 b/AzureRM - Reconfigure Azure SQL Server Connection Policy Type.ps1 index 14fea26..cf7da06 100644 --- a/AzureRM - Reconfigure Azure SQL Server Connection Policy Type.ps1 +++ b/AzureRM - Reconfigure Azure SQL Server Connection Policy Type.ps1 @@ -73,9 +73,9 @@ Write-Output "Current SQL Connection Policy Type = ${sqlCurrentConnectionPolicyType}" - $sqlNewConnectionPolicyType = "Proxy" # Valid values are "Default", "Proxy" and "Redirect" + $sqlNewConnectionPolicyType = ("Default", "Proxy" , "Redirect") | Out-GridView -Title "Select Mode to set" -PassThru Write-Output "New SQL Connection Policy Type = ${sqlNewConnectionPolicyType}" Set-AzureRmResource -ResourceId $sqlConnectionPolicyId -ApiVersion $apiVersion -Properties @{"connectionType" = "${sqlNewConnectionPolicyType}"} - \ No newline at end of file +