Get-AzSynapseRoleDefinition returns error: Failed to acquire token silently as no token was found in the cache. Call method AcquireToken: AADSTS500011: #12525
When attempting to use Get-AzSynapseRoleDefinition or Get-AzSynapseRoleAssignment I am recieving the the following error.
One quick note, this issue is very similar to the issue faced in this thread, https://github.com/Azure/azure-powershell/issues/11998, that occurred with Get-AzWorkspace which did function correctly for me.
Get-AZSynapseRoleDefinition : Failed to acquire token silently as no token was found in the cache. Call method
AcquireToken: AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in the
tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by the
administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request
to the wrong tenant.
Trace ID: 66adabdd-cbef-4ee4-b51a-b98779142100
Correlation ID: f7f5f3d9-c5c5-4634-b0d8-cf00d52b40cb
Timestamp: 2020-07-29 14:21:41Z
At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ test
+ CategoryInfo : CloseError: (:) [Get-AzSynapseRoleDefinition], AadAuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition
Steps to reproduce
Connect-AzAccount
Set-AzContext -Subscription (sub id that contains Workspace)
DEBUG: 11:08:43 AM - GetAzureSynapseRoleDefinition begin processing with ParameterSet
'GetByWorkspaceNameAndIdParameterSet'.
DEBUG: 11:08:43 AM - using account id 'braball@microsoft.com'...
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain:
'72f988bf-86f1-41af-91ab-2d7cd011db47', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri:
'AzureSynapseAnalyticsEndpointResourceId', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority
'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/', CorrelationId:
'00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain:
'72f988bf-86f1-41af-91ab-2d7cd011db47', AdEndpoint: 'https://login.microsoftonline.com/', ClientId:
'1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4597928Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: ADAL
PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version
'2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4607878Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: ADAL
PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version
'2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4607878Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: ===
Token Acquisition started:
CacheType: null
Authentication Target: User
, Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4607878Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: ===
Token Acquisition started:
Authority: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/
Resource: AzureSynapseAnalyticsEndpointResourceId
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: null
Authentication Target: User
DEBUG: [ADAL]: Verbose: 2020-07-29T15:08:43.4607878Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Loading
from cache.
DEBUG: [ADAL]: Verbose: 2020-07-29T15:08:43.4607878Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Loading
from cache.
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs:
Deserialized 5 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Looking up
cache for a token...
DEBUG: [ADAL]: Verbose: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Looking up
cache for a token...
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: A Multi
Resource Refresh Token for a different resource was found which can be used
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: A Multi
Resource Refresh Token for a different resource was found which can be used
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: An
expired or near expiry token was found in the cache
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: An
expired or near expiry token was found in the cache
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: A
matching item (access token or refresh token or both) was found in the cache
DEBUG: [ADAL]: Information: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: A
matching item (access token or refresh token or both) was found in the cache
DEBUG: [ADAL]: Verbose: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Refreshing
access token...
DEBUG: [ADAL]: Verbose: 2020-07-29T15:08:43.4647836Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Refreshing
access token...
DEBUG: [ADAL]: Error: 2020-07-29T15:08:44.6503312Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs: Exception
type: Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException, ErrorCode:
failed_to_acquire_token_silently ---> Exception type:
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException, ErrorCode: invalid_resource, StatusCode: 400 --->
Exception type: System.Net.Http.HttpRequestException ---> Exception type:
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException, ErrorCode:
{"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This
can happen if the application has not been installed by the administrator of the tenant or consented to by any user in
the tenant. You might have sent your authentication request to the wrong tenant.\r\nTrace ID:
ba41ec94-97b3-470a-bbfb-1a07a7974b00\r\nCorrelation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9\r\nTimestamp: 2020-07-29
15:08:44Z","error_codes":[500011],"timestamp":"2020-07-29
15:08:44Z","trace_id":"ba41ec94-97b3-470a-bbfb-1a07a7974b00","correlation_id":"f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9","e
rror_uri":"https://login.microsoftonline.com/error?code=500011"}
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__72.Move
Next()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendTokenRequestByRefreshTokenA
sync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshAccessTokenAsync>d__71.M
oveNext()
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTokenRequestAsync()
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker
Async>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
DEBUG: [ADAL]: Error: 2020-07-29T15:08:44.6503312Z: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9 - LoggerBase.cs:
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException: Failed to acquire token silently
as no token was found in the cache. Call method AcquireToken --->
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This
can happen if the application has not been installed by the administrator of the tenant or consented to by any user in
the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: ba41ec94-97b3-470a-bbfb-1a07a7974b00
Correlation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9
Timestamp: 2020-07-29 15:08:44Z ---> System.Net.Http.HttpRequestException: Response status code does not indicate
success: 400 (BadRequest). ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException:
{"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This
can happen if the application has not been installed by the administrator of the tenant or consented to by any user in
the tenant. You might have sent your authentication request to the wrong tenant.\r\nTrace ID:
ba41ec94-97b3-470a-bbfb-1a07a7974b00\r\nCorrelation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9\r\nTimestamp: 2020-07-29
15:08:44Z","error_codes":[500011],"timestamp":"2020-07-29
15:08:44Z","trace_id":"ba41ec94-97b3-470a-bbfb-1a07a7974b00","correlation_id":"f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9","e
rror_uri":"https://login.microsoftonline.com/error?code=500011"}: Unknown error
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__72.Move
Next()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendTokenRequestByRefreshTokenA
sync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshAccessTokenAsync>d__71.M
oveNext()
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTokenRequestAsync()
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker
Async>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
ErrorCode: failed_to_acquire_token_silently
Get-AzSynapseRoleDefinition : Failed to acquire token silently as no token was found in the cache. Call method
AcquireToken: AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in the
tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by the
administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request
to the wrong tenant.
Trace ID: ba41ec94-97b3-470a-bbfb-1a07a7974b00
Correlation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9
Timestamp: 2020-07-29 15:08:44Z
At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzSynapseRoleDefinition], AadAuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition
DEBUG: AzureQoSEvent: CommandName - Get-AzSynapseRoleDefinition; IsSuccess - False; Duration - 00:00:01.3346149;;
Exception - Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException: Failed to acquire token
silently as no token was found in the cache. Call method AcquireToken: AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This
can happen if the application has not been installed by the administrator of the tenant or consented to by any user in
the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: ba41ec94-97b3-470a-bbfb-1a07a7974b00
Correlation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9
Timestamp: 2020-07-29 15:08:44Z --->
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException: Failed to acquire token silently
as no token was found in the cache. Call method AcquireToken --->
Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This
can happen if the application has not been installed by the administrator of the tenant or consented to by any user in
the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: ba41ec94-97b3-470a-bbfb-1a07a7974b00
Correlation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9
Timestamp: 2020-07-29 15:08:44Z ---> System.Net.Http.HttpRequestException: Response status code does not indicate
success: 400 (BadRequest). ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException:
{"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This
can happen if the application has not been installed by the administrator of the tenant or consented to by any user in
the tenant. You might have sent your authentication request to the wrong tenant.\r\nTrace ID:
ba41ec94-97b3-470a-bbfb-1a07a7974b00\r\nCorrelation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9\r\nTimestamp: 2020-07-29
15:08:44Z","error_codes":[500011],"timestamp":"2020-07-29
15:08:44Z","trace_id":"ba41ec94-97b3-470a-bbfb-1a07a7974b00","correlation_id":"f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9","e
rror_uri":"https://login.microsoftonline.com/error?code=500011"}: Unknown error
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__72.Move
Next()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendTokenRequestByRefreshTokenA
sync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshAccessTokenAsync>d__71.M
oveNext()
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTokenRequestAsync()
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAndAcquireTokenUsingBroker
Async>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonAsync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration config, String
userId, SecureString password, Action`1 promptAction, Boolean renew)
at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration config,
Action`1 promptAction, String userId, SecureString password, Exception& ex)
--- End of inner exception stack trace ---
at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration config, Action`1
promptAction, String userId, SecureString password, Boolean renew)
at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration config, String
promptBehavior, Action`1 promptAction, String userId, SecureString password, String credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzureAccount
account, IAzureEnvironment environment, String tenant, SecureString password, String promptBehavior, Action`1
promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzureAccount
account, IAzureEnvironment environment, String tenant, SecureString password, String promptBehavior, Action`1
promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext DefaultContext, DebugLogWriter
logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName, IAzureContext
context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DEBUG: Finish sending metric.
DEBUG: 11:08:45 AM - GetAzureSynapseRoleDefinition end processing.
Error output
DEBUG: 11:10:15 AM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 11:10:15 AM - using account id 'braball@microsoft.com'...
WARNING: Breaking changes in the cmdlet 'Resolve-AzError' :
WARNING: - The `Resolve-Error` alias will be removed in a future release. Please change any scripts that use this
alias to use `Resolve-AzError` instead.
WARNING: NOTE : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other
information on breaking changes in Azure PowerShell.
HistoryId: 30
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: ba41ec94-97b3-470a-bbfb-1a07a7974b00
Correlation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9
Timestamp: 2020-07-29 15:08:44Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 30
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 30
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: ba41ec94-97b3-470a-bbfb-1a07a7974b00
Correlation ID: f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9
Timestamp: 2020-07-29 15:08:44Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 30
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 30
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
ba41ec94-97b3-470a-bbfb-1a07a7974b00\r\nCorrelation ID:
f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9\r\nTimestamp: 2020-07-29
15:08:44Z","error_codes":[500011],"timestamp":"2020-07-29 15:08:44Z","trace_id":"ba41ec94-97b3-470a-bb
fb-1a07a7974b00","correlation_id":"f5cc67fb-c2cf-4e9f-8ffe-b7f42c9756c9","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 30
HistoryId: 27
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 4121e6ca-cdd8-4800-88db-5f54c4a11d00
Correlation ID: f6040689-7fc0-46b6-9174-77125184f1eb
Timestamp: 2020-07-29 15:00:20Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 27
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 27
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 4121e6ca-cdd8-4800-88db-5f54c4a11d00
Correlation ID: f6040689-7fc0-46b6-9174-77125184f1eb
Timestamp: 2020-07-29 15:00:20Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 27
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 27
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
4121e6ca-cdd8-4800-88db-5f54c4a11d00\r\nCorrelation ID:
f6040689-7fc0-46b6-9174-77125184f1eb\r\nTimestamp: 2020-07-29
15:00:20Z","error_codes":[500011],"timestamp":"2020-07-29 15:00:20Z","trace_id":"4121e6ca-cdd8-4800-88
db-5f54c4a11d00","correlation_id":"f6040689-7fc0-46b6-9174-77125184f1eb","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 27
HistoryId: 22
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 6ee8e30a-0ca9-4178-a6c4-664af1d84400
Correlation ID: 7131ec26-79d9-4766-8b68-0330e9370198
Timestamp: 2020-07-29 14:43:54Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 22
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 22
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 6ee8e30a-0ca9-4178-a6c4-664af1d84400
Correlation ID: 7131ec26-79d9-4766-8b68-0330e9370198
Timestamp: 2020-07-29 14:43:54Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 22
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 22
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
6ee8e30a-0ca9-4178-a6c4-664af1d84400\r\nCorrelation ID:
7131ec26-79d9-4766-8b68-0330e9370198\r\nTimestamp: 2020-07-29
14:43:54Z","error_codes":[500011],"timestamp":"2020-07-29 14:43:54Z","trace_id":"6ee8e30a-0ca9-4178-a6
c4-664af1d84400","correlation_id":"7131ec26-79d9-4766-8b68-0330e9370198","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 22
HistoryId: 20
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: f2f00cb2-d721-4959-8a53-bfffc44e2000
Correlation ID: 57840f2e-39b0-42de-84ce-417777681fe1
Timestamp: 2020-07-29 14:43:42Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 20
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 20
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: f2f00cb2-d721-4959-8a53-bfffc44e2000
Correlation ID: 57840f2e-39b0-42de-84ce-417777681fe1
Timestamp: 2020-07-29 14:43:42Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 20
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 20
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
f2f00cb2-d721-4959-8a53-bfffc44e2000\r\nCorrelation ID:
57840f2e-39b0-42de-84ce-417777681fe1\r\nTimestamp: 2020-07-29
14:43:42Z","error_codes":[500011],"timestamp":"2020-07-29 14:43:42Z","trace_id":"f2f00cb2-d721-4959-8a
53-bfffc44e2000","correlation_id":"57840f2e-39b0-42de-84ce-417777681fe1","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 20
HistoryId: 19
Message : Parameter set cannot be resolved using the specified named parameters.
StackTrace : at System.Management.Automation.CmdletParameterBinderController.ThrowAmbiguousParameterSetException
(UInt32 parameterSetFlags, MergedCommandParameterMetadata bindableParameters)
at System.Management.Automation.CmdletParameterBinderController.ValidateParameterSets(Boolean
prePipelineInput, Boolean setDefault)
at
System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1
arguments)
at System.Management.Automation.CommandProcessor.BindCommandLineParameters()
at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)
at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary
psDefaultParameterValues)
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object
input)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object
input)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput,
CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][]
commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
Exception : System.Management.Automation.ParameterBindingException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -Name bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -Name bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 19
HistoryId: 16
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 6f3284a2-371b-4d4e-b862-5092432e2300
Correlation ID: 2706852e-fe30-4ddc-a468-7f39dba3a110
Timestamp: 2020-07-29 14:26:28Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 16
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 16
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 6f3284a2-371b-4d4e-b862-5092432e2300
Correlation ID: 2706852e-fe30-4ddc-a468-7f39dba3a110
Timestamp: 2020-07-29 14:26:28Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 16
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 16
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
6f3284a2-371b-4d4e-b862-5092432e2300\r\nCorrelation ID:
2706852e-fe30-4ddc-a468-7f39dba3a110\r\nTimestamp: 2020-07-29
14:26:28Z","error_codes":[500011],"timestamp":"2020-07-29 14:26:28Z","trace_id":"6f3284a2-371b-4d4e-b8
62-5092432e2300","correlation_id":"2706852e-fe30-4ddc-a468-7f39dba3a110","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 16
HistoryId: 14
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 66adabdd-cbef-4ee4-b51a-b98779142100
Correlation ID: f7f5f3d9-c5c5-4634-b0d8-cf00d52b40cb
Timestamp: 2020-07-29 14:21:41Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 66adabdd-cbef-4ee4-b51a-b98779142100
Correlation ID: f7f5f3d9-c5c5-4634-b0d8-cf00d52b40cb
Timestamp: 2020-07-29 14:21:41Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
66adabdd-cbef-4ee4-b51a-b98779142100\r\nCorrelation ID:
f7f5f3d9-c5c5-4634-b0d8-cf00d52b40cb\r\nTimestamp: 2020-07-29
14:21:41Z","error_codes":[500011],"timestamp":"2020-07-29 14:21:41Z","trace_id":"66adabdd-cbef-4ee4-b5
1a-b98779142100","correlation_id":"f7f5f3d9-c5c5-4634-b0d8-cf00d52b40cb","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : $ws | Get-AZSynapseRoleDefinition
Position : At line:1 char:7
+ $ws | Get-AZSynapseRoleDefinition
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
HistoryId: 12
Message : Could not find workspace: 'ContosoWorkspace' in any resource group in the currently selected
subscription: a2bafbcf-d5c9-45e9-8ec8-783c309f9351. Please ensure this workspace exists and that the
current user has access to it.
StackTrace : at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsManagementClient.GetResourceGroupByWorks
paceName(String workspaceName)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsManagementClient.GetWorkspace(String
resourceGroupName, String workspaceName)
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseWorkspace.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Synapse.Models.Exceptions.NotFoundException
InvocationInfo : {Get-AzSynapseWorkspace}
Line : $ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
Position : At line:1 char:7
+ $ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 12
HistoryId: 10
Message : The term 'AcquireToken' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
StackTrace : at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName,
CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin
commandOrigin, ExecutionContext context)
at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName,
CommandOrigin commandOrigin, Nullable`1 useLocalScope)
at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe,
CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[]
redirections, ExecutionContext context)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput,
CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][]
commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
Exception : System.Management.Automation.CommandNotFoundException
InvocationInfo : {}
Line : AcquireToken
Position : At line:1 char:1
+ AcquireToken
+ ~~~~~~~~~~~~
HistoryId : 10
HistoryId: 9
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 91735a2f-656b-4b2a-9712-dfc5b0961f00
Correlation ID: 930e9055-7248-4fde-a1ea-5f72179af187
Timestamp: 2020-07-29 14:17:22Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 9
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 9
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 91735a2f-656b-4b2a-9712-dfc5b0961f00
Correlation ID: 930e9055-7248-4fde-a1ea-5f72179af187
Timestamp: 2020-07-29 14:17:22Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 9
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 9
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
91735a2f-656b-4b2a-9712-dfc5b0961f00\r\nCorrelation ID:
930e9055-7248-4fde-a1ea-5f72179af187\r\nTimestamp: 2020-07-29
14:17:22Z","error_codes":[500011],"timestamp":"2020-07-29 14:17:22Z","trace_id":"91735a2f-656b-4b2a-97
12-dfc5b0961f00","correlation_id":"930e9055-7248-4fde-a1ea-5f72179af187","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 9
HistoryId: 8
Message : The term 'f' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
StackTrace : at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName,
CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin
commandOrigin, ExecutionContext context)
at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName,
CommandOrigin commandOrigin, Nullable`1 useLocalScope)
at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe,
CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[]
redirections, ExecutionContext context)
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput,
CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][]
commandRedirections, FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
Exception : System.Management.Automation.CommandNotFoundException
InvocationInfo : {}
Line : f
Position : At line:1 char:1
+ f
+ ~
HistoryId : 8
HistoryId: 7
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: a946574a-5b43-4642-a37a-1d1990db2000
Correlation ID: 39d40ee3-8164-4d49-a548-0bf88215a811
Timestamp: 2020-07-29 14:12:57Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleAssignment.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleAssignment}
Line : Get-AzSynapseRoleAssignment -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleAssignment -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 7
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleAssignment}
Line : Get-AzSynapseRoleAssignment -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleAssignment -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 7
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: a946574a-5b43-4642-a37a-1d1990db2000
Correlation ID: 39d40ee3-8164-4d49-a548-0bf88215a811
Timestamp: 2020-07-29 14:12:57Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleAssignment}
Line : Get-AzSynapseRoleAssignment -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleAssignment -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 7
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleAssignment}
Line : Get-AzSynapseRoleAssignment -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleAssignment -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 7
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
a946574a-5b43-4642-a37a-1d1990db2000\r\nCorrelation ID:
39d40ee3-8164-4d49-a548-0bf88215a811\r\nTimestamp: 2020-07-29
14:12:57Z","error_codes":[500011],"timestamp":"2020-07-29 14:12:57Z","trace_id":"a946574a-5b43-4642-a3
7a-1d1990db2000","correlation_id":"39d40ee3-8164-4d49-a548-0bf88215a811","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleAssignment}
Line : Get-AzSynapseRoleAssignment -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleAssignment -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 7
HistoryId: 6
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 2f50d120-73b4-49f6-aa48-034223d12000
Correlation ID: ffdb12db-89d9-4fd4-85e4-b4ee77cfa3cb
Timestamp: 2020-07-29 14:11:15Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 6
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 6
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 2f50d120-73b4-49f6-aa48-034223d12000
Correlation ID: ffdb12db-89d9-4fd4-85e4-b4ee77cfa3cb
Timestamp: 2020-07-29 14:11:15Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 6
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 6
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
2f50d120-73b4-49f6-aa48-034223d12000\r\nCorrelation ID:
ffdb12db-89d9-4fd4-85e4-b4ee77cfa3cb\r\nTimestamp: 2020-07-29
14:11:15Z","error_codes":[500011],"timestamp":"2020-07-29 14:11:15Z","trace_id":"2f50d120-73b4-49f6-aa
48-034223d12000","correlation_id":"ffdb12db-89d9-4fd4-85e4-b4ee77cfa3cb","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName azureacademy
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 6
HistoryId: 5
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken:
AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 34ac8dc8-0abf-45c4-8382-5b1bcbd81e00
Correlation ID: 54fbef77-03c7-4b0c-b59e-fb12bdfe8d7a
Timestamp: 2020-07-29 14:10:22Z
StackTrace : at Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.AcquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.GetAccessToken(AdalConfiguration
config, String promptBehavior, Action`1 promptAction, String userId, SecureString password, String
credentialType)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
promptBehavior, Action`1 promptAction, String resourceId)
at Microsoft.Azure.Commands.Synapse.Common.AzureSessionCredential..ctor(IAzureContext
DefaultContext, DebugLogWriter logWriter)
at Microsoft.Azure.Commands.Synapse.Models.SynapseAnalyticsRoleClient..ctor(String workspaceName,
IAzureContext context)
at Microsoft.Azure.Commands.Synapse.Models.SynapseRoleCmdletBase.get_SynapseAnalyticsClient()
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseRoleDefinition.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Authentication.AadAuthenticationFailedException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
Message : Failed to acquire token silently as no token was found in the cache. Call method AcquireToken
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenSilentHandler.SendTok
enRequestAsync()
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<CheckAnd
AcquireTokenUsingBrokerAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync
>d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentCommonA
sync>d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenSilentAsync>d
__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.DoAcquireToken(AdalConfiguration
config, String userId, SecureString password, Action`1 promptAction, Boolean renew)
at
Microsoft.Azure.Commands.Common.Authentication.UserTokenProvider.SafeAquireToken(AdalConfiguration
config, Action`1 promptAction, String userId, SecureString password, Exception& ex)
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalSilentTokenAcquisitionException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
Message : AADSTS500011: The resource principal named AzureSynapseAnalyticsEndpointResourceId was not found in
the tenant named 72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not
been installed by the administrator of the tenant or consented to by any user in the tenant. You
might have sent your authentication request to the wrong tenant.
Trace ID: 34ac8dc8-0abf-45c4-8382-5b1bcbd81e00
Correlation ID: 54fbef77-03c7-4b0c-b59e-fb12bdfe8d7a
Timestamp: 2020-07-29 14:10:22Z
StackTrace : at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__22`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.AdalHttpClient.<GetResponseAsync>d
__21`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendHttp
MessageAsync>d__72.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<SendToke
nRequestByRefreshTokenAsync>d__70.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RefreshA
ccessTokenAsync>d__71.MoveNext()
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
Message : Response status code does not indicate success: 400 (BadRequest).
StackTrace :
Exception : System.Net.Http.HttpRequestException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
Message : {"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named
AzureSynapseAnalyticsEndpointResourceId was not found in the tenant named
72f988bf-86f1-41af-91ab-2d7cd011db47. This can happen if the application has not been installed by
the administrator of the tenant or consented to by any user in the tenant. You might have sent your
authentication request to the wrong tenant.\r\nTrace ID:
34ac8dc8-0abf-45c4-8382-5b1bcbd81e00\r\nCorrelation ID:
54fbef77-03c7-4b0c-b59e-fb12bdfe8d7a\r\nTimestamp: 2020-07-29
14:10:22Z","error_codes":[500011],"timestamp":"2020-07-29 14:10:22Z","trace_id":"34ac8dc8-0abf-45c4-83
82-5b1bcbd81e00","correlation_id":"54fbef77-03c7-4b0c-b59e-fb12bdfe8d7a","error_uri":"https://login.mi
crosoftonline.com/error?code=500011"}: Unknown error
StackTrace :
Exception : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
InvocationInfo : {Get-AzSynapseRoleDefinition}
Line : Get-AzSynapseRoleDefinition -WorkspaceName bballasw
Position : At line:1 char:1
+ Get-AzSynapseRoleDefinition -WorkspaceName bballasw
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 5
The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.
DEBUG: AzureQoSEvent: CommandName - Resolve-AzError; IsSuccess - True; Duration - 00:00:01.0340612;
DEBUG: Finish sending metric.
DEBUG: 11:10:17 AM - ResolveError end processing.
Description
When attempting to use Get-AzSynapseRoleDefinition or Get-AzSynapseRoleAssignment I am recieving the the following error. One quick note, this issue is very similar to the issue faced in this thread, https://github.com/Azure/azure-powershell/issues/11998, that occurred with Get-AzWorkspace which did function correctly for me.
Steps to reproduce
Environment data
Module versions
Debug output
Error output