Repository navigation
Azure: refusals and names as main reads them, and a service principal's reach - #109
Merged
Merged
Conversation
This was referenced Dec 5, 2026
odgrim
force-pushed
the
track-a/azure-release-gaps
branch
from
December 6, 2026 07:03
f010db4 to
ad6ec25
Compare
50132 and 500133 need a sign-in; 50059, 530003 and 530032 are no access. "does not exist in tenant" and "not found in the directory" are no access, and az's no-login words, "Please run 'az login'" and "not logged in", need a sign-in. A failed az call that says those words stays notSignedIn, not expired.
A tenant option reads "Contoso · contoso.com" when Azure gives both. The login's own tenantDisplayName and tenantDefaultDomain name a tenant that Azure's tenant list leaves out or cannot list. Subscription names are cleaned as tenant names are.
A service principal can't signInTo, so reach no longer offers needsSignIn or needsMfa for it. A timeout or an unclassified failure stays unknown.
odgrim
force-pushed
the
track-a/azure-release-gaps
branch
from
December 6, 2026 07:48
ad6ec25 to
f65c016
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Azure reads az's refusals and names as Runbooks main does, and a service principal's
reachstops offering asignInToit refuses.notSignedIn, notexpired.tenantDisplayNameandtenantDefaultDomain.reach. Any refusal isnoAccess, sincesignInTorefuses a service principal. A timeout or an unclassified failure staysunknown.Decisions
az::Tenantholdsdisplay_nameanddomainapart, andname()gives the display name, else the domain.Accountsgainsnamed. Both are public inrunbooks-credential-azure, a crate nothing outside this repo uses.Accounts.defaultsstays the only list of the tenants a login holds.namedonly names them, so a tenantnamedlacks shows its id and is never dropped.targets' options andidentity.targets.tenantaftersignInorselect.reach'snameandAZURE_TENANT_NAMEstay the display name, else the domain.Gaps
classifyTokenError:reachanswersunknownwhere main says a sign-in is needed;unknown, andTenant::namepreferring the display name to the domain./tenantslists with only a domain shows the domain, not the login's display name.noAccessmessage ends "Sign in with that tenant ID.", which a service principal can't do.DisplayNamedrops control characters only, so U+202E and U+2028 pass.reachmessages unredacted, cut to 1024 characters, as before.Evidence
mise run checkat 1dd85fd, with main merged in:507 tests run: 507 passed, 0 skipped, lint clean, semverno publishable crates.a_refusal_is_named_by_its_aadsts_code_or_its_words:ERROR: AADSTS50132: what Azure says. left: None right: Some(NeedsSignIn), thenApplication with identifier 'x' was not found in the directory 'Fabrikam'. left: None right: Some(NoAccess).a_service_principal_refuses_sign_in_to_so_a_refusal_is_no_access:left: [String("needsSignIn"), String("needsMfa"), String("reachable")] right: [String("noAccess"), String("noAccess"), String("reachable")].179 passed, 1 failed):a_tenant_shows_its_name_and_domain;visible_tenants_merge_listed_held_and_signed_in_once_each;the_login_names_its_tenants_and_its_subscriptions_cleaned.tenantDisplayNameandtenantDefaultDomainonly on accounts from the subscription listing: azure-cli 2.93.0, the versionmise.tomlpins,azure/cli/core/_profile.py:34-35,946-958. Tenant-level accounts (_build_tenant_level_accounts,484-493) carry no names.Audit dependenciesis red, as on main, until the pin-project-lite 0.2.19 lock update.