-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADFS] [Edge] [AzureStack] Connect-AzAccount : InteractiveBrowserCredential authentication failed: Value cannot be null. Could not find tenant id for provided tenant domain '98b8267d-e97f-426e-8b3f-7956511fd63f' #26976
Open
Labels
Accounts
Issues in Az.Accounts except authentication related
Azure PS Team
Azure Stack
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Tracking
We will track status and follow internally
Comments
keystroke
added
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
labels
Jan 8, 2025
microsoft-github-policy-service
bot
removed
the
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
label
Jan 8, 2025
Same thing using 'adfs' for the tenantId: PS C:\> Connect-AzAccount -Environment Foo -Tenant adfs -Verbose
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:28:48 AM - ConnectAzureRmAccountCommand begin processing with ParameterSet 'UserWithSubscriptionId'.
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:28:48 AM - Autosave setting from startup session: 'CurrentUser'
DEBUG: 2:28:48 AM - No autosave setting detected in environment variable 'AzContextAutoSave'.
DEBUG: 2:28:48 AM - Using Autosave scope 'CurrentUser'
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [DefaultSubscriptionForLogin], Module = [], Cmdlet = []. Returning default value [].
VERBOSE: Performing the operation "log in" on target "User account in environment 'Foo'".
DEBUG: 2:28:48 AM - Autosave setting from startup session: 'CurrentUser'
DEBUG: 2:28:48 AM - No autosave setting detected in environment variable 'AzContextAutoSave'.
DEBUG: 2:28:48 AM - Using Autosave scope 'CurrentUser'
Please select the account you want to login with.
DEBUG: 2:28:48 AM - [InteractiveUserAuthenticator] Calling InteractiveBrowserCredential.AuthenticateAsync with TenantId:'adfs', Scopes:'https://management.domain/openid', AuthorityHost:'https://login.domain/adfs', RedirectUri:'http://localhost:
8405/'
DEBUG: InteractiveBrowserCredential.Authenticate invoked. Scopes: [ https://management.domain/openid ] ParentRequestId:
DEBUG: Executing interactive authentication workflow inline.
DEBUG: InteractiveBrowserCredential.Authenticate was unable to retrieve an access token. Scopes: [ https://management.domain/openid ] ParentRequestId: Exception: Azure.Identity.AuthenticationFailedException (0x80131500): InteractiveBrowserCredential authentication failed: Value cannot be null.
Parameter name: tenantId
---> System.ArgumentNullException (0x80004003): Value cannot be null.
Parameter name: tenantId
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning default value [False].
Connect-AzAccount : InteractiveBrowserCredential authentication failed: Value cannot be null.
Parameter name: tenantId
Could not find tenant id for provided tenant domain 'adfs'. Please ensure that the provided user is found in the provided tenant domain.
At line:1 char:1
+ Connect-AzAccount -Environment Foo -Tenant adfs -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Connect-AzAccount], ArgumentNullException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:28:48 AM - [ConfigManager] Got [Off] from [LoginExperienceV2], Module = [], Cmdlet = [].
DEBUG: 2:28:48 AM - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Accounts:4.0.0; CommandName: Connect-AzAccount; PSVersion: 5.1.20348.2031; IsSuccess: False; Duration: 00:00:00.1419362; SanitizeDuration: 00:00:00; Exception: InteractiveBrowserCredential authentication failed: Value cannot be null.
Parameter name: tenantId
Could not find tenant id for provided tenant domain 'adfs'. Please ensure that the provided user is found in the provided tenant domain.;
DEBUG: 2:28:48 AM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:28:48 AM - ConnectAzureRmAccountCommand end processing. |
Here is environment configuration: PS C:\> Get-AzEnvironment -Name Azure.local | fl *
Name : Foo
Type : User-defined
EnableAdfsAuthentication : True
OnPremise : True
ActiveDirectoryServiceEndpointResourceId : https://managment.domain
AdTenant : 98b8267d-e97f-426e-8b3f-7956511fd63f
GalleryUrl :
ManagementPortalUrl :
ServiceManagementUrl :
PublishSettingsFileUrl :
ResourceManagerUrl : https://managment.domain
SqlDatabaseDnsSuffix :
StorageEndpointSuffix : domain
ActiveDirectoryAuthority : https://login.domain/adfs
GraphUrl : https://graph.domain
GraphEndpointResourceId :
TrafficManagerDnsSuffix :
AzureKeyVaultDnsSuffix : .vault.domain
DataLakeEndpointResourceId :
AzureDataLakeStoreFileSystemEndpointSuffix :
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix :
AzureKeyVaultServiceEndpointResourceId :
ContainerRegistryEndpointSuffix : .edgeacr.domain
AzureOperationalInsightsEndpointResourceId :
AzureOperationalInsightsEndpoint :
AzureAnalysisServicesEndpointSuffix :
AnalysisServicesEndpointResourceId :
AzureAttestationServiceEndpointSuffix :
AzureAttestationServiceEndpointResourceId :
AzureSynapseAnalyticsEndpointSuffix :
AzureSynapseAnalyticsEndpointResourceId :
VersionProfiles : {}
ExtendedProperties : {[MicrosoftGraphEndpointResourceId, https://graph.domain]}
BatchEndpointResourceId : |
keystroke
changed the title
Connect-AzAccount : InteractiveBrowserCredential authentication failed: Value cannot be null. Could not find tenant id for provided tenant domain '98b8267d-e97f-426e-8b3f-7956511fd63f'
[ADFS] [Edge] [AzureStack] Connect-AzAccount : InteractiveBrowserCredential authentication failed: Value cannot be null. Could not find tenant id for provided tenant domain '98b8267d-e97f-426e-8b3f-7956511fd63f'
Jan 8, 2025
Depending on Azure/azure-sdk-for-net#47584 |
isra-fel
added
Azure PS Team
Azure Stack
Accounts
Issues in Az.Accounts except authentication related
Tracking
We will track status and follow internally
labels
Jan 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Accounts
Issues in Az.Accounts except authentication related
Azure PS Team
Azure Stack
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Tracking
We will track status and follow internally
Description
When setting-up Az to connect to a local environment like Azure Stack Hub, I am not able to sign-in interactively.
I have tried every variation of cloud parameters and configuration, disabling WAM and disabling the v2 login experience / flow, and it still fails.
Connect-AzAccount : InteractiveBrowserCredential authentication failed: Value cannot be null.
Parameter name: tenantId
Could not find tenant id for provided tenant domain '98b8267d-e97f-426e-8b3f-7956511fd63f'. Please ensure that the provided user is found
in the provided tenant domain.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: