Hello.
Is there any particular property via which we can identify through powershell whether the data source within an AAS is a legacy one ?
Legacy :
ConnectionString : Persist Security Info=false;User ID=abc;Encrypt=true;TrustServerCertificate=false;Data
Source=abc.database.windows.net;Initial Catalog=xyz
ImpersonationMode : ImpersonateAccount
Account : dev
New:
ConnectionDetails : {"protocol":"tds","address":{"server":"abc.database.windows.net","database":"
xyz"},"authentication":null,"query":null}
Options : {}
Credential : {"AuthenticationKind":"UsernamePassword","Username":"1234","EncryptConnection":true,"Privac
ySetting":"Private"}
Note: 1 way is to compare whether the below powershell output contains a credential value:
$ServerName = "asazure://northeurope.asazure.windows.net/abc"
$DB = "xyz"
$MyServer = New-Object Microsoft.AnalysisServices.Server
$MyServer.Connect($ServerName)
$myDatabase = $myServer.Databases.Item($DB)
Write-Output $myDatabase.Model.DataSources