Reputation: 1
I need to use the azure cli from within a linux virtual machine. There are two contraints:
On AWS, I can use instance profiles for such scenario, but I am unable to find any feasible approach for Azure. Any help is greatly appreciated.
Upvotes: 0
Views: 4090
Reputation: 790
This is how it was resolved for me ,
az login --use-device-code
in your ssh terminalUpvotes: 0
Reputation: 71
az login —msi
has been deprecated (See here) as of v2.0.22.
The new method is to use the —identity
option. ie. az login —identity
. See az login docs for more information.
Upvotes: 2
Reputation: 124
If you are using Azure CLI 2.0, you can use az login
with the --msi
parameter to log in using the Virtual Machine's identity. See the az login documentation for more information.
Upvotes: 1