Azure / Azure/azure-powershell

Unable to run any script in powershell console

Open
#25,473 6 comments 0 reactions 0 assignees View on GitHub
bug customer-reported needs-team-attention
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.