Open Varaprasad91 opened 4 months ago
Hi @https://github.com/microsoft/SQLServerPSModule/issues Could you please check this issue? It seems like the error is thrown from Invoke-Sqlcmd Error record: 2024-06-18T08:14:18.7721788Z ##[debug]Invoke-Sqlcmd : Method not found: 'Void Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.SqlColumnEncryptionAzureKeyVaultProvider..ctor(Azure.Core.TokenCredential)'.
Tired with different patterns of the version , but sadly nothing of them working out
New issue checklist
Task name
Azurepowershell
Task version
5.241.0
Issue Description
$serverName = "$()" $databaseName = "$()" $userName = "$()" $password = "$()" $sql_query_ad_groups_list ="select distinct arm from [HMDP_Access_Management].[access_group] ag inner join [HMDP_Access_Management].[access_object_group_assignment] aoga
$csvFilePath = "ad_groups_list.csv" Invoke-Sqlcmd -ConnectionString "Server=$serverName;Database=$databaseName;User ID=$userName;Password=$password;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" -Query $sql_query_ad_groups_list |Export-Csv -Path $csvFilePath -NoTypeInformation
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows 2019 and windows latest
Relevant log output
Full task logs with system.debug enabled
Repro steps
No response