Azure / Azure/azure-powershell
Unable to run any script in powershell console
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
Az.MSGraph.internal\Get-AzADApplication : SharedTokenCacheCredential authentication unavailable. Token acquisition failed for user suresh.deva@sssss. Ensure that you have
authenticated with a developer tool that supports Azure single sign on.
realm:
authorization_uri: https://login.microsoftonline.com/common/oauth2/authorize
client_id: 00000003-0000-0000-c000-000000000000
error_description: Continuous access evaluation resulted in challenge with result: InteractionRequired and code: LocationConditionEvaluationSatisfied
error: insufficient_claims
claims: eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwidmFsdWUiOiIxNzIwNDQ1MDQ5In0sInhtc19ycF9pcGFkZHIiOnsidmFsdWUiOiIxMzYuMjI2LjI1Mi4xOTYifX19
At C:\Users\A0851750\OneDrive - Aon\Documents\WindowsPowerShell\Modules\Az.Resources\6.5.2\MSGraph.Autorest\custom\Get-AzADApplication.ps1:214 char:5
+ Az.MSGraph.internal\Get-AzADApplication @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzADApplication_List], AuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Cmdlets.GetAzADApplication_List
### Issue script & Debug output
```PowerShell
Get-AzADApplication
```
### Environment data
```PowerShell
PS C:\WINDOWS\system32> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.22621.3672
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.3672
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```
### Module versions
```PowerShell
Reinstalled and installed module as well but no luck
```
### Error output
```PowerShell
Az.MSGraph.internal\Get-AzADApplication : SharedTokenCacheCredential authentication unavailable. Token acquisition failed for user ravikumar.porappan@aon.com. Ensure that you have
authenticated with a developer tool that supports Azure single sign on.
realm:
authorization_uri: https://login.microsoftonline.com/common/oauth2/authorize
client_id: 00000003-0000-0000-c000-000000000000
error_description: Continuous access evaluation resulted in challenge with result: InteractionRequired and code: LocationConditionEvaluationSatisfied
error: insufficient_claims
claims: eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwidmFsdWUiOiIxNzIwNDQ1MDQ5In0sInhtc19ycF9pcGFkZHIiOnsidmFsdWUiOiIxMzYuMjI2LjI1Mi4xOTYifX19
At C:\Users\suresh\OneDrive - Aon\Documents\WindowsPowerShell\Modules\Az.Resources\6.5.2\MSGraph.Autorest\custom\Get-AzADApplication.ps1:214 char:5
+ Az.MSGraph.internal\Get-AzADApplication @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-AzADApplication_List], AuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Cmdlets.GetAzADApplication_List
```
Contributor guide
Assessment
This issue has not been assessed yet.