Forum Discussion
AADSTS500571 in Visual Studio to Azure Resource Manager; guest account disabled in resource tenant
The failure is not saying that your home account is disabled. AADSTS500571 means the guest object in the resource tenant is disabled, and the tenant ID shown is Microsoft’s own tenant, so Visual Studio is probably reusing a cached tenant association instead of authenticating against the tenant that owns your subscription. Sign out of every account in Visual Studio, remove the affected identity under Account Settings, close Visual Studio, and clear its cached Azure credentials. In a terminal, run az account clear, then sign in explicitly with az login --tenant <your-home-tenant-id> and confirm the expected subscription with az account show. Reopen Visual Studio, add only the correct work account, and select that subscription. You cannot enable a disabled guest yourself; only the resource tenant can do that. If Visual Studio still requests Microsoft’s tenant, capture the correlation ID and timestamp and open a Visual Studio authentication support case.