Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-ASCmd problem when deploy a tabular model with XMLA #90

Open
danielelgary opened this issue Jul 25, 2024 · 2 comments
Open

Invoke-ASCmd problem when deploy a tabular model with XMLA #90

danielelgary opened this issue Jul 25, 2024 · 2 comments

Comments

@danielelgary
Copy link

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!

@Khayoann2
Copy link

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

@danielelgary
Copy link
Author

Hi,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants