Open Jonsey1980 opened 7 months ago
I have the same issue since this morning using an Azure Powershell tasks in Azure DevOps
Connect-AzAccount: /home/vsts/work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/5.238.11/InitializeAz.ps1:111
Line |
111 | $null = Connect-AzAccount -ServicePrincipal -Tenant $endpointObje …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ClientAssertionCredential authentication failed: AADSTS90061: Request to
| External OIDC endpoint failed. Trace ID:
| 903c7eca-7598-457d-a199-1753f6b8ca00 Correlation ID:
| 0d8656dd-3d7f-41dd-899f-c62e7e055118 Timestamp: 2024-05-01 08:26:48Z
| Could not find tenant id for provided tenant domain
| 'xxxxxxxx-xxxx-0000-0000-xxxxxxxxxxxxx'
re-created the service connection (with workload identity (automatic)), just to make sure. But that did not help.
It was working fine yesterday
Exact same issue on our side, was working fine yesterday
More or less the same issue here since this morning (May 1st 2024). For us it is happening in an Azure DevOps Power Shell task (Azure PowerShell 5.*) during deployment. Yesterday and everything was fine, the deployment was running several times without issues, since today always the same error. Nothing was changed in DevOps since yesterday.
2024-05-01T11:36:52.6226881Z VERBOSE: Command [Connect-AzAccount] failed the maximum number of 5 times.
2024-05-01T11:36:52.7452685Z ##[error]AADSTS50166: Request to External OIDC endpoint failed. Trace ID: bc766619-5c69-4b24-b49d-9905bdfc4400 Correlation ID: 42cdd13a-028c-421d-baa5-19f540815535 Timestamp: 2024-05-01 11:36:54Z
Could not find tenant id for provided tenant domain 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx'.
2024-05-01T11:36:52.8173333Z ##[error]PowerShell exited with code '1'.
MS is working on it: https://status.dev.azure.com/_event/499193080
Good morning, any update?
Still having this issue
Description
using Connect-AzAccount using a service principal with code below:
this works of one server, but fails of another - we are unable to diagnose why - versions:
error message
_Connect-AzAccount : ClientSecretCredential authentication failed: Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. Could not find tenant id for provided tenant domain '{tenantID}'. Please ensure that the provided service principal '{{SPN ID}' is found in the provided tenant domain. At line:15 char:1
ErrorRecord : Run Connect-AzAccount to login. Message : Run Connect-AzAccount to login. Data : {} InnerException : TargetSite : Void HandleException(System.Runtime.ExceptionServices.ExceptionDispatchInfo) StackTrace : at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException) at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet() at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() HelpLink : Source : Microsoft.Azure.PowerShell.Cmdlets.ResourceManager HResult : -2146233079
Issue script & Debug output
Environment data
Module versions
Error output
TLS 1.1 and TLS 1.2 is enabled on the server