SQLServerPSModule icon indicating copy to clipboard operation
SQLServerPSModule copied to clipboard

Invoke-ASCmd problem when deploy a tabular model with XMLA

Open danielelgary opened this issue 1 year ago • 2 comments

We always deploy a tabular model with module SqlServer using Invoke-ASCmd

We have been having troubles deploying with this task Invoke-ASCmd 6 days ago.

The pipeline throws an exception that said: "##[error]When interactive authentication is not supported, an external access-token is required; either provide it in the connection-string or by setting the AccessToken property." But we didn't make any change in our tabular model. We debug our script and said this exception: "Invoke-ASCmd : Unable to obtain authentication token using the credentials provided. At .\Test3.ps1:168 char:12

  • ... $output = Invoke-ASCmd -InputFile "$modelPath\bin\CustomisedModel.x ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidResult: (:) [Invoke-ASCmd], AuthenticationException
    • FullyQualifiedErrorId : ExecutionFailed,Microsoft.AnalysisServices.PowerShell.Cmdlets.ExecuteScriptCommand" I don't know what happen with the library, can you tell me what's wrong or if there is something that I need to do to solve this issue?

I already do my own test with the module SQLServer in version 22.2.0, and the issue didn´t happen

Can you check this in the last updated (Version 22.3.0) ? Thank you!

danielelgary avatar Jul 25 '24 20:07 danielelgary

Hello, I have a similar issue on my side with the last version. (22.3.0 and no issue on 22.2.0) Do you have an idea about this ?

Thank you

Khayoann2 avatar Jul 30 '24 14:07 Khayoann2

Hi,

Yes I solved it changing the authentication method directly into the Invoke-ASCmd and now its ok with that

danielelgary avatar Jul 30 '24 16:07 danielelgary

I'm assuming you guys are good, right?

If not, please let me know and I'll have somebody in the "SSAS-land" look into this.

Matteo-T avatar Mar 03 '25 11:03 Matteo-T