Comments (3)
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.
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.
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)
- MicrosoftAzureServiceFabric-AADHelpers lacks documentation for DLL install
- Access Token missing or malformed
- This script no longer works. If you run it you get a storage context error, and if you try to manually run the VPN Gateway Diagnostic command it gives you all sorts of errors.
- May need to change "PremiumLRS" to "Premium_LRS"
- Changing property 'osDisk.name' is not allowed
- Method invocation failed because [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] does not contain a method named 'AcquireToken' AADTool HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-powershell-snippets.