Azure / Azure/azure-cli

VMSSH with managed identity

Open
#21,443 22 comments 2 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad act-observability-squad Auto-Assign customer-reported feature-request MSAL Service Attention VM SSH
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

https://github.com/Azure/azure-cli/blob/4a8879f587378615ff0e1d10728dffe63f462b2d/src/azure-cli-core/azure/cli/core/_profile.py#L620

**After MSAL adopted completely, would it be available with Managed Identity for VMSSH?
If yes, when would it be possible?**

* Login with MI : az login -i -u /subscriptions/{subscription id}/resourceGroups/{resource group}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{myMI}
* Command : az ssh cert --public-key-file ./test.pub
* Error : VM SSH currently doesn't support managed identity or Cloud Shell.
https://github.com/Azure/azure-cli/blob/2e0a42f304f5fd543818a98a9eab2faf8d1fd6d6/src/azure-cli-core/azure/cli/core/auth/adal_authentication.py#L22

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.