Share via

How to fix ubuntu os account?

pallavi tarke 20 Reputation points
2025-06-05T08:54:17.1333333+00:00

My Azure account is working fine on Windows, but when I try to sign in from Ubuntu OS, it shows an "account not found" error. I want to use this account on Ubuntu for my projects. This is an organization-provided domain. Please help me troubleshoot and enable access.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Answer accepted by question author
  1. Aslam Mohammad 410 Reputation points Microsoft External Staff Moderator
    2025-06-05T13:11:57.98+00:00

    Hi pallavi tarke

    I understand that You are able to log in to your Azure account on Windows, but when trying the same on Ubuntu Linux you get an "account not found" error.

    Many companies use special rules called Azure Active Directory Conditional Access to protect their systems. These rules decide who can sign in, from where, and on which devices. For example, they can block people from logging in using certain devices like Linux computers. They can also stop access from places or internet addresses that are not safe or known. If a device does not meet the company’s security rules, it won’t be allowed to sign in. This way, only trusted people and devices can login

    First update the ubuntu machine

    sudo apt update && sudo apt install azure-cli -y

    please refer this document to install az CLI:
    https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=apt

    open your ubuntu terminal and check the az cli is installed on your ubuntu machine

    az --version

    if az cli is not installed in your ubuntu machine please install az cli

    Install with one command

    curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

    confirm You Are Using the Correct Tenant (Organization Domain) if you have a multiple tenant id, to get your tenant ID from Windows, you can check in Azure Portal

    az login --tenant your-organization-domain.com

    you can try with this :

    Azure CLI Authentication Method — Use Device Code Flow

    az login --use-device-code

    Sometimes the CLI or browser cache can cause confusion by storing wrong tokens or stale login data, clearing cache and retrying might help.

    If you have any further queries, let me know. If the information is helpful, please click on Upvote.

    Thank you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.