Skip to content
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

AADSTS900023 when using TenantID #247

Open
wsmelton opened this issue Dec 20, 2024 · 2 comments
Open

AADSTS900023 when using TenantID #247

wsmelton opened this issue Dec 20, 2024 · 2 comments

Comments

@wsmelton
Copy link

wsmelton commented Dec 20, 2024

$myTenantId = '00000000-0000-0000-0000-000000000000'
Invoke-ARI -TenantID $myTenantId -SkipDiagram -IncludeTags -Heavy

Results in this error, no matter what when the GUID value is provided:
Image

As documented, and parameter of the name user will assume it should be the ID:

ARI/HowTo.md

Line 42 in 4d5c1a3

| TenantID | Specify the tenant ID you want to create a Resource Inventory. | `-TenantID <ID>` |

Only value that works correctly though is providing the Tenant domain. Is there a reason it fails when the ID is provided?

NOTE: I can login to this tenant with the ID (GUID) value with no errors using Connect-AzAccount

@Claudio-Merola
Copy link
Collaborator

No, it should work normally.

Can you try to authenticate before you run the script? The script should identify you are already authenticated to that tenant and wouldn't even ask for authentication.

Copy link

This Issue is stale and may be automatically close soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants