Code Monkey home page Code Monkey logo

Comments (3)

serkanozkul avatar serkanozkul commented on September 1, 2024 1

Same issue here!

Replacing the "Microsoft.IdentityModel.Clients.ActiveDirectory.dll" from the latest source below worked.
https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory/

from azure-powershell-snippets.

bnlprsd avatar bnlprsd commented on September 1, 2024

Same issue here!

Replacing the "Microsoft.IdentityModel.Clients.ActiveDirectory.dll" from the latest source below worked.
https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory/

Then what change did you make in Common.ps1 to run it again successfully?
Also which version of the dll did you use?

from azure-powershell-snippets.

harryzsh avatar harryzsh commented on September 1, 2024

Tried the latest source from https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory/

but still not working

Cannot find an overload for "AcquireTokenAsync" and the argument count: "4".
At C:\Users\shz\Desktop\Azure-PowerShell-Snippets-master\Azure-PowerShell-Snippets-master\MicrosoftAzureServiceFabric-AADHelpers\AADTool\Common.ps1:36 char:5

  • $accessToken = $authenticationContext.AcquireTokenAsync($resource ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodException
    • FullyQualifiedErrorId : MethodCountCouldNotFindBest

Invoke-RestMethod : {"odata.error":{"code":"Authentication_MissingOrMalformed","message":{"lang":"en","value":"Access Token missing or malformed."}}}
At C:\Users\shz\Desktop\Azure-PowerShell-Snippets-master\Azure-PowerShell-Snippets-master\MicrosoftAzureServiceFabric-AADHelpers\AADTool\Common.ps1:46 char:13

  • return (Invoke-RestMethod $uri -Method $method -Headers $headers  ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

from azure-powershell-snippets.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.