Skip to content

UPN starting with "-" (dash-minus-hyphen) not allowed for Azure AD login for linux VM #23491

@precubcr

Description

@precubcr

It seems that if your UPN has a "-" (hyphen, dash) at the beginning, Azure AD gets it right, but when trying to log into a Linux VM via Azure AD Credentials, it fails with an error "Bad character".

I reproduced this in my lab, and every time I try it it fails.

I tried to create a local account starting with a "-" but is not possible.

Seems that Linux will not accept it. I even tried the --badnames option and does not allow.

Therefore, I assume we should update the Docs to reflect that the UPN should not start with "-"


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botSSHService AttentionThis issue is responsible by Azure service team.VM SSHcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions